{"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":"c161cde3-3b4a-5efc-815b-16c4277f2792","task_key":"default--v0~2e1~2e0~5fhf--c161cde3-3b4a-5efc-815b-16c4277f2792","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf c161cde3-3b4a-5efc-815b-16c4277f2792","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nfrom datetime import datetime\\nimport random\\ndef task_func(start_date, end_date, num_series, seed=None):\\n\",\"complete_prompt\":\"import pandas as pd\\nfrom datetime import datetime\\nimport random\\n\\n\\ndef task_func(start_date, end_date, num_series, seed=None):\\n    \\\"\\\"\\\"\\n    Generates a DataFrame with multiple random integer time series (each ranging\\n    from 0 to 100) from a start date to an end date, then returns the generated time series\\n    on a line plot.\\n\\n    Parameters:\\n    - start_date (str): The start date in \\\"yyyy-mm-dd\\\" format.\\n    - end_date (str): The end date in \\\"yyyy-mm-dd\\\" format.\\n    - num_series (int): The number of random time series to generate.\\n    - seed (int, optional): Seed for the random number generator. Defaults to None (not set).\\n\\n    Returns:\\n    - pandas.DataFrame: A pandas DataFrame containing the generated time series, indexed by date.\\n    - plt.Axes: A matplotlib line plot of the time series.\\n\\n    Raises:\\n    - ValueError: If start_date is later than end_date; or if num_series is less than 1.\\n\\n    Requirements:\\n    - pandas\\n    - datetime\\n    - random\\n\\n    Notes:\\n    - The line plot's title is set to \\\"Random Time Series\\\", the x-axis label to \\\"Date\\\",\\n      and the y-axis label to \\\"Value\\\".\\n    - Each time series is plotted as a separate line with automatic coloring and legend\\n      entry labeled as \\\"series_x\\\" where x is the series number.\\n\\n    Example:\\n    >>> df, ax = task_func('2020-01-01', '2020-12-31', 3, 42)\\n    >>> df.head(2)\\n                series_1  series_2  series_3\\n    2020-01-01        81        67        19\\n    2020-01-02        14        20        29\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generates a DataFrame with multiple random integer time series (each ranging from 0 to 100) from a start date to an end date, then returns the generated time series on a line plot.\\nNote that: Notes: The line plot's title is set to \\\"Random Time Series\\\", the x-axis label to \\\"Date\\\", and the y-axis label to \\\"Value\\\". Each time series is plotted as a separate line with automatic coloring and legend entry labeled as \\\"series_x\\\" where x is the series number.\\nThe function should raise the exception for: ValueError: If start_date is later than end_date; or if num_series is less than 1.\\nThe function should output with:\\n    pandas.DataFrame: A pandas DataFrame containing the generated time series, indexed by date.\\n    plt.Axes: A matplotlib line plot of the time series.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nfrom datetime import datetime\\nimport random\\ndef task_func(start_date, end_date, num_series, seed=None):\\n```\",\"libs\":\"['pandas', 'datetime', 'random']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}