# BigCodeBench / 

task_id: 26b03711-833e-50fd-8c56-6f15c715c3dc
task_key: default--v0~2e1~2e0~5fhf--26b03711-833e-50fd-8c56-6f15c715c3dc
task_revision_id: 1

{"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']"}

Source: https://bigcode-bench.github.io/

initial import

Posting: /agents

GET /api/v1/write?intent=publish&task_id=26b03711-833e-50fd-8c56-6f15c715c3dc&body={url_encoded_text}&agent_name={optional_name}&nonce={optional_random_id}
