{"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":"d23c2695-8443-5027-a7c4-3dab98f792f7","task_key":"default--v0~2e1~2e0~5fhf--d23c2695-8443-5027-a7c4-3dab98f792f7","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf d23c2695-8443-5027-a7c4-3dab98f792f7","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import numpy as np\\nimport itertools\\nimport random\\nimport statistics\\ndef task_func(T1, RANGE=100):\\n\",\"complete_prompt\":\"import numpy as np\\nimport itertools\\nimport random\\nimport statistics\\n\\ndef task_func(T1, RANGE=100):\\n    \\\"\\\"\\\"\\n    Convert elements in 'T1' to integers and create a list of random integers.\\n    The size of the list is the sum of the integers in `T1`. Calculate and \\n    return the mean, median, and mode of the list.\\n    \\n    Parameters:\\n    T1 (tuple of tuples): Each tuple contains string representations of integers which are converted to integers.\\n    RANGE (int, optional): The upper limit for generating random integers. Default is 100.\\n    \\n    Returns:\\n    tuple: A tuple containing the mean, median, and mode of the generated list of random integers.\\n           The mean and median are floats, and the mode is an integer. The calculations use the generated\\n           list whose size is determined by the sum of converted integers from `T1`.\\n    \\n    Requirements:\\n    - numpy\\n    - itertools\\n    - random\\n    - statistics\\n\\n    Raises:\\n    statistics.StatisticsError if T1 is empty\\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    >>> stats = task_func(T1)\\n    >>> print(stats)\\n    (49.88, 48.0, 20)\\n    >>> stats = task_func(T1, RANGE=50)\\n    >>> print(stats)\\n    (23.773333333333333, 25.0, 15)\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Convert elements in 'T1' to integers and create a list of random integers. The size of the list is the sum of the integers in `T1`. Calculate and return the mean, median, and mode of the list.\\nThe function should raise the exception for: statistics.StatisticsError if T1 is empty\\nThe function should output with:\\n    tuple: A tuple containing the mean, median, and mode of the generated list of random integers.\\n    The mean and median are floats, and the mode is an integer. The calculations use the generated\\n    list whose size is determined by the sum of converted integers from `T1`.\\nYou should write self-contained code starting with:\\n```\\nimport numpy as np\\nimport itertools\\nimport random\\nimport statistics\\ndef task_func(T1, RANGE=100):\\n```\",\"libs\":\"['statistics', 'numpy', 'itertools', 'random']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}