{"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":"b7ed76e6-116c-521f-be79-6ebe814694f4","task_key":"default--v0~2e1~2e0~5fhf--b7ed76e6-116c-521f-be79-6ebe814694f4","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf b7ed76e6-116c-521f-be79-6ebe814694f4","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import shutil\\nimport pathlib\\ndef task_func(source_path, destination_path):\\n\",\"complete_prompt\":\"import shutil\\nimport pathlib\\n\\n\\ndef task_func(source_path, destination_path):\\n    \\\"\\\"\\\"\\n    Lists files in the specified source directory without descending into subdirectories and copies them to a\\n    destination directory.\\n\\n    Parameters:\\n    - source_path (str):      The source directory path to analyze. Must be an existing, accessible directory.\\n    - destination_path (str): The destination directory path where files will be copied.\\n                              If it does not exist, this function will create it.\\n\\n    Returns:\\n    Tuple[str, List[str]]: A tuple containing the name of the source directory and a list of filenames (not\\n                           full paths) that were copied.\\n\\n    Raises:\\n    - ValueError: If source_path does not exist or is not a directory.\\n\\n    Requirements:\\n    - shutil\\n    - pathlib\\n\\n    Example:\\n    >>> x = task_func('/Docs/src/Scripts')\\n    >>> type(x)\\n    <class 'tuple'>\\n    >>> x\\n    ('Scripts', ['file_1_in_scripts_dir.txt', 'file_2_in_scripts_dir.txt'])\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Lists files in the specified source directory without descending into subdirectories and copies them to a destination directory.\\nThe function should raise the exception for: ValueError: If source_path does not exist or is not a directory.\\nThe function should output with:\\n    Tuple[str, List[str]]: A tuple containing the name of the source directory and a list of filenames (not\\n    full paths) that were copied.\\nYou should write self-contained code starting with:\\n```\\nimport shutil\\nimport pathlib\\ndef task_func(source_path, destination_path):\\n```\",\"libs\":\"['shutil', 'pathlib']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}