{"kind":"task","effective_mode":"full","benchmark":{"kind":"benchmark","effective_mode":"full","slug":"bigcodebench","formal_name":"BigCodeBench","introduction":"BigCodeBench poses 1,140 function-level tasks drawn across 139 libraries. It tests whether a model can compose several real APIs correctly rather than write one self-contained function.","introduction_ja":"","introduction_en":"","category":"Category not supplied","task_count":null,"acquisition_status":"Acquisition status not supplied","official_url":"https://bigcode-bench.github.io/","indexing_mode":"index","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[],"history":"","construction":"","limitations":"","saturation":"","scores":[]}},"task_id":"0a73b835-5e4e-5232-bfc0-d1637cad2eb1","task_key":"default--v0~2e1~2e0~5fhf--0a73b835-5e4e-5232-bfc0-d1637cad2eb1","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 0a73b835-5e4e-5232-bfc0-d1637cad2eb1","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nimport re\\nimport numpy as np\\n# Constants\\nPATTERN = r\\\"([a-fA-F\\\\d]{32})\\\"\\ndef task_func(df, column):\\n\",\"complete_prompt\":\"import pandas as pd\\nimport re\\nimport numpy as np\\n\\n# Constants\\nPATTERN = r\\\"([a-fA-F\\\\d]{32})\\\"\\n\\ndef task_func(df, column):\\n    \\\"\\\"\\\"\\n    Find all matches of the regex pattern '([a-fA-F\\\\ d] {32})' in a Pandas DataFrame column and count the occurrence of any unique match in the data.\\n\\n    Parameters:\\n    df (DataFrame): The pandas DataFrame.\\n    column (str): The column in which to find the pattern.\\n\\n    Returns:\\n    Series: A pandas Series with counts of each unique match.\\n\\n    Requirements:\\n    - pandas\\n    - re\\n    - numpy\\n\\n    Raises:\\n    - The function will raise KeyError if the \\\"column\\\" does not exist in input \\\"df\\\"\\n\\n    Example:\\n    >>> data = pd.DataFrame({\\\"text\\\": [\\\"6f96cfdfe5ccc627cadf24b41725caa4 gorilla\\\", \\\"6f96cfdfe5ccc627cadf24b41725caa4 banana\\\", \\\"1234567890abcdef1234567890abcdef apple\\\"]})\\n    >>> counts = task_func(data, \\\"text\\\")\\n    >>> print(counts.index[0])\\n    6f96cfdfe5ccc627cadf24b41725caa4\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Find all matches of the regex pattern '([a-fA-F\\\\ d] {32})' in a Pandas DataFrame column and count the occurrence of any unique match in the data.\\nThe function should raise the exception for: The function will raise KeyError if the \\\"column\\\" does not exist in input \\\"df\\\"\\nThe function should output with:\\n    Series: A pandas Series with counts of each unique match.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nimport re\\nimport numpy as np\\n# Constants\\nPATTERN = r\\\"([a-fA-F\\\\d]{32})\\\"\\ndef task_func(df, column):\\n```\",\"libs\":\"['pandas', 'numpy', 're']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}