{"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":"0ed6efbd-d4f5-552d-bc21-343a649d162d","task_key":"default--v0~2e1~2e0~5fhf--0ed6efbd-d4f5-552d-bc21-343a649d162d","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 0ed6efbd-d4f5-552d-bc21-343a649d162d","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import base64\\nimport json\\nimport zlib\\ndef task_func(data_dict):\\n\",\"complete_prompt\":\"import base64\\nimport json\\nimport zlib\\n\\ndef task_func(data_dict):\\n    \\\"\\\"\\\"\\n    Serializes a dictionary to a JSON string, compresses it using zlib, and then encodes the compressed\\n    data with base64.\\n\\n    Parameters:\\n    data_dict (dict): The dictionary to be compressed and encoded. The dictionary should only contain\\n                      data that can be serialized to JSON.\\n\\n    Returns:\\n    str: A base64 encoded string that represents the zlib-compressed JSON string of the dictionary.\\n\\n    Requirements:\\n    - base64\\n    - zlib\\n    - json\\n    \\n    Example:\\n    >>> data = {'key1': 'value1', 'key2': 'value2'}\\n    >>> encoded_data = task_func(data)\\n    >>> print(encoded_data)\\n    eJyrVspOrTRUslJQKkvMKU01VNJRAIkYwUWMlGoBw5sKmw==\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Serializes a dictionary to a JSON string, compresses it using zlib, and then encodes the compressed data with base64.\\nThe function should output with:\\n    str: A base64 encoded string that represents the zlib-compressed JSON string of the dictionary.\\nYou should write self-contained code starting with:\\n```\\nimport base64\\nimport json\\nimport zlib\\ndef task_func(data_dict):\\n```\",\"libs\":\"['zlib', 'base64', 'json']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}