{"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":"22951ecf-9652-56bc-b5c5-e04916ddc8b4","task_key":"default--v0~2e1~2e0~5fhf--22951ecf-9652-56bc-b5c5-e04916ddc8b4","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 22951ecf-9652-56bc-b5c5-e04916ddc8b4","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"from random import shuffle\\nimport pandas as pd\\nimport numpy as np\\n# Constants\\ndef task_func(l, n_groups = 5):\\n\",\"complete_prompt\":\"from random import shuffle\\nimport pandas as pd\\nimport numpy as np\\n\\n# Constants\\n\\n\\n\\ndef task_func(l, n_groups = 5):\\n    \\\"\\\"\\\"\\n    Given a list `l`, this function shuffles the list, constructs a dataframe using the shuffled list,\\n    and then for each row in the dataframe, moves the first n_groups elements to the end of the same row.\\n\\n    Parameters:\\n    - l (list): A list of elements.\\n    - n_groups (int): number of groups. Default value is 5.\\n\\n    Returns:\\n    - DataFrame: A modified DataFrame constructed from the shuffled list.\\n\\n    Requirements:\\n    - pandas\\n    - numpy\\n    - random\\n\\n    Example:\\n    >>> df = task_func(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J'])\\n    >>> df.shape == (5, 10)\\n    True\\n    >>> set(df.iloc[0]) == set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J'])\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Given a list `l`, this function shuffles the list, constructs a dataframe using the shuffled list, and then for each row in the dataframe, moves the first n_groups elements to the end of the same row.\\nThe function should output with:\\n    DataFrame: A modified DataFrame constructed from the shuffled list.\\nYou should write self-contained code starting with:\\n```\\nfrom random import shuffle\\nimport pandas as pd\\nimport numpy as np\\n# Constants\\ndef task_func(l, n_groups = 5):\\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":"index","subproblems":[],"grids":[]}