{"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":"60d9c82c-5eb0-5ffc-a60d-7c06553ac202","task_key":"default--v0~2e1~2e0~5fhf--60d9c82c-5eb0-5ffc-a60d-7c06553ac202","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 60d9c82c-5eb0-5ffc-a60d-7c06553ac202","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import ctypes\\nimport hashlib\\nimport binascii\\ndef task_func(filepath):\\n\",\"complete_prompt\":\"import ctypes\\nimport hashlib\\nimport binascii\\n\\ndef task_func(filepath):\\n    \\\"\\\"\\\"\\n    Loads a DLL file from a given filepath, calculates its MD5 and SHA256 hashes,\\n    and prints these hashes in hexadecimal format. This function is a demonstration\\n    of file handling, usage of the hashlib library for hash calculations, and binascii\\n    for hexadecimal conversion. Note that the actual operations performed on the loaded\\n    DLL are limited to hash calculation.\\n\\n    Parameters:\\n    filepath (str): The path of the DLL file.\\n\\n    Returns:\\n    str: The actual name of the loaded DLL file.\\n\\n    Requirements:\\n    - ctypes\\n    - hashlib\\n    - binascii\\n\\n    Examples:\\n    >>> with open('libc.so.6', 'w') as f:\\n    ...     _ = f.write(\\\"\\\")\\n    >>> result = task_func('libc.so.6')\\n    MD5 Hash: d41d8cd98f00b204e9800998ecf8427e\\n    SHA256 Hash: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\\n    >>> isinstance(result, str) \\n    True\\n    >>> 'libc.so.6' in result\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Loads a DLL file from a given filepath, calculates its MD5 and SHA256 hashes, and prints these hashes in hexadecimal format. This function is a demonstration of file handling, usage of the hashlib library for hash calculations, and binascii for hexadecimal conversion. Note that the actual operations performed on the loaded DLL are limited to hash calculation.\\nThe function should output with:\\n    str: The actual name of the loaded DLL file.\\nYou should write self-contained code starting with:\\n```\\nimport ctypes\\nimport hashlib\\nimport binascii\\ndef task_func(filepath):\\n```\",\"libs\":\"['ctypes', 'hashlib', 'binascii']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}