{"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":"e1c0ff97-cf4a-58ba-8742-de3453fe9e34","task_key":"default--v0~2e1~2e0~5fhf--e1c0ff97-cf4a-58ba-8742-de3453fe9e34","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf e1c0ff97-cf4a-58ba-8742-de3453fe9e34","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"from collections import Counter\\nimport random\\n# Constants\\nHAND_RANKS = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K', 'A']\\nSUITS = ['H', 'D', 'C', 'S']\\ndef task_func():\\n\",\"complete_prompt\":\"from collections import Counter\\nimport random\\n\\n# Constants\\nHAND_RANKS = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K', 'A']\\nSUITS = ['H', 'D', 'C', 'S']\\n\\n\\ndef task_func():\\n    \\\"\\\"\\\"\\n    Generate a random poker hand consisting of five cards, and count the frequency of each card rank.\\n\\n    The function creates a list of five cards where each card is a string made up of a rank and a suit (e.g., \\\"10H\\\" for Ten of Hearts).\\n    It then counts the frequency of each card rank in the hand using a Counter dictionary.\\n\\n    Parameters:\\n    - None\\n\\n    Returns:\\n    tuple: A tuple containing two elements:\\n        - hand (list): A list of five cards.\\n        - rank_count (counter): A Counter dictionary of card ranks with their frequencies in the hand.\\n\\n    Requirements:\\n    - collections\\n    - random\\n\\n    Example:\\n        >>> random.seed(42)\\n        >>> hand, rank_counts = task_func()\\n        >>> print(hand)  \\n        ['QH', '2C', '5D', '4H', 'QH']\\n        >>> print(rank_counts)  \\n        Counter({'Q': 2, '2': 1, '5': 1, '4': 1})\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generate a random poker hand consisting of five cards, and count the frequency of each card rank. The function creates a list of five cards where each card is a string made up of a rank and a suit (e.g., \\\"10H\\\" for Ten of Hearts). It then counts the frequency of each card rank in the hand using a Counter dictionary.\\nThe function should output with:\\n    tuple: A tuple containing two elements:\\n    hand (list): A list of five cards.\\n    rank_count (counter): A Counter dictionary of card ranks with their frequencies in the hand.\\nYou should write self-contained code starting with:\\n```\\nfrom collections import Counter\\nimport random\\n# Constants\\nHAND_RANKS = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K', 'A']\\nSUITS = ['H', 'D', 'C', 'S']\\ndef task_func():\\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":[]}