{"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":"noindex","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[]}},"task_id":"ece9589a-6ced-5394-a5fd-27c9d199d42d","task_key":"default--v0~2e1~2e0~5fhf--ece9589a-6ced-5394-a5fd-27c9d199d42d","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf ece9589a-6ced-5394-a5fd-27c9d199d42d","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nimport json\\nimport numpy as np\\n# Constants\\nCOLUMNS = ['email', 'list']\\ndef task_func(json_file):\\n\",\"complete_prompt\":\"import pandas as pd\\nimport json\\nimport numpy as np\\n\\n# Constants\\nCOLUMNS = ['email', 'list']\\n\\ndef task_func(json_file):\\n    \\\"\\\"\\\"\\n    Load e-mail data from a JSON file, convert it into a Pandas DataFrame, calculate the sum and mean\\n    of the list associated with each e-mail, and then record those values. Additionally, it plots the sum\\n    and mean values for each email.\\n\\n    If there is no e-mail data, return an empty dataframe with the right columns (['email', 'list', 'sum', 'mean']), and None as the plot.\\n\\n    Parameters:\\n    json_file (str): The path to the JSON file. The JSON file should have the structure:\\n                     [\\n                         {\\\"email\\\": \\\"email1@example.com\\\", \\\"list\\\": [value1, value2, ...]},\\n                         ...\\n                     ]\\n\\n    Returns:\\n    tuple: A tuple containing:\\n        - DataFrame: A pandas DataFrame with columns ['email', 'list', 'sum', 'mean'].\\n        - Axes: The Axes object for the plot. None if the dataframe is empty.\\n\\n    Requirements:\\n    - pandas\\n    - json\\n    - numpy\\n\\n    Example:\\n    >>> df, ax = task_func('data/task_func/json_1.json')\\n    >>> print(df)\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Load e-mail data from a JSON file, convert it into a Pandas DataFrame, calculate the sum and mean of the list associated with each e-mail, and then record those values. Additionally, it plots the sum and mean values for each email. If there is no e-mail data, return an empty dataframe with the right columns (['email', 'list', 'sum', 'mean']), and None as the plot.\\nThe function should output with:\\n    tuple: A tuple containing:\\n    DataFrame: A pandas DataFrame with columns ['email', 'list', 'sum', 'mean'].\\n    Axes: The Axes object for the plot. None if the dataframe is empty.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nimport json\\nimport numpy as np\\n# Constants\\nCOLUMNS = ['email', 'list']\\ndef task_func(json_file):\\n```\",\"libs\":\"['pandas', 'numpy', 'json']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}