{"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":"bd60391e-3c44-54bd-a3a4-3c4f94474e9b","task_key":"default--v0~2e1~2e0~5fhf--bd60391e-3c44-54bd-a3a4-3c4f94474e9b","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf bd60391e-3c44-54bd-a3a4-3c4f94474e9b","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nimport codecs\\ndef task_func(dataframe: pd.DataFrame) -> pd.DataFrame:\\n\",\"complete_prompt\":\"import pandas as pd\\nimport codecs\\n\\ndef task_func(dataframe: pd.DataFrame) -> pd.DataFrame:\\n    \\\"\\\"\\\"\\n    Decodes all Unicode escape strings in a particular column (\\\"UnicodeString\\\") in a given Pandas DataFrame.\\n\\n    Parameters:\\n    dataframe (pd.DataFrame): The pandas DataFrame which must contain the column \\\"UnicodeString\\\".\\n\\n    Returns:\\n    pd.DataFrame: The DataFrame with decoded strings in the \\\"UnicodeString\\\" column.\\n\\n    Raises:\\n    KeyError: If the column \\\"UnicodeString\\\" does not exist in the DataFrame.\\n    TypeError: If the input is not a Pandas DataFrame.\\n\\n    Example:\\n    >>> df = pd.DataFrame({\\n    ...     'Name': ['John', 'Anna', 'Peter'],\\n    ...     'Age': [27, 23, 29],\\n    ...     'Salary': [50000, 60000, 70000],\\n    ...     'UnicodeString': ['\\\\u004A\\\\u006F\\\\u0068\\\\u006E', '\\\\u0041\\\\u006E\\\\u006E\\\\u0061', '\\\\u0050\\\\u0065\\\\u0074\\\\u0065\\\\u0072']\\n    ... })\\n    >>> task_func(df)\\n        Name  Age  Salary UnicodeString\\n    0   John   27   50000          John\\n    1   Anna   23   60000          Anna\\n    2  Peter   29   70000         Peter\\n\\n    Requirements:\\n    - pandas\\n    - codecs\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Decodes all Unicode escape strings in a particular column (\\\"UnicodeString\\\") in a given Pandas DataFrame.\\nThe function should raise the exception for: KeyError: If the column \\\"UnicodeString\\\" does not exist in the DataFrame. TypeError: If the input is not a Pandas DataFrame.\\nThe function should output with:\\n    pd.DataFrame: The DataFrame with decoded strings in the \\\"UnicodeString\\\" column.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nimport codecs\\ndef task_func(dataframe: pd.DataFrame) -> pd.DataFrame:\\n```\",\"libs\":\"['codecs', 'pandas']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}