{"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":"84946181-28e5-59af-92e9-ef980c6094a4","task_key":"default--v0~2e1~2e0~5fhf--84946181-28e5-59af-92e9-ef980c6094a4","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 84946181-28e5-59af-92e9-ef980c6094a4","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import re\\nimport os\\nimport glob\\nimport mimetypes\\ndef task_func(directory, file_pattern, suffix):\\n\",\"complete_prompt\":\"import re\\nimport os\\nimport glob\\nimport mimetypes\\n\\ndef task_func(directory, file_pattern, suffix):\\n    \\\"\\\"\\\"\\n    Scans a specified directory for files matching a given pattern and with a certain suffix, then determines their file types.\\n    The function returns a dictionary with file names as keys and their corresponding MIME types as values.\\n\\n    Parameters:\\n        directory (str): The path to the directory to scan.\\n        file_pattern (str): The pattern to match files against.\\n        suffix (str): The suffix that files must have to be included.\\n\\n    Returns:\\n        dict: A dictionary mapping file names to their MIME types.\\n\\n    Requirements:\\n    - re\\n    - os\\n    - glob\\n    - mimetypes\\n\\n    Examples:\\n    >>> isinstance(task_func(r'dir', '*', '_suff), dict)\\n    True\\n    >>> 'example_suff.txt' in task_func(r'dir', '*_suff.txt', '_suff')\\n    True  # This example assumes 'example_suff.txt' is in the directory and matches the pattern and suffix\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Scans a specified directory for files matching a given pattern and with a certain suffix, then determines their file types. The function returns a dictionary with file names as keys and their corresponding MIME types as values.\\nThe function should output with:\\n    dict: A dictionary mapping file names to their MIME types.\\nYou should write self-contained code starting with:\\n```\\nimport re\\nimport os\\nimport glob\\nimport mimetypes\\ndef task_func(directory, file_pattern, suffix):\\n```\",\"libs\":\"['glob', 'mimetypes', 're', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}