{"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":"3fb15fe8-f31b-5b52-ac8f-6366d218e195","task_key":"default--v0~2e1~2e0~5fhf--3fb15fe8-f31b-5b52-ac8f-6366d218e195","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 3fb15fe8-f31b-5b52-ac8f-6366d218e195","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import urllib.request\\nimport os\\nimport zipfile\\n# Constants\\nTARGET_DIR = \\\"downloaded_files\\\"\\nTARGET_ZIP_FILE = \\\"downloaded_files.zip\\\"\\ndef task_func(url):\\n\",\"complete_prompt\":\"import urllib.request\\nimport os\\nimport zipfile\\n\\n# Constants\\nTARGET_DIR = \\\"downloaded_files\\\"\\nTARGET_ZIP_FILE = \\\"downloaded_files.zip\\\"\\n\\n\\ndef task_func(url):\\n    \\\"\\\"\\\"\\n    Download and extract a zip file from a specified URL to a designated directory.\\n\\n    Parameters:\\n    - url (str): The URL of the zip file.\\n\\n    Returns:\\n    - str: The path of the directory where the contents of the zip file are extracted.\\n\\n    Requirements:\\n      - urllib\\n      - os\\n      - zipfile\\n\\n    Behavior:\\n    - If the target directory TARGET_DIR does not exist, it is created.\\n    - The zip file is downloaded from the given URL and saved locally as TARGET_ZIP_FILE.\\n    - The local zip file TARGET_ZIP_FILE is deleted after extraction.\\n\\n    Error Handling:\\n    - The function does not explicitly handle errors that may occur during the download or extraction process.\\n      Errors such as a failed download, invalid URL, or corrupted zip file will result in an unhandled exception.\\n\\n    Examples:\\n    >>> task_func(\\\"http://example.com/files.zip\\\")\\n    'downloaded_files'\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Download and extract a zip file from a specified URL to a designated directory. Behavior: - If the target directory TARGET_DIR does not exist, it is created. - The zip file is downloaded from the given URL and saved locally as TARGET_ZIP_FILE. - The local zip file TARGET_ZIP_FILE is deleted after extraction. Error Handling: - The function does not explicitly handle errors that may occur during the download or extraction process. Errors such as a failed download, invalid URL, or corrupted zip file will result in an unhandled exception.\\nThe function should output with:\\n    str: The path of the directory where the contents of the zip file are extracted.\\nYou should write self-contained code starting with:\\n```\\nimport urllib.request\\nimport os\\nimport zipfile\\n# Constants\\nTARGET_DIR = \\\"downloaded_files\\\"\\nTARGET_ZIP_FILE = \\\"downloaded_files.zip\\\"\\ndef task_func(url):\\n```\",\"libs\":\"['urllib', 'zipfile', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}