{"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":"08a653db-0028-5961-9979-35d256a8008e","task_key":"default--v0~2e1~2e0~5fhf--08a653db-0028-5961-9979-35d256a8008e","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 08a653db-0028-5961-9979-35d256a8008e","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import struct\\nimport random\\n# Constants\\nKEYS = ['470FC614', '4A0FC614', '4B9FC614', '4C8FC614', '4D7FC614']\\ndef task_func(hex_key=None):\\n\",\"complete_prompt\":\"import struct\\nimport random\\n\\n# Constants\\nKEYS = ['470FC614', '4A0FC614', '4B9FC614', '4C8FC614', '4D7FC614']\\n\\ndef task_func(hex_key=None):\\n    \\\"\\\"\\\"\\n    Generate a random float number from a list of hexadecimal strings and then round the float number to 2 decimal places.\\n\\n    Parameters:\\n    - None\\n\\n    Returns:\\n    - rounded_float (float): The rounded float number.\\n\\n    Requirements:\\n    - struct\\n    - random\\n\\n    Example:\\n    >>> random.seed(42)\\n    >>> print(repr(f\\\"{task_func():.1f}\\\"))\\n    '36806.1'\\n\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generate a random float number from a list of hexadecimal strings and then round the float number to 2 decimal places.\\nThe function should output with:\\n    rounded_float (float): The rounded float number.\\nYou should write self-contained code starting with:\\n```\\nimport struct\\nimport random\\n# Constants\\nKEYS = ['470FC614', '4A0FC614', '4B9FC614', '4C8FC614', '4D7FC614']\\ndef task_func(hex_key=None):\\n```\",\"libs\":\"['struct', 'random']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}