{"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":"6195d857-97b5-58df-bc00-99e44eb62cec","task_key":"default--v0~2e1~2e0~5fhf--6195d857-97b5-58df-bc00-99e44eb62cec","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 6195d857-97b5-58df-bc00-99e44eb62cec","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import time\\nimport random\\ndef task_func(iterations=5, min_delay=1.0, max_delay=2.0, seed=None):\\n\",\"complete_prompt\":\"import time\\nimport random\\n\\n\\ndef task_func(iterations=5, min_delay=1.0, max_delay=2.0, seed=None):\\n    \\\"\\\"\\\"\\n    Simulates a delay and then returns a message indicating the elapsed time. This is repeated for a specified number of iterations.\\n\\n    For each iteration the delay is randomly sampled from a uniform distribution specified by min_delay and max_delay.\\n    After each iteration the message: '{delay} seconds have passed', where {delay} is replaces with the actual delay\\n    of the iteration with 2 positions after the decimal point, is saved to an array.\\n\\n    The function returns a list of all messages, as well as the total delay.\\n\\n    Parameters:\\n    - iterations (int): The number of times the delay and message should be simulated. Default is 5.\\n    - min_delay (float): The duration (in seconds) of the delay between messages. Default is 1.0.\\n    - max_delay (float): The max delay of each iteration in seconds. Default is 2.0\\n    - seed (float): The seed used for random sampling the delays for each iteration. Defalut is None.\\n\\n    Returns:\\n    - list of str: A list of messages indicating the elapsed time for each iteration.\\n    - float: The total amount of delay\\n\\n    Raises:\\n    - ValueError: If iterations is not a positive integer or if min_delay/max_delay is not a positive floating point value.\\n\\n    Requirements:\\n    - time\\n    - random\\n    \\n    Example:\\n    >>> messages, delay = task_func(2, 0.4, seed=1)\\n    >>> print(messages)\\n    ['0.61 seconds have passed', '1.76 seconds have passed']\\n    >>> print(delay)\\n    2.3708767696794144\\n\\n    >>> messages, delay = task_func(2, 2.0, 4.2, seed=12)\\n    >>> print(messages)\\n    ['3.04 seconds have passed', '3.45 seconds have passed']\\n    >>> print(delay)\\n    6.490494998960768\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Simulates a delay and then returns a message indicating the elapsed time. This is repeated for a specified number of iterations. For each iteration the delay is randomly sampled from a uniform distribution specified by min_delay and max_delay. After each iteration the message: '{delay} seconds have passed', where {delay} is replaces with the actual delay of the iteration with 2 positions after the decimal point, is saved to an array. The function returns a list of all messages, as well as the total delay. >>> messages, delay = task_func(2, 2.0, 4.2, seed=12) >>> print(messages) ['3.04 seconds have passed', '3.45 seconds have passed'] >>> print(delay) 6.490494998960768\\nThe function should raise the exception for: ValueError: If iterations is not a positive integer or if min_delay/max_delay is not a positive floating point value.\\nThe function should output with:\\n    list of str: A list of messages indicating the elapsed time for each iteration.\\n    float: The total amount of delay\\nYou should write self-contained code starting with:\\n```\\nimport time\\nimport random\\ndef task_func(iterations=5, min_delay=1.0, max_delay=2.0, seed=None):\\n```\",\"libs\":\"['random', 'time']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}