{"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":"113fb488-7f38-565e-9c75-35709791954b","task_key":"default--v0~2e1~2e0~5fhf--113fb488-7f38-565e-9c75-35709791954b","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 113fb488-7f38-565e-9c75-35709791954b","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import os\\nimport shutil\\ndef task_func(directory, backup_directory):\\n\",\"complete_prompt\":\"import os\\nimport shutil\\n\\ndef task_func(directory, backup_directory):\\n    \\\"\\\"\\\"\\n    Scans a specified directory for JSON files and copies them to a backup directory.\\n    If the backup directory does not exist, it is created.\\n    The function returns a list of paths to the copied files in the backup directory.\\n\\n    Parameters:\\n    - directory (str): The path of the directory to scan for JSON files.\\n    - backup_directory (str): The path of the directory where JSON files will be backed up.\\n\\n    Returns:\\n    - list: Paths to the copied JSON files in the backup directory.\\n\\n    Note: The function assumes that the source directory exists and contains JSON files.\\n\\n    Requirements:\\n    - os\\n    - shutil\\n\\n    Examples:\\n    >>> directory = 'path/to/source'\\n    >>> backup_directory = 'path/to/backup'\\n    >>> type(task_func(directory, backup_directory)) is list\\n    True\\n    >>> all(file.endswith('.json') for file in task_func(directory, backup_directory))\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Scans a specified directory for JSON files and copies them to a backup directory. If the backup directory does not exist, it is created. The function returns a list of paths to the copied files in the backup directory.\\nNote that: The function assumes that the source directory exists and contains JSON files.\\nThe function should output with:\\n    list: Paths to the copied JSON files in the backup directory.\\nYou should write self-contained code starting with:\\n```\\nimport os\\nimport shutil\\ndef task_func(directory, backup_directory):\\n```\",\"libs\":\"['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":[]}