{"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":"051e9597-9a36-5650-b65d-856782388d61","task_key":"default--v0~2e1~2e0~5fhf--051e9597-9a36-5650-b65d-856782388d61","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 051e9597-9a36-5650-b65d-856782388d61","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import numpy as np\\nimport pandas as pd\\nfrom datetime import datetime, timedelta\\ndef task_func(start_date, end_date, seed=42):\\n\",\"complete_prompt\":\"import numpy as np\\nimport pandas as pd\\nfrom datetime import datetime, timedelta\\n\\ndef task_func(start_date, end_date, seed=42):\\n    \\\"\\\"\\\"\\n    Generate random sales data for each day between a start and end date, inclusive.\\n    Returns the data and a plot of sales over time.\\n\\n    Parameters:\\n    start_date (datetime): The start date.\\n    end_date (datetime): The end date.\\n    seed (int): Seed for the random number generator. Default is 42.\\n\\n    Returns:\\n    DataFrame: A pandas DataFrame with columns 'Date' and 'Sales'.\\n    Axes: A matplotlib Axes object of the plot showing the sales overtime.\\n    \\n    sales ranges 0 to 500 and it is an integer\\n\\n    Requirements:\\n    - numpy\\n    - pandas\\n    - datetime\\n\\n    Example:\\n    >>> start_date = datetime(2021, 1, 1)\\n    >>> end_date = datetime(2021, 12, 31)\\n    >>> data, plot = task_func(start_date, end_date)\\n    >>> print(data.head())\\n            Date  Sales\\n    0 2021-01-01    102\\n    1 2021-01-02    435\\n    2 2021-01-03    348\\n    3 2021-01-04    270\\n    4 2021-01-05    106\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generate random sales data for each day between a start and end date, inclusive. Returns the data and a plot of sales over time. sales ranges 0 to 500 and it is an integer\\nThe function should output with:\\n    DataFrame: A pandas DataFrame with columns 'Date' and 'Sales'.\\n    Axes: A matplotlib Axes object of the plot showing the sales overtime.\\nYou should write self-contained code starting with:\\n```\\nimport numpy as np\\nimport pandas as pd\\nfrom datetime import datetime, timedelta\\ndef task_func(start_date, end_date, seed=42):\\n```\",\"libs\":\"['pandas', 'datetime', 'numpy']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}