{"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":"84849405-69e5-5d58-87d8-83da390a232e","task_key":"default--v0~2e1~2e0~5fhf--84849405-69e5-5d58-87d8-83da390a232e","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 84849405-69e5-5d58-87d8-83da390a232e","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import time\\nfrom datetime import datetime\\nimport random\\nimport matplotlib.pyplot as plt\\n# Constants\\nDATE_FORMAT = \\\"%Y-%m-%d %H:%M:%S\\\"\\ndef task_func(n, output_path=None):\\n\",\"complete_prompt\":\"import time\\nfrom datetime import datetime\\nimport random\\nimport matplotlib.pyplot as plt\\n\\n# Constants\\nDATE_FORMAT = \\\"%Y-%m-%d %H:%M:%S\\\"\\n\\n\\ndef task_func(n, output_path=None):\\n    \\\"\\\"\\\"\\n    Generate n random Unix timestamps and convert them to strings formatted as UTC DATE_FORMAT.\\n    Plot a histogram of the distribution of the generated timestamps. If an output path is provided,\\n    save the histogram to the specified path. Otherwise, display the plot.\\n\\n    Parameters:\\n    n (int): The number of timestamps to generate.\\n    output_path (str, optional): Path to save the histogram plot. Defaults to None.\\n\\n    Returns:\\n    list: The list of n formatted timestamps.\\n\\n    Requirements:\\n    - time\\n    - datetime\\n    - random\\n    - matplotlib.pyplot\\n\\n    Example:\\n    >>> random.seed(42)\\n    >>> timestamps = task_func(n=3, output_path=None)\\n    >>> print(timestamps)\\n    ['2013-07-06 20:56:46', '1977-07-29 23:34:23', '1971-09-14 11:29:44']\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generate n random Unix timestamps and convert them to strings formatted as UTC DATE_FORMAT. Plot a histogram of the distribution of the generated timestamps. If an output path is provided, save the histogram to the specified path. Otherwise, display the plot.\\nThe function should output with:\\n    list: The list of n formatted timestamps.\\nYou should write self-contained code starting with:\\n```\\nimport time\\nfrom datetime import datetime\\nimport random\\nimport matplotlib.pyplot as plt\\n# Constants\\nDATE_FORMAT = \\\"%Y-%m-%d %H:%M:%S\\\"\\ndef task_func(n, output_path=None):\\n```\",\"libs\":\"['datetime', 'random', 'matplotlib', 'time']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}