{"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":"202a199f-b2d4-5ea2-9426-8baccb6bba4a","task_key":"default--v0~2e1~2e0~5fhf--202a199f-b2d4-5ea2-9426-8baccb6bba4a","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 202a199f-b2d4-5ea2-9426-8baccb6bba4a","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nfrom random import seed, choices\\ndef task_func(L, num_dataframes=5, random_seed=None):\\n\",\"complete_prompt\":\"import pandas as pd\\nfrom random import seed, choices\\n\\ndef task_func(L, num_dataframes=5, random_seed=None):\\n    \\\"\\\"\\\"\\n    Generate a specified number of Pandas DataFrames from a list of lists \\\"L\\\".\\n    Each DataFrame has the same column names randomly chosen from lowercase English\\n    letters and 3 rows sampled from 'L'. Then, find the common\\n    rows between all generated DataFrames.\\n\\n    If L is empty, an empty dataframe is returend.\\n\\n    Parameters:\\n    L (list of lists): Input list of lists to be used as rows in the DataFrame.\\n    num_dataframes (int, optional): Number of DataFrames to generate. Defaults to 5.\\n    random_seed (int, optional): Seed for the random number generator for reproducibility. Defaults to None\\n\\n    Returns:\\n    DataFrame: A pandas DataFrame with the common rows between all generated DataFrames.\\n    list of DataFrame: A list of all generated DataFrames.\\n    \\n\\n    Requirements:\\n    - pandas\\n    - random\\n\\n    Example:\\n    >>> L = [['14', '65', 76], ['2', '5', 6], ['7', '12', 33], ['14', '22', 46]]\\n    >>> common_rows, df_list = task_func(L, num_dataframes=3, random_seed=123)\\n    >>> print(common_rows)\\n        b   c   k\\n    0  14  65  76\\n    1  14  22  46\\n    4   2   5   6\\n    >>> print(df_list)\\n    [    b   c   k\\n    0  14  65  76\\n    1  14  22  46\\n    2  14  65  76,     b   c   k\\n    0   7  12  33\\n    1   2   5   6\\n    2  14  22  46,     b   c   k\\n    0  14  65  76\\n    1   2   5   6\\n    2   2   5   6]\\n\\n    >>> L = [[1, '65', 76], [2, '5', 6]]\\n    >>> common_rows, df_list = task_func(L, num_dataframes=1, random_seed=1)\\n    >>> print(common_rows)\\n       d   w   t\\n    0  1  65  76\\n    >>> print(df_list)\\n    [   d   w   t\\n    0  1  65  76\\n    1  1  65  76\\n    2  1  65  76]\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generate a specified number of Pandas DataFrames from a list of lists \\\"L\\\". Each DataFrame has the same column names randomly chosen from lowercase English letters and 3 rows sampled from 'L'. Then, find the common rows between all generated DataFrames. If L is empty, an empty dataframe is returend. >>> L = [[1, '65', 76], [2, '5', 6]] >>> common_rows, df_list = task_func(L, num_dataframes=1, random_seed=1) >>> print(common_rows) d   w   t 0  1  65  76 >>> print(df_list) [   d   w   t 0  1  65  76 1  1  65  76 2  1  65  76]\\nThe function should output with:\\n    DataFrame: A pandas DataFrame with the common rows between all generated DataFrames.\\n    list of DataFrame: A list of all generated DataFrames.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nfrom random import seed, choices\\ndef task_func(L, num_dataframes=5, random_seed=None):\\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":[]}