{"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":"69f73b57-1886-53b1-9eee-2713dc0811d7","task_key":"default--v0~2e1~2e0~5fhf--69f73b57-1886-53b1-9eee-2713dc0811d7","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 69f73b57-1886-53b1-9eee-2713dc0811d7","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import hashlib\\nimport random\\nimport struct\\nKEYS = ['470FC614', '4A0FC614', '4B9FC614', '4C8FC614', '4D7FC614']\\ndef task_func(hex_keys=KEYS, seed=42):\\n\",\"complete_prompt\":\"import hashlib\\nimport random\\nimport struct\\n\\nKEYS = ['470FC614', '4A0FC614', '4B9FC614', '4C8FC614', '4D7FC614']\\n\\n\\ndef task_func(hex_keys=KEYS, seed=42):\\n    \\\"\\\"\\\"\\n    Given a list of hexadecimal string keys, this function selects one at random,\\n    converts it into a floating-point number, and then computes its MD5 hash. An optional\\n    seed parameter allows for deterministic random choices for testing purposes.\\n\\n    Parameters:\\n    hex_keys (list of str): A list of hexadecimal strings to choose from.\\n    seed (int, optional): A seed for the random number generator to ensure deterministic behavior.\\n\\n    Returns:\\n    str: The MD5 hash of the floating-point number derived from the randomly selected hexadecimal string.\\n\\n    Raises:\\n    ValueError: If contains invalid hexadecimal strings.\\n\\n    Requirements:\\n    - struct\\n    - hashlib\\n    - random\\n\\n    Example:\\n    >>> task_func(['1a2b3c4d', '5e6f7g8h'])\\n    '426614caa490f2c185aebf58f1d4adac'\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Given a list of hexadecimal string keys, this function selects one at random, converts it into a floating-point number, and then computes its MD5 hash. An optional seed parameter allows for deterministic random choices for testing purposes.\\nThe function should raise the exception for: ValueError: If contains invalid hexadecimal strings.\\nThe function should output with:\\n    str: The MD5 hash of the floating-point number derived from the randomly selected hexadecimal string.\\nYou should write self-contained code starting with:\\n```\\nimport hashlib\\nimport random\\nimport struct\\nKEYS = ['470FC614', '4A0FC614', '4B9FC614', '4C8FC614', '4D7FC614']\\ndef task_func(hex_keys=KEYS, seed=42):\\n```\",\"libs\":\"['struct', 'hashlib', 'random']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}