{"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":"c739848c-6631-5fd4-898b-8383fb4ed737","task_key":"default--v0~2e1~2e0~5fhf--c739848c-6631-5fd4-898b-8383fb4ed737","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf c739848c-6631-5fd4-898b-8383fb4ed737","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import os\\nimport shutil\\nimport glob\\nimport hashlib\\ndef task_func(ROOT_DIR, DEST_DIR, SPECIFIC_HASH):\\n\",\"complete_prompt\":\"import os\\nimport shutil\\nimport glob\\nimport hashlib\\n\\ndef task_func(ROOT_DIR, DEST_DIR, SPECIFIC_HASH):\\n    \\\"\\\"\\\"\\n    Moves all files from a specified root directory (ROOT_DIR) to a target directory (DEST_DIR) if they match a specific hash value (SPECIFIC_HASH).\\n    The function calculates the MD5 hash of each file in ROOT_DIR and moves it if the hash matches SPECIFIC_HASH.\\n\\n    Parameters:\\n        ROOT_DIR (str): The path to the root directory from which files will be moved.\\n        DEST_DIR (str): The path to the destination directory where files will be moved to.\\n        SPECIFIC_HASH (str): The specific MD5 hash value files must match to be moved.\\n\\n    Returns:\\n        int: The number of files moved to the target directory.\\n\\n    Note:\\n        The function assumes the existence of the root directory. The existence of DEST_DIR is ensured by the function.\\n\\n    Requirements:\\n    - os\\n    - shutil\\n    - glob\\n    - hashlib\\n\\n    Examples:\\n    >>> # Assuming the correct paths are given for ROOT_DIR, DEST_DIR,\\n    >>> # and at least one file in ROOT_DIR matches SPECIFIC_HASH:\\n    >>> type(task_func('/path/to/root', '/path/to/dest', 'd41d8cd98f00b204e9800998ecf8427e')) is int\\n    True\\n    >>> task_func('/path/to/root', '/path/to/dest', 'd41d8cd98f00b204e9800998ecf8427e') >= 0\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Moves all files from a specified root directory (ROOT_DIR) to a target directory (DEST_DIR) if they match a specific hash value (SPECIFIC_HASH). The function calculates the MD5 hash of each file in ROOT_DIR and moves it if the hash matches SPECIFIC_HASH.\\nNote that: The function assumes the existence of the root directory. The existence of DEST_DIR is ensured by the function.\\nThe function should output with:\\n    int: The number of files moved to the target directory.\\nYou should write self-contained code starting with:\\n```\\nimport os\\nimport shutil\\nimport glob\\nimport hashlib\\ndef task_func(ROOT_DIR, DEST_DIR, SPECIFIC_HASH):\\n```\",\"libs\":\"['glob', 'shutil', 'hashlib', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}