{"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":"d5550c3f-e418-5e9d-93b7-d907e8ea565a","task_key":"default--v0~2e1~2e0~5fhf--d5550c3f-e418-5e9d-93b7-d907e8ea565a","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf d5550c3f-e418-5e9d-93b7-d907e8ea565a","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"from collections import OrderedDict\\nfrom prettytable import PrettyTable\\ndef task_func(my_dict):\\n\",\"complete_prompt\":\"from collections import OrderedDict\\nfrom prettytable import PrettyTable\\n\\n\\ndef task_func(my_dict):\\n    \\\"\\\"\\\"\\n    Sorts a given dictionary by its keys in ascending order and returns a PrettyTable object displaying the sorted items with the names 'Key' and 'Value'.\\n\\n    Parameters:\\n    my_dict (dict): The dictionary to be sorted and displayed.\\n\\n    Returns:\\n    PrettyTable: A PrettyTable object representing the sorted dictionary.\\n\\n    Requirements:\\n    - collections.OrderedDict\\n    - prettytable.PrettyTable\\n\\n    Examples:\\n    Display a simple dictionary in a sorted table format.\\n    >>> table = task_func({3: 'apple', 1: 'banana', 2: 'cherry'})\\n    >>> str(table).startswith('+') and 'banana' in str(table)\\n    True\\n\\n    Display an empty dictionary.\\n    >>> str(task_func({})).startswith('+')\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Sorts a given dictionary by its keys in ascending order and returns a PrettyTable object displaying the sorted items with the names 'Key' and 'Value'. Display an empty dictionary. >>> str(task_func({})).startswith('+') True\\nThe function should output with:\\n    PrettyTable: A PrettyTable object representing the sorted dictionary.\\nYou should write self-contained code starting with:\\n```\\nfrom collections import OrderedDict\\nfrom prettytable import PrettyTable\\ndef task_func(my_dict):\\n```\",\"libs\":\"['collections', 'prettytable']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}