{"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":"noindex","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[]}},"task_id":"a03152c8-a0fa-5f56-8b11-55dd978d4117","task_key":"default--v0~2e1~2e0~5fhf--a03152c8-a0fa-5f56-8b11-55dd978d4117","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf a03152c8-a0fa-5f56-8b11-55dd978d4117","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nimport numpy as np\\ndef task_func(data, key, min_value, max_value):\\n\",\"complete_prompt\":\"import pandas as pd\\nimport numpy as np\\n\\n\\ndef task_func(data, key, min_value, max_value):\\n    '''\\n    Add a new column with random values to the \\\"data\\\" DataFrame.\\n\\n    Parameters:\\n    data (DataFrame): The input data as a pandas DataFrame.\\n    key (str): The name of the new column to be added.\\n    min_value (int): The minimum value for randomly generated integers in the new column.\\n    max_value (int): The maximum value for randomly generated integers in the new column.\\n\\n    Returns:\\n    DataFrame: Updated DataFrame with the new column added.\\n\\n    Raises:\\n    - The function will raise an error if the input data is not pandas DataFrame\\n    \\n    Requirements:\\n    - numpy\\n    - pandas\\n    \\n    Example:\\n    >>> np.random.seed(0)\\n    >>> data = pd.DataFrame({'key1': ['value1', 'value2', 'value3'], 'key2': [1, 2, 3]})\\n    >>> updated_data = task_func(data, 'new_key', 0, 10)\\n    >>> print(updated_data)\\n         key1  key2  new_key\\n    0  value1     1        5\\n    1  value2     2        0\\n    2  value3     3        3\\n    '''\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Add a new column with random values to the \\\"data\\\" DataFrame.\\nThe function should raise the exception for: The function will raise an error if the input data is not pandas DataFrame\\nThe function should output with:\\n    DataFrame: Updated DataFrame with the new column added.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nimport numpy as np\\ndef task_func(data, key, min_value, max_value):\\n```\",\"libs\":\"['pandas', 'numpy']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}