{"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":"e03aae30-c8f5-5e91-ac86-7495c7481b15","task_key":"default--v0~2e1~2e0~5fhf--e03aae30-c8f5-5e91-ac86-7495c7481b15","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf e03aae30-c8f5-5e91-ac86-7495c7481b15","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import random\\nfrom collections import Counter\\n# Constants\\nCARDS = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K', 'A']\\ndef task_func(x=1):\\n\",\"complete_prompt\":\"import random\\nfrom collections import Counter\\n\\n# Constants\\nCARDS = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K', 'A']\\n\\ndef task_func(x=1):\\n    \\\"\\\"\\\"\\n    Draw x random 5-card poker hands from a 52-card pack (without suits) and return\\n    the hands along with a counter of the drawn cards.\\n\\n    Parameters:\\n    x (int, optional): Number of hands to draw. Default is 1.\\n\\n    Returns:\\n    tuple: A tuple containing two elements:\\n        - list of list str: Each inner list contains 5 strings, representing a 5-card poker hand.\\n        - Counter: A counter of the drawn cards.\\n\\n\\n    The output is random; hence, the returned list will vary with each call.\\n\\n    Requirements:\\n    - random\\n    - collections.Counter\\n\\n    Example:\\n    >>> random.seed(0)\\n    >>> result = task_func(1)\\n    >>> len(result[0][0])\\n    5\\n    >>> result[0][0][0] in CARDS\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Draw x random 5-card poker hands from a 52-card pack (without suits) and return the hands along with a counter of the drawn cards. The output is random; hence, the returned list will vary with each call.\\nThe function should output with:\\n    tuple: A tuple containing two elements:\\n    list of list str: Each inner list contains 5 strings, representing a 5-card poker hand.\\n    Counter: A counter of the drawn cards.\\nYou should write self-contained code starting with:\\n```\\nimport random\\nfrom collections import Counter\\n# Constants\\nCARDS = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K', 'A']\\ndef task_func(x=1):\\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":[]}