{"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":"3d789c6c-aa4c-507c-a122-9bddd695d5ed","task_key":"default--v0~2e1~2e0~5fhf--3d789c6c-aa4c-507c-a122-9bddd695d5ed","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 3d789c6c-aa4c-507c-a122-9bddd695d5ed","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import collections\\nimport random\\nimport json\\n# Constants\\nPREFICES = ['EMP$$', 'MAN$$', 'DEV$$', 'HR$$']\\nLEVELS = ['Junior', 'Mid', 'Senior']\\ndef task_func(department_data):\\n\",\"complete_prompt\":\"import collections\\nimport random\\nimport json\\n\\n# Constants\\nPREFICES = ['EMP$$', 'MAN$$', 'DEV$$', 'HR$$']\\nLEVELS = ['Junior', 'Mid', 'Senior']\\n\\ndef task_func(department_data):\\n    \\\"\\\"\\\"\\n    Generate a JSON object from employee data based on given department codes and their employee counts.\\n\\n    Note:\\n    - The keys are department codes (from the list: ['EMP$$', 'MAN$$', 'DEV$$', 'HR$$']) and the values are lists of \\n    employee levels ('Junior', 'Mid', 'Senior') in that department.\\n\\n    Parameters:\\n    department_data (dict): A dictionary with department codes as keys and number of employees as values.\\n\\n    Returns:\\n    str: A JSON object representing employee levels for each department.\\n\\n    Requirements:\\n    - collections\\n    - random\\n    - json\\n\\n    Example:\\n    >>> random.seed(0)\\n    >>> department_info = {'EMP$$': 10, 'MAN$$': 5, 'DEV$$': 8, 'HR$$': 7}\\n    >>> level_data_json = task_func(department_info)\\n    >>> print(level_data_json)\\n    {\\\"EMP$$\\\": [\\\"Mid\\\", \\\"Mid\\\", \\\"Junior\\\", \\\"Mid\\\", \\\"Senior\\\", \\\"Mid\\\", \\\"Mid\\\", \\\"Mid\\\", \\\"Mid\\\", \\\"Mid\\\"], \\\"MAN$$\\\": [\\\"Senior\\\", \\\"Junior\\\", \\\"Senior\\\", \\\"Junior\\\", \\\"Mid\\\"], \\\"DEV$$\\\": [\\\"Junior\\\", \\\"Junior\\\", \\\"Senior\\\", \\\"Mid\\\", \\\"Senior\\\", \\\"Senior\\\", \\\"Senior\\\", \\\"Junior\\\"], \\\"HR$$\\\": [\\\"Mid\\\", \\\"Junior\\\", \\\"Senior\\\", \\\"Junior\\\", \\\"Senior\\\", \\\"Mid\\\", \\\"Mid\\\"]}\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generate a JSON object from employee data based on given department codes and their employee counts.\\nNote that: The keys are department codes (from the list: ['EMP$$', 'MAN$$', 'DEV$$', 'HR$$']) and the values are lists of employee levels ('Junior', 'Mid', 'Senior') in that department.\\nThe function should output with:\\n    str: A JSON object representing employee levels for each department.\\nYou should write self-contained code starting with:\\n```\\nimport collections\\nimport random\\nimport json\\n# Constants\\nPREFICES = ['EMP$$', 'MAN$$', 'DEV$$', 'HR$$']\\nLEVELS = ['Junior', 'Mid', 'Senior']\\ndef task_func(department_data):\\n```\",\"libs\":\"['collections', 'random', 'json']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}