{"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":"efc1d36a-188c-54bf-8364-24f0b25c344a","task_key":"default--v0~2e1~2e0~5fhf--efc1d36a-188c-54bf-8364-24f0b25c344a","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf efc1d36a-188c-54bf-8364-24f0b25c344a","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nfrom collections import Counter\\ndef task_func(data):\\n\",\"complete_prompt\":\"import pandas as pd\\nfrom collections import Counter\\n\\n\\ndef task_func(data):\\n    \\\"\\\"\\\"\\n    Analyze a dictionary of student data to return a dataframe sorted by name and age in ascending order, \\n    the average score per student as a pandas Series, and the most common age as an integer.\\n    \\n    Parameters:\\n    data (dict): A dictionary containing student data with three keys:\\n        - 'Name': List of student names.\\n        - 'Age': List of student ages.\\n        - 'Score': List of student scores.\\n\\n    Returns:\\n    pd.DataFrame, pd.Series, int or None: \\n        - A dataframe sorted by 'Name' and 'Age' in ascending order.\\n        - A series representing average scores indexed by student names.\\n        - An integer representing the most common age or None if no data is available.\\n\\n    Raises:\\n    ValueError: If the dictionary does not have the required keys.\\n\\n    Requirements:\\n    - pandas\\n    - collections\\n\\n    Example:\\n    >>> data = {\\n    ...     'Name': ['Tom', 'Nick', 'John', 'Tom', 'John', 'John', 'Nick', 'Tom', 'John', 'Tom'],\\n    ...     'Age': [20, 21, 19, 20, 19, 19, 21, 20, 19, 20],\\n    ...     'Score': [85, 79, 92, 88, 90, 92, 81, 86, 90, 85]\\n    ... }\\n    >>> df, avg_scores, common_age = task_func(data)\\n    >>> print(df)\\n       Name  Age  Score\\n    2  John   19     92\\n    4  John   19     90\\n    5  John   19     92\\n    8  John   19     90\\n    1  Nick   21     79\\n    6  Nick   21     81\\n    0   Tom   20     85\\n    3   Tom   20     88\\n    7   Tom   20     86\\n    9   Tom   20     85\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Analyze a dictionary of student data to return a dataframe sorted by name and age in ascending order, the average score per student as a pandas Series, and the most common age as an integer.\\nThe function should raise the exception for: ValueError: If the dictionary does not have the required keys.\\nThe function should output with:\\n    pd.DataFrame, pd.Series, int or None:\\n    A dataframe sorted by 'Name' and 'Age' in ascending order.\\n    A series representing average scores indexed by student names.\\n    An integer representing the most common age or None if no data is available.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nfrom collections import Counter\\ndef task_func(data):\\n```\",\"libs\":\"['pandas', 'collections']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}