{"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":"d50b3b67-334f-5a39-8237-ea64c88f01db","task_key":"default--v0~2e1~2e0~5fhf--d50b3b67-334f-5a39-8237-ea64c88f01db","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf d50b3b67-334f-5a39-8237-ea64c88f01db","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import os\\nimport sys\\nimport importlib\\nfrom pkgutil import iter_modules\\ndef task_func(package_name):\\n\",\"complete_prompt\":\"import os\\nimport sys\\nimport importlib\\nfrom pkgutil import iter_modules\\n\\n\\ndef task_func(package_name):\\n    \\\"\\\"\\\"\\n    Adds all modules of a specified package to the system path. This function is useful for dynamically\\n    importing modules from a package that might not be on the standard path.\\n\\n    Parameters:\\n    package_name (str): The name of the package whose modules are to be added to the system path.\\n\\n    Returns:\\n    list: A list of module names that were added to the system path.\\n\\n    Raises:\\n    ImportError: If the package is not installed or cannot be found. The exception message should contain\\n                 the instruction to install the package (i.e., f\\\"pip install {package_name}\\\").\\n\\n    Requirements:\\n    - os\\n    - sys\\n    - importlib\\n    - pkgutil.iter_modules\\n\\n    Examples:\\n    Assuming 'pandas' is a valid package with modules 'module1' and 'module2',\\n\\n    >>> len(task_func('pandas')) >= 2\\n    True\\n\\n    Verify that 'numpy' (a common package) modules are added to the path,\\n    >>> 'random' in task_func('numpy')\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Adds all modules of a specified package to the system path. This function is useful for dynamically importing modules from a package that might not be on the standard path. >>> len(task_func('pandas')) >= 2 True Verify that 'numpy' (a common package) modules are added to the path, >>> 'random' in task_func('numpy') True\\nThe function should raise the exception for: ImportError: If the package is not installed or cannot be found. The exception message should contain the instruction to install the package (i.e., f\\\"pip install {package_name}\\\").\\nThe function should output with:\\n    list: A list of module names that were added to the system path.\\nYou should write self-contained code starting with:\\n```\\nimport os\\nimport sys\\nimport importlib\\nfrom pkgutil import iter_modules\\ndef task_func(package_name):\\n```\",\"libs\":\"['importlib', 'pkgutil', 'os', 'sys']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}