{"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":"3147988b-5560-590f-8fee-08730460929d","task_key":"default--v0~2e1~2e0~5fhf--3147988b-5560-590f-8fee-08730460929d","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 3147988b-5560-590f-8fee-08730460929d","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import random\\nimport statistics\\n# Constants\\nAGE_RANGE = (22, 60)\\ndef task_func(dict1):\\n\",\"complete_prompt\":\"import random\\nimport statistics\\n\\n# Constants\\nAGE_RANGE = (22, 60)\\n\\ndef task_func(dict1):\\n    \\\"\\\"\\\"\\n    Calculate the mean, the median, and the mode(s) of the age of the employees in the department \\\"EMP$$.\\\" \\n    Generate random ages for each employee within the range [22, 60].\\n\\n    Parameters:\\n    dict1 (dict): A dictionary with department codes as keys and number of employees \\n                  as values.\\n\\n    Returns:\\n    tuple: A tuple of mean, median, and a list of mode(s) of employee ages.\\n\\n    Requirements:\\n    - random\\n    - statistics\\n\\n    Example:\\n    >>> random.seed(0)\\n    >>> d = {'EMP$$': 10, 'MAN$$': 5, 'DEV$$': 8, 'HR$$': 7}\\n    >>> stats = task_func(d)\\n    >>> print(stats)\\n    (44.7, 46.5, [46, 48, 24, 38, 54, 53, 47, 41, 52, 44])\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Calculate the mean, the median, and the mode(s) of the age of the employees in the department \\\"EMP$$.\\\" Generate random ages for each employee within the range [22, 60].\\nThe function should output with:\\n    tuple: A tuple of mean, median, and a list of mode(s) of employee ages.\\nYou should write self-contained code starting with:\\n```\\nimport random\\nimport statistics\\n# Constants\\nAGE_RANGE = (22, 60)\\ndef task_func(dict1):\\n```\",\"libs\":\"['statistics', 'random']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}