{"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":"2c23c66e-209b-58a7-9fb2-c5902ffb9e83","task_key":"default--v0~2e1~2e0~5fhf--2c23c66e-209b-58a7-9fb2-c5902ffb9e83","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 2c23c66e-209b-58a7-9fb2-c5902ffb9e83","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import random\\nimport matplotlib.pyplot as plt\\n# Constants\\nSALARY_RANGE = (20000, 100000)\\ndef task_func(dict1):\\n\",\"complete_prompt\":\"import random\\nimport matplotlib.pyplot as plt\\n\\n# Constants\\nSALARY_RANGE = (20000, 100000)\\n\\ndef task_func(dict1):\\n    \\\"\\\"\\\"\\n    Analyze the salary distribution within the department with code 'EMPXX'. Generate random salaries for each employee and create a histogram.\\n    - For the department of interest, randomly generate as many salaries as its number of employees.\\n    - Make sure that the salary is within SALARY_RANGE.\\n    - The histogram title should be 'Salary Distribution in EMPXX Department'\\n    - The x-label should be set to 'Salary'\\n    - The y-label should be set to 'Number of Employees'\\n\\n    Parameters:\\n    - dict1 (dict): A dictionary with department codes as keys and number of employees as values.\\n\\n    Returns:\\n    - matplotlib.axes._axes.Axes: Axes object representing the histogram.\\n\\n    Requirements:\\n    - random\\n    - matplotlib.pyplot\\n\\n    Example:\\n    >>> d = {'EMPXX': 10, 'MANXX': 5, 'DEVXX': 8, 'HRXX': 7}\\n    >>> ax = task_func(d)\\n    >>> print(ax)\\n    Axes(0.125,0.11;0.775x0.77)\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Analyze the salary distribution within the department with code 'EMPXX'. Generate random salaries for each employee and create a histogram. - For the department of interest, randomly generate as many salaries as its number of employees. - Make sure that the salary is within SALARY_RANGE. - The histogram title should be 'Salary Distribution in EMPXX Department' - The x-label should be set to 'Salary' - The y-label should be set to 'Number of Employees'\\nThe function should output with:\\n    matplotlib.axes._axes.Axes: Axes object representing the histogram.\\nYou should write self-contained code starting with:\\n```\\nimport random\\nimport matplotlib.pyplot as plt\\n# Constants\\nSALARY_RANGE = (20000, 100000)\\ndef task_func(dict1):\\n```\",\"libs\":\"['random', 'matplotlib']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}