{"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":"498fab8a-d90c-5ad0-b086-233977bc9367","task_key":"default--v0~2e1~2e0~5fhf--498fab8a-d90c-5ad0-b086-233977bc9367","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 498fab8a-d90c-5ad0-b086-233977bc9367","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nimport numpy as np\\nimport itertools\\ndef task_func(T1, row_num=50, seed=None):\\n\",\"complete_prompt\":\"import pandas as pd\\nimport numpy as np\\nimport itertools\\n\\ndef task_func(T1, row_num=50, seed=None):\\n    \\\"\\\"\\\"\\n    Convert elements in 'T1' to integers and create a Pandas DataFrame with random numbers. \\n    The number of columns in the DataFrame is determined by the sum of the integers in 'T1', \\n    and the number of rows is defined by the 'row_num' parameter.\\n\\n    Parameters:\\n    T1 (tuple): A tuple of tuples, each containing string representations of integers.\\n    row_num (int, optional): Number of rows for the DataFrame. Defaults to 50.\\n    seed (int, optional): Seed for random number generation. Defaults to None.\\n\\n    Returns:\\n    DataFrame: A pandas DataFrame with random numbers.\\n\\n    Requirements:\\n    - pandas\\n    - numpy\\n    - itertools\\n\\n    Example:\\n    >>> T1 = (('13', '17', '18', '21', '32'), ('07', '11', '13', '14', '28'), ('01', '05', '06', '08', '15', '16'))\\n    >>> df = task_func(T1, row_num=5, seed=2022)\\n    >>> print(df)\\n       Col_1  Col_2  Col_3  Col_4  ...  Col_222  Col_223  Col_224  Col_225\\n    0     92     45     49     55  ...        6       60       45       99\\n    1     51     17     38     83  ...       63       86       82       59\\n    2     27     64     73     92  ...       39       25       91       95\\n    3     52     40     35     22  ...       71       34       52       13\\n    4     54      1     79     61  ...       41       78       97       27\\n    <BLANKLINE>\\n    [5 rows x 225 columns]\\n\\n    >>> df = task_func(('1', ('1', '3')), row_num=2, seed=32)\\n    >>> print(df)\\n       Col_1  Col_2  Col_3  Col_4  Col_5\\n    0     87     43      5     54     62\\n    1     88     19     71     89      3\\n\\n    >>> T1 = (('1', '12'), ('1', '-12'))\\n    >>> df = task_func(T1, row_num=6, seed=21)\\n    >>> print(df)\\n       Col_1  Col_2\\n    0     73     79\\n    1     56      4\\n    2     48     35\\n    3     60     98\\n    4     74     72\\n    5     63     44\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Convert elements in 'T1' to integers and create a Pandas DataFrame with random numbers. The number of columns in the DataFrame is determined by the sum of the integers in 'T1', and the number of rows is defined by the 'row_num' parameter. >>> df = task_func(('1', ('1', '3')), row_num=2, seed=32) >>> print(df) Col_1  Col_2  Col_3  Col_4  Col_5 0     87     43      5     54     62 1     88     19     71     89      3 >>> T1 = (('1', '12'), ('1', '-12')) >>> df = task_func(T1, row_num=6, seed=21) >>> print(df) Col_1  Col_2 0     73     79 1     56      4 2     48     35 3     60     98 4     74     72 5     63     44\\nThe function should output with:\\n    DataFrame: A pandas DataFrame with random numbers.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nimport numpy as np\\nimport itertools\\ndef task_func(T1, row_num=50, seed=None):\\n```\",\"libs\":\"['pandas', 'numpy', 'itertools']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}