{"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":"8ec00ba6-1fef-5b92-8b46-ca2d4f9b3109","task_key":"default--v0~2e1~2e0~5fhf--8ec00ba6-1fef-5b92-8b46-ca2d4f9b3109","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 8ec00ba6-1fef-5b92-8b46-ca2d4f9b3109","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import os\\nimport pandas as pd\\nfrom dateutil.parser import parse\\nOUTPUT_DIR = './output'\\ndef task_func(csv_path=os.path.join(OUTPUT_DIR, 'data.csv'), date_column='date'):\\n\",\"complete_prompt\":\"import os\\nimport pandas as pd\\nfrom dateutil.parser import parse\\nOUTPUT_DIR = './output'\\n\\ndef task_func(csv_path=os.path.join(OUTPUT_DIR, 'data.csv'), date_column='date'):\\n    \\\"\\\"\\\"\\n    Read a CSV file, convert a column of date strings into datetime objects,\\n    and draw a histogram of the year distribution of these dates.\\n\\n    Parameters:\\n    - csv_path (str): The path to the CSV file. Default is the 'data.csv' in the script's directory.\\n    - date_column (str): The column in the CSV file with the date strings. Default is 'date'.\\n\\n    Returns:\\n    - matplotlib.axes._axes.Axes: A histogram plot object showing the distribution of years.\\n\\n    Requirements:\\n    - pandas\\n    - dateutil.parser\\n    - os\\n\\n    Example:\\n    >>> import os\\n    >>> from unittest.mock import patch\\n    >>> with patch('os.path.exists', return_value=False):\\n    ...     task_func('nonexistent.csv')\\n    Traceback (most recent call last):\\n        ...\\n    FileNotFoundError: nonexistent.csv does not exist\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Read a CSV file, convert a column of date strings into datetime objects, and draw a histogram of the year distribution of these dates.\\nThe function should output with:\\n    matplotlib.axes._axes.Axes: A histogram plot object showing the distribution of years.\\nYou should write self-contained code starting with:\\n```\\nimport os\\nimport pandas as pd\\nfrom dateutil.parser import parse\\nOUTPUT_DIR = './output'\\ndef task_func(csv_path=os.path.join(OUTPUT_DIR, 'data.csv'), date_column='date'):\\n```\",\"libs\":\"['dateutil', 'pandas', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}