{"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":"noindex","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[]}},"task_id":"7bd4ae21-5997-5c25-bd5c-ac3ab3c54d37","task_key":"default--v0~2e1~2e0~5fhf--7bd4ae21-5997-5c25-bd5c-ac3ab3c54d37","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 7bd4ae21-5997-5c25-bd5c-ac3ab3c54d37","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import binascii\\nimport numpy as np\\nimport matplotlib.pyplot as plt\\nimport pandas as pd\\ndef task_func(hex_str):\\n\",\"complete_prompt\":\"import binascii\\nimport numpy as np\\nimport matplotlib.pyplot as plt\\nimport pandas as pd\\n\\ndef task_func(hex_str):\\n    \\\"\\\"\\\"\\n    Converts a hex string representation into actual bytes and records the frequency of each byte value.\\n    The function supports hex strings with or without '\\\\\\\\x' prefix.\\n\\n    Parameters:\\n    - hex_str (str): The hex string (e.g., 'F3BE8080' or '\\\\\\\\xF3\\\\\\\\xBE\\\\\\\\x80\\\\\\\\x80').\\n\\n    Returns:\\n    - tuple: A tuple containing a pandas DataFrame of byte frequencies with columns ['Byte Value', 'Frequency']\\n             and a matplotlib Axes object for the plot with 'Byte Value' as the X-axis and 'Frequency' as the Y-axis.\\n\\n    Raises:\\n    - ValueError: If 'hex_str' is not a valid hex string.\\n\\n    Requirements:\\n    - binascii\\n    - numpy\\n    - matplotlib.pyplot\\n    - pandas\\n\\n    Example:\\n    >>> df, ax = task_func('F3BE8080')\\n    >>> print(df)\\n       Byte Value  Frequency\\n    0         128          2\\n    1         190          1\\n    2         243          1\\n    >>> plt.show()\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Converts a hex string representation into actual bytes and records the frequency of each byte value. The function supports hex strings with or without '\\\\\\\\x' prefix.\\nThe function should raise the exception for: ValueError: If 'hex_str' is not a valid hex string.\\nThe function should output with:\\n    tuple: A tuple containing a pandas DataFrame of byte frequencies with columns ['Byte Value', 'Frequency']\\n    and a matplotlib Axes object for the plot with 'Byte Value' as the X-axis and 'Frequency' as the Y-axis.\\nYou should write self-contained code starting with:\\n```\\nimport binascii\\nimport numpy as np\\nimport matplotlib.pyplot as plt\\nimport pandas as pd\\ndef task_func(hex_str):\\n```\",\"libs\":\"['pandas', 'numpy', 'matplotlib', 'binascii']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}