{"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":"13cf385c-208d-567a-891d-1bc6d4466963","task_key":"default--v0~2e1~2e0~5fhf--13cf385c-208d-567a-891d-1bc6d4466963","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 13cf385c-208d-567a-891d-1bc6d4466963","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import json\\nfrom enum import Enum\\nclass Color(Enum):\\n    RED = 1\\n    GREEN = 2\\n    BLUE = 3\\ndef task_func(my_obj):\\n\",\"complete_prompt\":\"import json\\nfrom enum import Enum\\n\\nclass Color(Enum):\\n    RED = 1\\n    GREEN = 2\\n    BLUE = 3\\n\\n\\ndef task_func(my_obj):\\n    \\\"\\\"\\\"\\n    Serializes an object into a JSON string with support for complex data types like Enum.\\n    The function uses a custom JSONEncoder to handle Enum types by converting them to their names or values.\\n\\n    Parameters:\\n    my_obj (object): The object to be serialized. Can be a dictionary, list, etc.\\n\\n    Returns:\\n    str: The serialized JSON string of the object.\\n\\n    Requirements:\\n    - json\\n    - enum\\n\\n    Examples:\\n    Serialize a dictionary containing Enum.\\n    >>> result = task_func({'color': Color.RED})\\n    >>> 'RED' in result\\n    True\\n\\n    Serialize a simple dictionary.\\n    >>> task_func({'name': 'Alice', 'age': 30})\\n    '{\\\"name\\\": \\\"Alice\\\", \\\"age\\\": 30}'\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Serializes an object into a JSON string with support for complex data types like Enum. The function uses a custom JSONEncoder to handle Enum types by converting them to their names or values. Serialize a simple dictionary. >>> task_func({'name': 'Alice', 'age': 30}) '{\\\"name\\\": \\\"Alice\\\", \\\"age\\\": 30}'\\nThe function should output with:\\n    str: The serialized JSON string of the object.\\nYou should write self-contained code starting with:\\n```\\nimport json\\nfrom enum import Enum\\nclass Color(Enum):\\n    RED = 1\\n    GREEN = 2\\n    BLUE = 3\\ndef task_func(my_obj):\\n```\",\"libs\":\"['enum', 'json']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}