{"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":"8b3bcffc-f698-5715-8423-c67bbd01cbac","task_key":"default--v0~2e1~2e0~5fhf--8b3bcffc-f698-5715-8423-c67bbd01cbac","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 8b3bcffc-f698-5715-8423-c67bbd01cbac","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import subprocess\\nimport logging\\ndef task_func(filepath):\\n\",\"complete_prompt\":\"import subprocess\\nimport logging\\n\\ndef task_func(filepath):\\n    \\\"\\\"\\\"\\n    Attempts to compile a existing C++ file specified by 'filepath'. The output of the compilation process\\n    is logged, indicating whether the compilation was successful or not. This function is useful\\n    for automating the compilation of C++ code and tracking compilation results.\\n    The log should indicate whether the compilation was successful or if an error occurred.\\n\\n    Parameters:\\n    filepath (str): The path of the C++ file to be compiled.\\n\\n    Returns:\\n    None: This function does not return anything but logs the outcome of the compilation process.\\n\\n    Raises:\\n    - subprocess.CalledProcessError: If the compilation process fails.\\n    - FileNotFoundError: If the compiler is not found or the specified file does not exist.\\n\\n    Requirements:\\n    - subprocess\\n    - logging\\n\\n    Examples:\\n    >>> import os\\n    >>> with open('example.cpp', 'w') as f: \\\\\\n            _ = f.write(\\\"int main(){return 0;}\\\")\\n    >>> task_func('example.cpp')\\n    >>> os.path.exists('example')\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Attempts to compile a existing C++ file specified by 'filepath'. The output of the compilation process is logged, indicating whether the compilation was successful or not. This function is useful for automating the compilation of C++ code and tracking compilation results. The log should indicate whether the compilation was successful or if an error occurred.\\nThe function should raise the exception for: subprocess.CalledProcessError: If the compilation process fails. FileNotFoundError: If the compiler is not found or the specified file does not exist.\\nThe function should output with:\\n    None: This function does not return anything but logs the outcome of the compilation process.\\nYou should write self-contained code starting with:\\n```\\nimport subprocess\\nimport logging\\ndef task_func(filepath):\\n```\",\"libs\":\"['subprocess', 'logging']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}