{"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":"4d8769a1-03d1-5209-afdc-181dfc307054","task_key":"default--v0~2e1~2e0~5fhf--4d8769a1-03d1-5209-afdc-181dfc307054","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 4d8769a1-03d1-5209-afdc-181dfc307054","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import configparser\\nimport os\\nimport shutil\\ndef task_func(config_file_path, archieve_dir ='/home/user/archive'):\\n\",\"complete_prompt\":\"import configparser\\nimport os\\nimport shutil\\n\\n\\ndef task_func(config_file_path, archieve_dir ='/home/user/archive'):\\n    \\\"\\\"\\\"\\n    Archive a specified project directory into a ZIP file based on the configuration specified in a config file.\\n    \\n    This function reads a configuration file to determine the project directory and archives this directory into a ZIP file.\\n    The ZIP file's name will be the project directory's basename, stored in the specified archive directory.\\n    \\n    Configuration File Format:\\n    [Project]\\n    directory=path_to_project_directory\\n    \\n    Parameters:\\n    - config_file_path (str): Path to the configuration file. The file must exist and be readable.\\n    - archive_dir (str, optional): Path to the directory where the ZIP archive will be stored. Defaults to '/home/user/archive'.\\n    \\n    Returns:\\n    - bool: True if the ZIP archive is successfully created, otherwise an exception is raised.\\n    \\n    Requirements:\\n    - configparse\\n    - os\\n    - shutil\\n\\n    Raises:\\n    - FileNotFoundError: If the `config_file_path` does not exist or the specified project directory does not exist.\\n    - Exception: If the ZIP archive cannot be created.\\n    \\n    Example:\\n    >>> task_func(\\\"/path/to/config.ini\\\")\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Archive a specified project directory into a ZIP file based on the configuration specified in a config file. This function reads a configuration file to determine the project directory and archives this directory into a ZIP file. The ZIP file's name will be the project directory's basename, stored in the specified archive directory. Configuration File Format: [Project] directory=path_to_project_directory\\nThe function should raise the exception for: FileNotFoundError: If the `config_file_path` does not exist or the specified project directory does not exist. Exception: If the ZIP archive cannot be created.\\nThe function should output with:\\n    bool: True if the ZIP archive is successfully created, otherwise an exception is raised.\\nYou should write self-contained code starting with:\\n```\\nimport configparser\\nimport os\\nimport shutil\\ndef task_func(config_file_path, archieve_dir ='/home/user/archive'):\\n```\",\"libs\":\"['configparser', 'shutil', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}