{"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":"5aa8e913-c2c0-537d-aa7d-520670bac55f","task_key":"default--v0~2e1~2e0~5fhf--5aa8e913-c2c0-537d-aa7d-520670bac55f","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 5aa8e913-c2c0-537d-aa7d-520670bac55f","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import subprocess\\nimport os\\nimport time\\nfrom datetime import datetime\\ndef task_func(script_dir, scripts, delay):\\n\",\"complete_prompt\":\"import subprocess\\nimport os\\nimport time\\nfrom datetime import datetime\\n\\n\\ndef task_func(script_dir, scripts, delay):\\n    \\\"\\\"\\\"\\n    Execute a list of bash scripts with a specified delay between each script.\\n\\n    Parameters:\\n    script_dir (str): Path to the directory containing the scripts.\\n    scripts (list): List of script filenames to be executed. Must not be empty.\\n                    If a script is not found, the function raises a FileNotFoundError.\\n    delay (int): The delay in seconds between each script execution. Must at least 0.\\n\\n    Returns:\\n    list: A list of timestamps indicating the start time of each script execution.\\n\\n    Raises:\\n    - ValueError: If the delay is negative or no scripts are provided.\\n    \\n    Requirements:\\n    - subprocess\\n    - os\\n    - time\\n    - datetime.datetime\\n\\n    Example:\\n    >>> task_func('/path/to/scripts/', ['script1.sh', 'script2.sh'], 5)\\n    ['2023-09-09 10:10:10', '2023-09-09 10:10:15']\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Execute a list of bash scripts with a specified delay between each script.\\nThe function should raise the exception for: ValueError: If the delay is negative or no scripts are provided.\\nThe function should output with:\\n    list: A list of timestamps indicating the start time of each script execution.\\nYou should write self-contained code starting with:\\n```\\nimport subprocess\\nimport os\\nimport time\\nfrom datetime import datetime\\ndef task_func(script_dir, scripts, delay):\\n```\",\"libs\":\"['subprocess', 'time', 'datetime', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}