{"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":"cfdfc759-1547-5e11-9b44-c688932b5815","task_key":"default--v0~2e1~2e0~5fhf--cfdfc759-1547-5e11-9b44-c688932b5815","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf cfdfc759-1547-5e11-9b44-c688932b5815","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import matplotlib.pyplot as plt\\nimport pandas as pd\\ndef task_func(temperatures):\\n\",\"complete_prompt\":\"import matplotlib.pyplot as plt\\nimport pandas as pd\\n\\ndef task_func(temperatures):\\n    \\\"\\\"\\\"\\n    Calculate and plot the daytime temperatures for New York over a given period. The plot uses Arial font for display.\\n\\n    Parameters:\\n        temperatures (pandas.DataFrame): The temperatures data as a pandas DataFrame with a DateTimeIndex \\n                                         in the 'America/New_York' timezone and a 'temperature' column.\\n\\n    Returns:\\n        matplotlib.axes.Axes: The Axes object containing the temperature plot.\\n        \\n    for the returned plot,  set the xlabel as 'Date', ylabel as 'Temperature (°C)' and\\n    title as Daily Temperatures in New York\\n\\n    Raises:\\n        ValueError: If the input DataFrame is not in the expected format or empty.\\n\\n    Requirements:\\n        - matplotlib\\n        - pandas\\n\\n    Example:\\n        >>> temperatures = pd.DataFrame({\\n        ...     'temperature': [random.randint(-10, 30) for _ in range(365)],\\n        ...     'date': pd.date_range(start='01-01-2023', periods=365, tz='America/New_York')\\n        ... }).set_index('date')\\n        >>> ax = task_func(temperatures)\\n        >>> type(ax)\\n        <class 'matplotlib.axes._axes.Axes'>\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Calculate and plot the daytime temperatures for New York over a given period. The plot uses Arial font for display. for the returned plot,  set the xlabel as 'Date', ylabel as 'Temperature (°C)' and title as Daily Temperatures in New York\\nThe function should raise the exception for: ValueError: If the input DataFrame is not in the expected format or empty.\\nThe function should output with:\\n    matplotlib.axes.Axes: The Axes object containing the temperature plot.\\nYou should write self-contained code starting with:\\n```\\nimport matplotlib.pyplot as plt\\nimport pandas as pd\\ndef task_func(temperatures):\\n```\",\"libs\":\"['pandas', 'matplotlib']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}