{"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":"26b03711-833e-50fd-8c56-6f15c715c3dc","task_key":"default--v0~2e1~2e0~5fhf--26b03711-833e-50fd-8c56-6f15c715c3dc","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 26b03711-833e-50fd-8c56-6f15c715c3dc","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import os\\nimport pathlib\\nfrom hashlib import md5\\nimport unicodedata\\ndef task_func(directory):\\n\",\"complete_prompt\":\"import os\\nimport pathlib\\nfrom hashlib import md5\\nimport unicodedata\\n\\ndef task_func(directory):\\n    \\\"\\\"\\\"\\n    Processes all files within the specified directory, normalizes their filenames to ASCII,\\n    calculates their MD5 hashes, and retrieves their sizes. It returns a dictionary where\\n    each key is the normalized file name and each value is another dictionary with the file's size\\n    and MD5 hash. This method is useful for file integrity checks and file organization tasks.\\n\\n    Parameters:\\n    directory (str): The directory path whose files are to be analyzed.\\n\\n    Returns:\\n    dict: A dictionary where each key is a normalized file name, and the value is a dictionary\\n          containing the 'Size' (in bytes) and 'MD5 Hash' of the file.\\n\\n    Requirements:\\n    - os\\n    - pathlib\\n    - hashlib.md5\\n    - unicodedata\\n\\n    Examples:\\n    >>> info = task_func('test')\\n    >>> type(info) == dict\\n    True\\n    >>> 'test.txt' in info\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Processes all files within the specified directory, normalizes their filenames to ASCII, calculates their MD5 hashes, and retrieves their sizes. It returns a dictionary where each key is the normalized file name and each value is another dictionary with the file's size and MD5 hash. This method is useful for file integrity checks and file organization tasks.\\nThe function should output with:\\n    dict: A dictionary where each key is a normalized file name, and the value is a dictionary\\n    containing the 'Size' (in bytes) and 'MD5 Hash' of the file.\\nYou should write self-contained code starting with:\\n```\\nimport os\\nimport pathlib\\nfrom hashlib import md5\\nimport unicodedata\\ndef task_func(directory):\\n```\",\"libs\":\"['unicodedata', 'hashlib', 'pathlib', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}