{"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":"ed442e32-2337-5979-86d6-ea23a6d86cfb","task_key":"default--v0~2e1~2e0~5fhf--ed442e32-2337-5979-86d6-ea23a6d86cfb","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf ed442e32-2337-5979-86d6-ea23a6d86cfb","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import os\\nfrom pathlib import Path\\nimport glob\\nimport shutil\\ndef task_func(source_directory: str, target_directory: str):\\n\",\"complete_prompt\":\"import os\\nfrom pathlib import Path\\nimport glob\\nimport shutil\\n\\n\\ndef task_func(source_directory: str, target_directory: str):\\n    \\\"\\\"\\\"\\n    Moves files with specific extensions from a source directory to a target directory,\\n    handling naming conflicts by renaming duplicates.\\n\\n    Parameters:\\n    - source_directory (str): The absolute or relative path of the source directory.\\n    - target_directory (str): The absolute or relative path of the target directory.\\n                              This function will create it if it does not exist.\\n\\n    Returns:\\n    - int: The number of files successfully moved.\\n\\n    Raises:\\n    - FileNotFoundError: If source_directory does not exist.\\n\\n    Requirements:\\n    - os\\n    - pathlib\\n    - glob\\n    - shutil\\n\\n    Notes:\\n    - This function scans the source directory recursively to find files.\\n    - Files are filtered by the extensions: \\\".txt\\\", \\\".docx\\\", \\\".xlsx\\\", \\\".csv\\\".\\n    - Renaming of files due to naming conflicts follows the pattern '<original_name>-n.<extension>'.\\n\\n    Examples:\\n    >>> task_func('./source_folder', './target_folder')\\n    3\\n    >>> task_func('./empty_folder', './target_folder')\\n    0\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Moves files with specific extensions from a source directory to a target directory, handling naming conflicts by renaming duplicates.\\nNote that: Notes: This function scans the source directory recursively to find files. Files are filtered by the extensions: \\\".txt\\\", \\\".docx\\\", \\\".xlsx\\\", \\\".csv\\\". Renaming of files due to naming conflicts follows the pattern '<original_name>-n.<extension>'.\\nThe function should raise the exception for: FileNotFoundError: If source_directory does not exist.\\nThe function should output with:\\n    int: The number of files successfully moved.\\nYou should write self-contained code starting with:\\n```\\nimport os\\nfrom pathlib import Path\\nimport glob\\nimport shutil\\ndef task_func(source_directory: str, target_directory: str):\\n```\",\"libs\":\"['glob', 'shutil', 'pathlib', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}