{"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":"88daca57-e33d-5e93-ae36-252fa5d0df96","task_key":"default--v0~2e1~2e0~5fhf--88daca57-e33d-5e93-ae36-252fa5d0df96","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 88daca57-e33d-5e93-ae36-252fa5d0df96","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import datetime\\nimport numpy as np\\nimport matplotlib.pyplot as plt\\n# Constants\\nTIME_FORMAT = \\\"%d/%m/%y %H:%M:%S.%f\\\"\\ndef task_func(time_strings):\\n\",\"complete_prompt\":\"import datetime\\nimport numpy as np\\nimport matplotlib.pyplot as plt\\n\\n# Constants\\nTIME_FORMAT = \\\"%d/%m/%y %H:%M:%S.%f\\\"\\n\\n\\ndef task_func(time_strings):\\n    \\\"\\\"\\\"\\n    Compute the differences in seconds with integer values between consecutive datetime strings and plot these differences as a bar chart.\\n\\n    Parameters:\\n    - time_strings (list of str): A list of datetime strings in the format 'dd/mm/yy HH:MM:SS.fff'.\\n\\n    Returns:\\n    - matplotlib.axes.Axes: The axes object of the plotted bar chart. This object allows further customization of the plot outside this function.\\n\\n    Requirements:\\n    - datetime\\n    - numpy\\n    - matplotlib\\n\\n    Note:\\n    - The function requires the datetime, numpy, and matplotlib.pyplot modules.\\n    - The datetime strings in the input list should follow the specific format specified in TIME_FORMAT.\\n    - The function calculates the time differences between each pair of consecutive datetime strings in the list.\\n\\n    Example:\\n    >>> time_strings = ['30/03/09 16:31:32.123', '30/03/09 16:32:33.123', '30/03/09 16:33:34.123']\\n    >>> ax = task_func(time_strings)\\n    >>> plt.show()  # This will display the bar chart\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Compute the differences in seconds with integer values between consecutive datetime strings and plot these differences as a bar chart.\\nNote that: The function requires the datetime, numpy, and matplotlib.pyplot modules. The datetime strings in the input list should follow the specific format specified in TIME_FORMAT. The function calculates the time differences between each pair of consecutive datetime strings in the list.\\nThe function should output with:\\n    matplotlib.axes.Axes: The axes object of the plotted bar chart. This object allows further customization of the plot outside this function.\\nYou should write self-contained code starting with:\\n```\\nimport datetime\\nimport numpy as np\\nimport matplotlib.pyplot as plt\\n# Constants\\nTIME_FORMAT = \\\"%d/%m/%y %H:%M:%S.%f\\\"\\ndef task_func(time_strings):\\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":[]}