{"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":"7b21b351-f2d5-5426-9dad-62aa318d575a","task_key":"default--v0~2e1~2e0~5fhf--7b21b351-f2d5-5426-9dad-62aa318d575a","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 7b21b351-f2d5-5426-9dad-62aa318d575a","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"from datetime import datetime, timedelta\\nimport numpy as np\\nimport matplotlib.pyplot as plt\\ndef task_func(days_in_past=7, random_seed=0):\\n\",\"complete_prompt\":\"from datetime import datetime, timedelta\\nimport numpy as np\\nimport matplotlib.pyplot as plt\\n\\ndef task_func(days_in_past=7, random_seed=0):\\n    \\\"\\\"\\\"\\n    Draw a graph of temperature trends over the past week using randomly generated data.\\n\\n    This function generates random integer temperatures in Celcius with a low of 15 and high of 35.\\n    To show temperature trend, it plots date on the x-axis and temperature on the y-axis.\\n\\n    Parameters:\\n    days_in_past (int, optional): The number of days in the past for which to generate the graph.\\n                                  Defaults to 7 days.\\n    random_seed (int, optional): Seed for random number generation. Defaults to 0.\\n\\n    Returns:\\n    ax (matplotlib.axes._axes.Axes): Generated plot showing 'Temperature Trend'\\n                                     with 'Date' on the a-xis and 'Temperature (°C)' on the y-axis.\\n\\n\\n    Raises:\\n    ValueError: If days_in_past is less than 1.\\n    \\n    Requirements:\\n    - datetime.datetime\\n    - datetime.timedelta\\n    - numpy\\n    - matplotlib.pyplot\\n\\n    Example:\\n    >>> ax = task_func(random_seed=42)\\n    >>> type(ax)\\n    <class 'matplotlib.axes._axes.Axes'>\\n    >>> ax.get_xticklabels()\\n    [Text(19810.0, 0, '2024-03-28'), Text(19811.0, 0, '2024-03-29'), Text(19812.0, 0, '2024-03-30'), Text(19813.0, 0, '2024-03-31'), Text(19814.0, 0, '2024-04-01'), Text(19815.0, 0, '2024-04-02'), Text(19816.0, 0, '2024-04-03')]\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Draw a graph of temperature trends over the past week using randomly generated data. This function generates random integer temperatures in Celcius with a low of 15 and high of 35. To show temperature trend, it plots date on the x-axis and temperature on the y-axis.\\nThe function should raise the exception for: ValueError: If days_in_past is less than 1.\\nThe function should output with:\\n    ax (matplotlib.axes._axes.Axes): Generated plot showing 'Temperature Trend'\\n    with 'Date' on the a-xis and 'Temperature (°C)' on the y-axis.\\nYou should write self-contained code starting with:\\n```\\nfrom datetime import datetime, timedelta\\nimport numpy as np\\nimport matplotlib.pyplot as plt\\ndef task_func(days_in_past=7, random_seed=0):\\n```\",\"libs\":\"['datetime', 'numpy', 'matplotlib']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}