{"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":"8e603c0a-b7c6-57e3-8836-926fb1274a78","task_key":"default--v0~2e1~2e0~5fhf--8e603c0a-b7c6-57e3-8836-926fb1274a78","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 8e603c0a-b7c6-57e3-8836-926fb1274a78","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"from collections import Counter\\nfrom random import choice, seed\\n# Constants\\nPOSSIBLE_ITEMS = ['apple', 'banana', 'cherry', 'date', 'elderberry']\\ndef task_func(list_of_lists):\\n\",\"complete_prompt\":\"from collections import Counter\\nfrom random import choice, seed\\n\\n# Constants\\nPOSSIBLE_ITEMS = ['apple', 'banana', 'cherry', 'date', 'elderberry']\\n\\ndef task_func(list_of_lists):\\n    \\\"\\\"\\\"\\n    Create a \\\"shopping cart\\\" (Counter object) for each list in list_of_lists. \\n    The items in the cart are randomly selected from a predefined list of possible items (POSSIBLE_ITEMS).\\n    The frequency of each item in the cart corresponds to the length of the list.\\n\\n    Parameters:\\n    - list_of_lists (list): A list of lists, each representing a 'basket'.\\n\\n    Returns:\\n    - baskets (list): A list of Counters, each representing a 'shopping cart'.\\n\\n    Requirements:\\n    - collections\\n    - random\\n\\n    Example:\\n    >>> baskets = task_func([[1, 2, 3], [4, 5]])\\n    >>> all(isinstance(basket, Counter) for basket in baskets) # Illustrative, actual items will vary due to randomness\\n    True\\n    >>> sum(len(basket) for basket in baskets) # The sum of lengths of all baskets; illustrative example\\n    3\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Create a \\\"shopping cart\\\" (Counter object) for each list in list_of_lists. The items in the cart are randomly selected from a predefined list of possible items (POSSIBLE_ITEMS). The frequency of each item in the cart corresponds to the length of the list.\\nThe function should output with:\\n    baskets (list): A list of Counters, each representing a 'shopping cart'.\\nYou should write self-contained code starting with:\\n```\\nfrom collections import Counter\\nfrom random import choice, seed\\n# Constants\\nPOSSIBLE_ITEMS = ['apple', 'banana', 'cherry', 'date', 'elderberry']\\ndef task_func(list_of_lists):\\n```\",\"libs\":\"['collections', 'random']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}