{"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":"3ef8cba8-fa72-516f-a8e2-85dda6a0fdc0","task_key":"default--v0~2e1~2e0~5fhf--3ef8cba8-fa72-516f-a8e2-85dda6a0fdc0","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 3ef8cba8-fa72-516f-a8e2-85dda6a0fdc0","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import time\\nimport threading\\ndef task_func(delay_time: float = 1.0, num_threads: int = 5):\\n\",\"complete_prompt\":\"import time\\nimport threading\\n\\n\\ndef task_func(delay_time: float = 1.0, num_threads: int = 5):\\n    '''\\n    Introduces a delay of 'delay_time' seconds in a specified number of separate threads and \\n    returns the thread completion messages.\\n\\n    Parameters:\\n    - delay_time (float): Amounf of delay time in seconds. Defalut is 1.\\n    - num_threads (int): Number of threads in which the delay should be introduced. Default is 5.\\n\\n    Returns:\\n    - list: A list of strings containing the completion messages of the threads.\\n            The completion message looks as follow:\\n            'Delay in thread x completed'\\n\\n    Requirements:\\n    - time\\n    - threading\\n\\n    Example:\\n    >>> task_func(0.1, 3)\\n    ['Delay in thread 0 completed', 'Delay in thread 1 completed', 'Delay in thread 2 completed']\\n\\n    >>> task_func(1, 10)\\n    ['Delay in thread 0 completed', 'Delay in thread 1 completed', 'Delay in thread 2 completed', 'Delay in thread 3 completed', 'Delay in thread 4 completed', 'Delay in thread 5 completed', 'Delay in thread 6 completed', 'Delay in thread 7 completed', 'Delay in thread 8 completed', 'Delay in thread 9 completed']\\n    '''\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Introduces a delay of 'delay_time' seconds in a specified number of separate threads and returns the thread completion messages. >>> task_func(1, 10) ['Delay in thread 0 completed', 'Delay in thread 1 completed', 'Delay in thread 2 completed', 'Delay in thread 3 completed', 'Delay in thread 4 completed', 'Delay in thread 5 completed', 'Delay in thread 6 completed', 'Delay in thread 7 completed', 'Delay in thread 8 completed', 'Delay in thread 9 completed']\\nThe function should output with:\\n    list: A list of strings containing the completion messages of the threads.\\n    The completion message looks as follow:\\n    'Delay in thread x completed'\\nYou should write self-contained code starting with:\\n```\\nimport time\\nimport threading\\ndef task_func(delay_time: float = 1.0, num_threads: int = 5):\\n```\",\"libs\":\"['threading', 'time']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}