{"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":"74637686-f0d0-5a5a-8a9d-0fa15e8a7a5d","task_key":"default--v0~2e1~2e0~5fhf--74637686-f0d0-5a5a-8a9d-0fa15e8a7a5d","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 74637686-f0d0-5a5a-8a9d-0fa15e8a7a5d","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import os\\nimport glob\\nimport zipfile\\ndef task_func(directory):\\n\",\"complete_prompt\":\"import os\\nimport glob\\nimport zipfile\\n\\ndef task_func(directory):\\n    \\\"\\\"\\\"\\n    Zips all files (not including subdirectories) located in the specified directory and returns the path to the created zip file.\\n    \\n    Parameters:\\n    directory (str): The directory path containing the files to be zipped.\\n    \\n    Returns:\\n    str: The path to the generated zip file. Returns None if the directory does not contain any files.\\n    \\n    Raises:\\n    FileNotFoundError: if the specified directory does not exist\\n\\n    Requirements:\\n    - os\\n    - glob\\n    - zipfile\\n    \\n    Notes:\\n    - The zip name is always 'files.zip'\\n\\n    Example:\\n    >>> path = task_func('/path/to/files')\\n    >>> isinstance(path, str)\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Zips all files (not including subdirectories) located in the specified directory and returns the path to the created zip file.\\nNote that: Notes: The zip name is always 'files.zip'\\nThe function should raise the exception for: FileNotFoundError: if the specified directory does not exist\\nThe function should output with:\\n    str: The path to the generated zip file. Returns None if the directory does not contain any files.\\nYou should write self-contained code starting with:\\n```\\nimport os\\nimport glob\\nimport zipfile\\ndef task_func(directory):\\n```\",\"libs\":\"['glob', 'zipfile', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}