{"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":"fa24cdca-8f0f-539a-9ec0-a7a7d8d7b2bf","task_key":"default--v0~2e1~2e0~5fhf--fa24cdca-8f0f-539a-9ec0-a7a7d8d7b2bf","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf fa24cdca-8f0f-539a-9ec0-a7a7d8d7b2bf","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import os\\nimport pandas as pd\\nimport re\\nimport matplotlib.pyplot as plt\\ndef task_func(directory: str, pattern: str) -> list:\\n\",\"complete_prompt\":\"import os\\nimport pandas as pd\\nimport re\\nimport matplotlib.pyplot as plt\\n\\ndef task_func(directory: str, pattern: str) -> list:\\n    \\\"\\\"\\\"\\n    Searches a directory for CSV files matching a given regular expression pattern,\\n    reads sales data from these files, and plots the sales data with month on the x-axis and sales on the y-axis.\\n    \\n    Note:\\n    - Each CSV file contains two columns: 'Month' and 'Sales'.\\n\\n    Parameters:\\n    - directory (str): The directory path where the CSV files are located.\\n    - pattern (str): The regular expression pattern to match the filenames.\\n\\n    Returns:\\n    - A list of matplotlib.axes._axes.Axes objects, each representing a plot of sales data from a matched CSV file.\\n\\n    Requirements:\\n    - os\\n    - pandas\\n    - re\\n    - matplotlib.pyplot\\n    \\n    Examples:\\n    >>> axes = task_func('/path/to/data/', r'^sales_data_\\\\d{4}.csv')\\n    >>> len(axes)\\n    2\\n    >>> axes[0].get_title()\\n    'sales_data_2021.csv'\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Searches a directory for CSV files matching a given regular expression pattern, reads sales data from these files, and plots the sales data with month on the x-axis and sales on the y-axis.\\nNote that: Each CSV file contains two columns: 'Month' and 'Sales'.\\nThe function should output with:\\n    A list of matplotlib.axes._axes.Axes objects, each representing a plot of sales data from a matched CSV file.\\nYou should write self-contained code starting with:\\n```\\nimport os\\nimport pandas as pd\\nimport re\\nimport matplotlib.pyplot as plt\\ndef task_func(directory: str, pattern: str) -> list:\\n```\",\"libs\":\"['pandas', 'matplotlib', 're', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}