{"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":"e1c91063-3bca-57d6-904d-69642f4ba5b1","task_key":"default--v0~2e1~2e0~5fhf--e1c91063-3bca-57d6-904d-69642f4ba5b1","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf e1c91063-3bca-57d6-904d-69642f4ba5b1","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import subprocess\\nimport os\\nimport json\\nfrom datetime import datetime\\ndef task_func(script_name='backup.sh', log_file='/home/user/backup_log.json'):\\n\",\"complete_prompt\":\"import subprocess\\nimport os\\nimport json\\nfrom datetime import datetime\\n\\n\\ndef task_func(script_name='backup.sh', log_file='/home/user/backup_log.json'):\\n    \\\"\\\"\\\"\\n    Runs the provided backup shell script and logs the start time, end time, and exit status \\n    in a specified JSON log file.\\n    \\n    Parameters:\\n    - script_name (str): The name of the shell script to run. Default is 'backup.sh'.\\n    - log_file (str): The path to the JSON log file where the execution details will be recorded. Default is '/home/user/backup_log.json'.\\n    \\n    Returns:\\n    dict: A dictionary containing:\\n        - 'start_time': The start time of the script execution in the format '%Y-%m-%d %H:%M:%S'.\\n        - 'end_time': The end time of the script execution in the format '%Y-%m-%d %H:%M:%S'.\\n        - 'exit_status': The exit status of the script execution (0 for success, other values indicate an error).\\n    \\n    Raises:\\n    - FileNotFoundError: If the script file does not exist.\\n    - RuntimeError: If there is an error executing the script.\\n        \\n    Requirements:\\n    - subprocess\\n    - os\\n    - datetime\\n    - json\\n    \\n    Example:\\n    >>> task_func()\\n    {'start_time': '2023-09-19 14:30:00', 'end_time': '2023-09-19 14:35:00', 'exit_status': 0}\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Runs the provided backup shell script and logs the start time, end time, and exit status in a specified JSON log file.\\nThe function should raise the exception for: FileNotFoundError: If the script file does not exist. RuntimeError: If there is an error executing the script.\\nThe function should output with:\\n    dict: A dictionary containing:\\n    'start_time': The start time of the script execution in the format '%Y-%m-%d %H:%M:%S'.\\n    'end_time': The end time of the script execution in the format '%Y-%m-%d %H:%M:%S'.\\n    'exit_status': The exit status of the script execution (0 for success, other values indicate an error).\\nYou should write self-contained code starting with:\\n```\\nimport subprocess\\nimport os\\nimport json\\nfrom datetime import datetime\\ndef task_func(script_name='backup.sh', log_file='/home/user/backup_log.json'):\\n```\",\"libs\":\"['subprocess', 'datetime', 'json', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}