{"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":"ab3b4a2a-e94f-5b54-8958-d6983eea2c8b","task_key":"default--v0~2e1~2e0~5fhf--ab3b4a2a-e94f-5b54-8958-d6983eea2c8b","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf ab3b4a2a-e94f-5b54-8958-d6983eea2c8b","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import binascii\\nimport urllib.parse\\ndef task_func(url):\\n\",\"complete_prompt\":\"import binascii\\nimport urllib.parse\\n\\n\\ndef task_func(url):\\n    \\\"\\\"\\\"\\n    Decode a hexadecimal string from the 'q' query parameter of a URL.\\n\\n    This function extracts the 'q' query parameter from the given URL,\\n    assumes it is a hexadecimal string, and decodes it into a UTF-8 string.\\n    If the hexadecimal string is invalid or cannot be decoded into a valid UTF-8 string, None is returned.\\n\\n    Parameters:\\n    url (str): The URL to extract the query parameter from.\\n\\n    Returns:\\n    str or None: The decoded string if the 'q' parameter exists and is a valid hexadecimal, otherwise None.\\n\\n    Requirements:\\n    - binascii\\n    - urllib.parse\\n    \\n    Example:\\n    >>> task_func('https://www.example.com?q=4a4b4c')\\n    'JKL'\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Decode a hexadecimal string from the 'q' query parameter of a URL. This function extracts the 'q' query parameter from the given URL, assumes it is a hexadecimal string, and decodes it into a UTF-8 string. If the hexadecimal string is invalid or cannot be decoded into a valid UTF-8 string, None is returned.\\nThe function should output with:\\n    str or None: The decoded string if the 'q' parameter exists and is a valid hexadecimal, otherwise None.\\nYou should write self-contained code starting with:\\n```\\nimport binascii\\nimport urllib.parse\\ndef task_func(url):\\n```\",\"libs\":\"['urllib', 'binascii']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}