{"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":"a6a1bd97-b157-5474-93db-b86187080371","task_key":"default--v0~2e1~2e0~5fhf--a6a1bd97-b157-5474-93db-b86187080371","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf a6a1bd97-b157-5474-93db-b86187080371","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nimport matplotlib.pyplot as plt\\nfrom collections import Counter\\ndef task_func(student_grades, possible_grades=[\\\"A\\\", \\\"B\\\", \\\"C\\\", \\\"D\\\", \\\"F\\\"]):\\n\",\"complete_prompt\":\"import pandas as pd\\nimport matplotlib.pyplot as plt\\nfrom collections import Counter\\n\\ndef task_func(student_grades, possible_grades=[\\\"A\\\", \\\"B\\\", \\\"C\\\", \\\"D\\\", \\\"F\\\"]):\\n    \\\"\\\"\\\"\\n    Create a report on students' grades in a class, including a count of each grade out of all possible grades\\n    and a bar chart. Note: Grades are case-insensitive but whitespace-sensitive. Those not in possible grades\\n    are ignored.\\n\\n    Parameters:\\n    student_grades (list): List of student grades. Must not be empty.\\n    possible_grades (list, optional): List of possible grade values. Defaults to ['A', 'B', 'C', 'D', 'F'].\\n\\n    Returns:\\n    Tuple[DataFrame, Axes]:\\n        - A pandas DataFrame with 'Grade' as the named index and their 'Count' as values.\\n        - A bar chart plot (matplotlib's Axes object) visualizing 'Grade Distribution', with 'Grade' on the\\n          x-axis and 'Number of Students' on the y-axis.\\n\\n    Requirements:\\n    - pandas\\n    - matplotlib.pyplot\\n    - collections.Counter\\n\\n    Example:\\n    >>> student_grades = ['A', 'B', 'B', 'C', 'A', 'D', 'F', 'B', 'A', 'C']\\n    >>> report_df, ax = task_func(student_grades)\\n    >>> type(ax)\\n    <class 'matplotlib.axes._axes.Axes'>\\n    >>> report_df\\n           Count\\n    Grade       \\n    A          3\\n    B          3\\n    C          2\\n    D          1\\n    F          1\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Create a report on students' grades in a class, including a count of each grade out of all possible grades and a bar chart. Note: Grades are case-insensitive but whitespace-sensitive. Those not in possible grades are ignored.\\nThe function should output with:\\n    Tuple[DataFrame, Axes]:\\n    A pandas DataFrame with 'Grade' as the named index and their 'Count' as values.\\n    A bar chart plot (matplotlib's Axes object) visualizing 'Grade Distribution', with 'Grade' on the\\n    x-axis and 'Number of Students' on the y-axis.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nimport matplotlib.pyplot as plt\\nfrom collections import Counter\\ndef task_func(student_grades, possible_grades=[\\\"A\\\", \\\"B\\\", \\\"C\\\", \\\"D\\\", \\\"F\\\"]):\\n```\",\"libs\":\"['pandas', 'collections', 'matplotlib']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}