{"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":"31926ec4-ec51-54b5-8c1f-79dc1d754b30","task_key":"default--v0~2e1~2e0~5fhf--31926ec4-ec51-54b5-8c1f-79dc1d754b30","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 31926ec4-ec51-54b5-8c1f-79dc1d754b30","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nfrom itertools import cycle\\nfrom random import randint, seed\\ndef task_func(\\n    n_grades,\\n    students=['Alice', 'Bob', 'Charlie', 'David', 'Eve'],\\n    grade_range=range(1, 11),\\n    rng_seed=None\\n):\\n\",\"complete_prompt\":\"import pandas as pd\\nfrom itertools import cycle\\nfrom random import randint, seed\\n\\n\\ndef task_func(\\n    n_grades,\\n    students=['Alice', 'Bob', 'Charlie', 'David', 'Eve'],\\n    grade_range=range(1, 11),\\n    rng_seed=None\\n):\\n    \\\"\\\"\\\"\\n    Generates a grade report for a specified number of grades.\\n    The function cycles through the given list of students, assigning each a\\n    random grade from a predefined range, and compiles this information into\\n    a pandas DataFrame.\\n    The random grades can be made reproducable by providing a seed in 'rng_seed'.\\n\\n    Parameters:\\n    n_grades (int): The number of grades to include in the report.\\n    students (list of str): The students to include in the report. Defaults to ['Alice', 'Bob', 'Charlie', 'David', 'Eve'].\\n    grade_range (range): The range of grades that can be assigned. Defaults to range(1, 11).\\n    rng_seed (int, optional): Seed used in the generation of random integers.\\n    \\n    Returns:\\n    DataFrame: A pandas DataFrame with two columns: 'Student' and 'Grade'. Each row represents a student's grade.\\n\\n    Raises:\\n    ValueError: If list of students is empty.\\n\\n    Requirements:\\n    - pandas\\n    - itertools\\n    - random\\n\\n    Example:\\n    >>> grade_report = task_func(3, ['Alice', 'Bob'], range(1, 3), rng_seed=1)\\n    >>> print(grade_report)\\n      Student  Grade\\n    0   Alice      1\\n    1     Bob      1\\n    2   Alice      2\\n\\n    >>> grade_report = task_func(5, rng_seed=12)\\n    >>> print(grade_report)\\n       Student  Grade\\n    0    Alice      8\\n    1      Bob      5\\n    2  Charlie      9\\n    3    David      6\\n    4      Eve      3\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generates a grade report for a specified number of grades. The function cycles through the given list of students, assigning each a random grade from a predefined range, and compiles this information into a pandas DataFrame. The random grades can be made reproducable by providing a seed in 'rng_seed'. >>> grade_report = task_func(5, rng_seed=12) >>> print(grade_report) Student  Grade 0    Alice      8 1      Bob      5 2  Charlie      9 3    David      6 4      Eve      3\\nThe function should raise the exception for: ValueError: If list of students is empty.\\nThe function should output with:\\n    DataFrame: A pandas DataFrame with two columns: 'Student' and 'Grade'. Each row represents a student's grade.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nfrom itertools import cycle\\nfrom random import randint, seed\\ndef task_func(\\n    n_grades,\\n    students=['Alice', 'Bob', 'Charlie', 'David', 'Eve'],\\n    grade_range=range(1, 11),\\n    rng_seed=None\\n):\\n```\",\"libs\":\"['pandas', 'random', 'itertools']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}