{"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":"e1102f7a-a826-5fc6-894f-0a699484eb37","task_key":"default--v0~2e1~2e0~5fhf--e1102f7a-a826-5fc6-894f-0a699484eb37","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf e1102f7a-a826-5fc6-894f-0a699484eb37","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import time\\nimport matplotlib.pyplot as plt\\ndef task_func(time_strings, time_format=\\\"%d/%m/%Y %H:%M:%S.%f\\\"):\\n\",\"complete_prompt\":\"import time\\nimport matplotlib.pyplot as plt\\n\\n\\ndef task_func(time_strings, time_format=\\\"%d/%m/%Y %H:%M:%S.%f\\\"):\\n    \\\"\\\"\\\"\\n    Parses a list of time strings and plots a histogram of the seconds component.\\n\\n    Parameters:\\n    - time_strings (list of str): A list of time strings to be parsed. Each string in the list should\\n      be formatted according to the 'time_format' parameter.\\n    - time_format (str): The format string for parsing the time strings in 'time_strings'.\\n      The default format is '%d/%m/%Y %H:%M:%S.%f', representing day/month/year hours:minutes:seconds.microseconds.\\n\\n    Returns:\\n    - ax (matplotlib.axes._axes.Axes or None): An Axes object with the histogram plotted if\\n      parsing is successful. Returns None if a parsing error occurs.\\n\\n    Requirements:\\n    - time\\n    - matplotlib\\n    \\n    Raises:\\n    - ValueError: If any time string in 'time_strings' cannot be parsed according to 'time_format'.\\n\\n    Example:\\n    >>> time_strings = ['30/03/2009 16:31:32.123', '15/04/2010 14:25:46.789', '20/12/2011 12:34:56.000']\\n    >>> ax = task_func(time_strings)\\n    >>> plt.show()  # Display the plot\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Parses a list of time strings and plots a histogram of the seconds component.\\nThe function should raise the exception for: ValueError: If any time string in 'time_strings' cannot be parsed according to 'time_format'.\\nThe function should output with:\\n    ax (matplotlib.axes._axes.Axes or None): An Axes object with the histogram plotted if\\n    parsing is successful. Returns None if a parsing error occurs.\\nYou should write self-contained code starting with:\\n```\\nimport time\\nimport matplotlib.pyplot as plt\\ndef task_func(time_strings, time_format=\\\"%d/%m/%Y %H:%M:%S.%f\\\"):\\n```\",\"libs\":\"['matplotlib', 'time']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}