{"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":"noindex","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[]}},"task_id":"3a8a2146-c68c-5897-bc5a-e20160156401","task_key":"default--v0~2e1~2e0~5fhf--3a8a2146-c68c-5897-bc5a-e20160156401","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 3a8a2146-c68c-5897-bc5a-e20160156401","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"from collections import Counter\\nimport itertools\\nfrom random import randint\\ndef task_func(T1, RANGE=100):\\n\",\"complete_prompt\":\"from collections import Counter\\nimport itertools\\nfrom random import randint\\n\\ndef task_func(T1, RANGE=100):\\n    \\\"\\\"\\\"\\n    Convert elements in 'T1' to integers and create a list of random integers where the number of integers \\n    is determined by the sum of the integers in `T1`. Random integers are generated between 0 and `RANGE` \\n    (default is 100). Count the occurrences of each number in the generated list using a Counter.\\n    \\n    Parameters:\\n    T1 (tuple of tuples): Each inner tuple contains string representations of numbers that are converted to integers.\\n    RANGE (int, optional): The upper limit for the random number generation. Defaults to 100.\\n    \\n    Returns:\\n    Counter: A Counter object representing the count of each number appearing in the list of generated random integers.\\n    \\n    Requirements:\\n    - collections.Counter\\n    - itertools\\n    - random.randint\\n    \\n    Example:\\n    >>> import random\\n    >>> random.seed(42)\\n    >>> T1 = (('13', '17', '18', '21', '32'), ('07', '11', '13', '14', '28'), ('01', '05', '06', '08', '15', '16'))\\n    >>> counts = task_func(T1)\\n    >>> print(counts)  # Output will be a Counter object with random counts.\\n    Counter({20: 6, 81: 5, 14: 5, 97: 5, 48: 5, 68: 5, 87: 5, 35: 4, 28: 4, 11: 4, 54: 4, 27: 4, 29: 4, 64: 4, 77: 4, 33: 4, 58: 4, 10: 4, 46: 4, 8: 4, 98: 4, 34: 4, 3: 3, 94: 3, 31: 3, 17: 3, 13: 3, 69: 3, 71: 3, 89: 3, 0: 3, 43: 3, 19: 3, 93: 3, 37: 3, 80: 3, 82: 3, 76: 3, 92: 3, 75: 2, 4: 2, 25: 2, 91: 2, 83: 2, 12: 2, 45: 2, 5: 2, 70: 2, 84: 2, 47: 2, 59: 2, 41: 2, 99: 2, 7: 2, 40: 2, 51: 2, 72: 2, 63: 2, 95: 2, 74: 2, 96: 2, 67: 2, 62: 2, 30: 2, 16: 2, 86: 1, 53: 1, 57: 1, 44: 1, 15: 1, 79: 1, 73: 1, 24: 1, 90: 1, 26: 1, 85: 1, 9: 1, 21: 1, 88: 1, 50: 1, 18: 1, 65: 1, 6: 1, 49: 1, 32: 1, 1: 1, 55: 1, 22: 1, 38: 1, 2: 1, 39: 1})\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Convert elements in 'T1' to integers and create a list of random integers where the number of integers is determined by the sum of the integers in `T1`. Random integers are generated between 0 and `RANGE` (default is 100). Count the occurrences of each number in the generated list using a Counter.\\nThe function should output with:\\n    Counter: A Counter object representing the count of each number appearing in the list of generated random integers.\\nYou should write self-contained code starting with:\\n```\\nfrom collections import Counter\\nimport itertools\\nfrom random import randint\\ndef task_func(T1, RANGE=100):\\n```\",\"libs\":\"['collections', 'random', 'itertools']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}