{"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":"d98b11c5-eec9-5a8f-b1f3-765f381e1c10","task_key":"default--v0~2e1~2e0~5fhf--d98b11c5-eec9-5a8f-b1f3-765f381e1c10","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf d98b11c5-eec9-5a8f-b1f3-765f381e1c10","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nimport matplotlib.pyplot as plt\\ndef task_func(data):\\n\",\"complete_prompt\":\"import pandas as pd\\nimport matplotlib.pyplot as plt\\n\\ndef task_func(data):\\n    \\\"\\\"\\\"\\n    Draw a pie chart that shows the job distribution in the given data and return the plot object.\\n\\n    Parameters:\\n    data (DataFrame): A pandas DataFrame where each row represents an individual's data, \\n                      with columns 'Name' (str), 'Date' (str in format 'dd/mm/yyyy'), and 'Job' (str).\\n\\n    Returns:\\n    matplotlib.figure.Figure: The Figure object containing the pie chart.\\n\\n    Raises:\\n    - The function will raise ValueError if the input data is not a DataFrame.\\n\\n    Requirements:\\n    - matplotlib.pyplot\\n    - pandas\\n\\n    Example:\\n    >>> data = pd.DataFrame({'Name': ['John', 'Jane', 'Joe'],\\n    ...                      'Date': ['01/03/2012', '02/05/2013', '03/08/2014'],\\n    ...                      'Job': ['Engineer', 'Doctor', 'Lawyer']})\\n    >>> fig = task_func(data)\\n    >>> type(fig)\\n    <class 'matplotlib.figure.Figure'>\\n    >>> len(fig.axes[0].patches) #check slices from pie chart\\n    3\\n    >>> plt.close()\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Draw a pie chart that shows the job distribution in the given data and return the plot object.\\nThe function should raise the exception for: The function will raise ValueError if the input data is not a DataFrame.\\nThe function should output with:\\n    matplotlib.figure.Figure: The Figure object containing the pie chart.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nimport matplotlib.pyplot as plt\\ndef task_func(data):\\n```\",\"libs\":\"['pandas', 'matplotlib']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}