{"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":"b37c7ac4-1345-5e2b-9b81-ade8f29413bd","task_key":"default--v0~2e1~2e0~5fhf--b37c7ac4-1345-5e2b-9b81-ade8f29413bd","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf b37c7ac4-1345-5e2b-9b81-ade8f29413bd","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nfrom random import shuffle\\n# Constants\\nPOSSIBLE_VALUES = [\\\"A\\\", \\\"B\\\", \\\"C\\\", \\\"D\\\", \\\"E\\\", \\\"F\\\", \\\"G\\\", \\\"H\\\", \\\"I\\\", \\\"J\\\"]\\ndef task_func(list_of_lists):\\n\",\"complete_prompt\":\"import pandas as pd\\nfrom random import shuffle\\n\\n# Constants\\nPOSSIBLE_VALUES = [\\\"A\\\", \\\"B\\\", \\\"C\\\", \\\"D\\\", \\\"E\\\", \\\"F\\\", \\\"G\\\", \\\"H\\\", \\\"I\\\", \\\"J\\\"]\\n\\n\\ndef task_func(list_of_lists):\\n    \\\"\\\"\\\"\\n    Generate a list of pandas DataFrames, each created from a sublist in 'list_of_lists'.\\n    Each DataFrame has columns named as per the elements of the sublist, and each column\\n    is filled with randomly shuffled values from 'POSSIBLE_VALUES'.\\n\\n    Parameters:\\n    - list_of_lists (list of list): A list where each element is a list of strings\\n    representing column names for a DataFrame.\\n\\n    Returns:\\n    - list of pandas.DataFrame: A list where each element is a DataFrame with columns as specified\\n    in 'list_of_lists', and each column contains shuffled values from 'POSSIBLE_VALUES'.\\n\\n    Requirements:\\n    - pandas\\n    - random.shuffle\\n\\n    Note:\\n    - The length of each DataFrame's columns is equal to the length of 'POSSIBLE_VALUES'.\\n    - Each column in the DataFrame has the same shuffled order of 'POSSIBLE_VALUES'.\\n\\n    Example:\\n    >>> import random\\n    >>> random.seed(0)\\n    >>> dfs = task_func([['x', 'y', 'z'], ['a', 'b', 'c']])\\n    >>> dfs[0].head()\\n       x  y  z\\n    0  H  J  H\\n    1  I  E  A\\n    2  B  I  J\\n    3  F  G  D\\n    4  D  A  C\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generate a list of pandas DataFrames, each created from a sublist in 'list_of_lists'. Each DataFrame has columns named as per the elements of the sublist, and each column is filled with randomly shuffled values from 'POSSIBLE_VALUES'.\\nNote that: The length of each DataFrame's columns is equal to the length of 'POSSIBLE_VALUES'. Each column in the DataFrame has the same shuffled order of 'POSSIBLE_VALUES'.\\nThe function should output with:\\n    list of pandas.DataFrame: A list where each element is a DataFrame with columns as specified\\n    in 'list_of_lists', and each column contains shuffled values from 'POSSIBLE_VALUES'.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nfrom random import shuffle\\n# Constants\\nPOSSIBLE_VALUES = [\\\"A\\\", \\\"B\\\", \\\"C\\\", \\\"D\\\", \\\"E\\\", \\\"F\\\", \\\"G\\\", \\\"H\\\", \\\"I\\\", \\\"J\\\"]\\ndef task_func(list_of_lists):\\n```\",\"libs\":\"['pandas', 'random']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}