{"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":"a09d60bb-1683-5e77-b103-007fe60b6056","task_key":"default--v0~2e1~2e0~5fhf--a09d60bb-1683-5e77-b103-007fe60b6056","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf a09d60bb-1683-5e77-b103-007fe60b6056","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import os\\nimport glob\\nimport subprocess\\ndef task_func(directory, backup_dir='/path/to/backup'):\\n\",\"complete_prompt\":\"import os\\nimport glob\\nimport subprocess\\n\\ndef task_func(directory, backup_dir='/path/to/backup'):\\n    \\\"\\\"\\\"\\n    Backup all '.log' files in a specified directory to a tar.gz file and delete the original files after backup.\\n    The backup file is named 'logs_backup.tar.gz' and placed in the specified backup directory.\\n    \\n    Parameters:\\n    - directory (str): The directory that contains the log files to be backed up.\\n    - backup_dir (str, optional): The directory where the backup file will be saved.\\n                                  Default is '/path/to/backup'.\\n    \\n    Returns:\\n    - str: The path to the backup file if logs are found, otherwise returns a message 'No logs found to backup'.\\n    \\n    Raises:\\n    - FileNotFoundError: If the specified directory does not exist.\\n    \\n    Requirements:\\n    - subprocess\\n    - glob\\n    - os\\n    \\n    Example:\\n    >>> task_func('/path/to/logs')\\n    '/path/to/backup/logs_backup.tar.gz'\\n    >>> task_func('/path/to/logs', '/alternative/backup/dir')\\n    '/alternative/backup/dir/logs_backup.tar.gz'\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Backup all '.log' files in a specified directory to a tar.gz file and delete the original files after backup. The backup file is named 'logs_backup.tar.gz' and placed in the specified backup directory.\\nThe function should raise the exception for: FileNotFoundError: If the specified directory does not exist.\\nThe function should output with:\\n    str: The path to the backup file if logs are found, otherwise returns a message 'No logs found to backup'.\\nYou should write self-contained code starting with:\\n```\\nimport os\\nimport glob\\nimport subprocess\\ndef task_func(directory, backup_dir='/path/to/backup'):\\n```\",\"libs\":\"['glob', 'subprocess', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}