{"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":"03f3fdb3-1b8a-5826-bcb5-18fd63197eb2","task_key":"default--v0~2e1~2e0~5fhf--03f3fdb3-1b8a-5826-bcb5-18fd63197eb2","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 03f3fdb3-1b8a-5826-bcb5-18fd63197eb2","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nimport numpy as np\\nfrom random import randint\\n# Constants\\nSTUDENTS = ['Joe', 'Amy', 'Mark', 'Sara', 'John', 'Emily', 'Zoe', 'Matt']\\nCOURSES = ['Math', 'Physics', 'Chemistry', 'Biology', 'English', 'History', 'Geography', 'Computer Science']\\ndef task_func():\\n\",\"complete_prompt\":\"import pandas as pd\\nimport numpy as np\\nfrom random import randint\\n\\n# Constants\\nSTUDENTS = ['Joe', 'Amy', 'Mark', 'Sara', 'John', 'Emily', 'Zoe', 'Matt']\\nCOURSES = ['Math', 'Physics', 'Chemistry', 'Biology', 'English', 'History', 'Geography', 'Computer Science']\\n\\n\\ndef task_func():\\n    \\\"\\\"\\\"\\n    Generates a DataFrame containing random grades for a predefined list of students across a set of courses.\\n    Each student will have one grade per course and an average grade calculated across all courses.\\n\\n    Returns:\\n    DataFrame: A pandas DataFrame with columns for each student's name, their grades for each course,\\n               and their average grade across all courses.\\n\\n    Requirements:\\n    - pandas\\n    - numpy\\n    - random\\n\\n    Note:\\n    The grades are randomly generated for each course using a uniform distribution between 0 and 100.\\n\\n    Example:\\n    >>> random.seed(0)\\n    >>> grades = task_func()\\n    >>> print(grades[['Name', 'Average Grade']].to_string(index=False))\\n     Name  Average Grade\\n      Joe         51.875\\n      Amy         53.250\\n     Mark         53.750\\n     Sara         47.125\\n     John         55.250\\n    Emily         48.625\\n      Zoe         63.750\\n     Matt         54.750\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generates a DataFrame containing random grades for a predefined list of students across a set of courses. Each student will have one grade per course and an average grade calculated across all courses.\\nNote that: The grades are randomly generated for each course using a uniform distribution between 0 and 100.\\nThe function should output with:\\n    DataFrame: A pandas DataFrame with columns for each student's name, their grades for each course,\\n    and their average grade across all courses.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nimport numpy as np\\nfrom random import randint\\n# Constants\\nSTUDENTS = ['Joe', 'Amy', 'Mark', 'Sara', 'John', 'Emily', 'Zoe', 'Matt']\\nCOURSES = ['Math', 'Physics', 'Chemistry', 'Biology', 'English', 'History', 'Geography', 'Computer Science']\\ndef task_func():\\n```\",\"libs\":\"['pandas', 'numpy', 'random']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}