{"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":"76481762-a399-51b2-bba2-318afe308543","task_key":"default--v0~2e1~2e0~5fhf--76481762-a399-51b2-bba2-318afe308543","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 76481762-a399-51b2-bba2-318afe308543","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import numpy as np\\nimport pandas as pd\\nfrom datetime import timedelta\\ndef task_func(start_date, end_date, random_seed=42):\\n\",\"complete_prompt\":\"import numpy as np\\nimport pandas as pd\\nfrom datetime import timedelta\\n\\ndef task_func(start_date, end_date, random_seed=42):\\n    \\\"\\\"\\\"\\n    Generate and plot weather data for a specified date range.\\n    \\n    This function creates a DataFrame containing simulated daily weather data \\n    within the specified date range. It generates random values for temperature, \\n    humidity, and wind speed for each day. The function also plots these parameters \\n    over the date range and returns both the DataFrame and the plot object.\\n    \\n    Parameters:\\n    - start_date (datetime): The start date for the data generation.\\n    - end_date (datetime): The end date for the data generation.\\n    - random_seed (int, optional): Seed for the random number generator to ensure reproducibility. Defaults to 42.\\n    \\n    The generated weather data ranges are as follows:\\n    - Temperature: Between -10°C and 40°C.\\n    - Humidity: Between 20% and 100%.\\n    - Wind Speed: Between 0 and 20 meters per second.\\n    \\n    Returns:\\n    - DataFrame: A pandas DataFrame with columns ['Date', 'Temperature', 'Humidity', 'Wind Speed'], containing the generated weather data for each day within the specified range.\\n    - Axes: A matplotlib Axes object of the plot showing the generated weather data.\\n    \\n    Raises:\\n    - ValueError: If 'end_date' is before 'start_date', indicating an invalid date range.\\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())  # Display the first few rows of the DataFrame \\n            Date  Temperature   Humidity  Wind Speed\\n    0 2021-01-01     8.727006  96.057145   14.639879\\n    1 2021-01-02    19.932924  32.481491    3.119890\\n    2 2021-01-03    -7.095819  89.294092   12.022300\\n    3 2021-01-04    25.403629  21.646760   19.398197\\n    4 2021-01-05    31.622132  36.987129    3.636499\\n    >>> plot.get_figure().savefig(\\\"weather_data_plot.png\\\")  # Save the plot to a file\\n    >>> os.remove(\\\"weather_data_plot.png\\\")\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generate and plot weather data for a specified date range. This function creates a DataFrame containing simulated daily weather data within the specified date range. It generates random values for temperature, humidity, and wind speed for each day. The function also plots these parameters over the date range and returns both the DataFrame and the plot object. The generated weather data ranges are as follows: - Temperature: Between -10°C and 40°C. - Humidity: Between 20% and 100%. - Wind Speed: Between 0 and 20 meters per second.\\nThe function should raise the exception for: ValueError: If 'end_date' is before 'start_date', indicating an invalid date range.\\nThe function should output with:\\n    DataFrame: A pandas DataFrame with columns ['Date', 'Temperature', 'Humidity', 'Wind Speed'], containing the generated weather data for each day within the specified range.\\n    Axes: A matplotlib Axes object of the plot showing the generated weather data.\\nYou should write self-contained code starting with:\\n```\\nimport numpy as np\\nimport pandas as pd\\nfrom datetime import timedelta\\ndef task_func(start_date, end_date, random_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":[]}