{"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":"b5bbb1ed-5a08-5de7-8935-095aef9aa3d4","task_key":"default--v0~2e1~2e0~5fhf--b5bbb1ed-5a08-5de7-8935-095aef9aa3d4","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf b5bbb1ed-5a08-5de7-8935-095aef9aa3d4","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pickle\\nimport os\\ndef task_func(df, file_name=\\\"save.pkl\\\"):\\n\",\"complete_prompt\":\"import pickle\\nimport os\\n\\n\\ndef task_func(df, file_name=\\\"save.pkl\\\"):\\n    \\\"\\\"\\\"\\n    Save the provided Pandas DataFrame \\\"df\\\" in a pickle file with the given name, read it\\n    back for validation, and delete the intermediate file.\\n\\n    Parameters:\\n    df (DataFrame): The pandas DataFrame to be saved.\\n    file_name (str, optional): Name of the file where the DataFrame will be saved. Defaults to 'save.pkl'.\\n\\n    Returns:\\n    loaded_df (pd.DataFrame): The loaded DataFrame from the specified file.\\n\\n    Requirements:\\n    - pickle\\n    - os\\n\\n    Example:\\n    >>> import pandas as pd\\n    >>> import numpy as np\\n    >>> np.random.seed(0)\\n    >>> df = pd.DataFrame(np.random.randint(0,100,size=(100, 4)), columns=list('ABCD'))\\n    >>> loaded_df = task_func(df, 'test_file.pkl')\\n    >>> assert df.equals(loaded_df)\\n    >>> type(df), type(loaded_df)\\n    (<class 'pandas.core.frame.DataFrame'>, <class 'pandas.core.frame.DataFrame'>)\\n    >>> df.head(2)\\n        A   B   C   D\\n    0  44  47  64  67\\n    1  67   9  83  21\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Save the provided Pandas DataFrame \\\"df\\\" in a pickle file with the given name, read it back for validation, and delete the intermediate file.\\nThe function should output with:\\n    loaded_df (pd.DataFrame): The loaded DataFrame from the specified file.\\nYou should write self-contained code starting with:\\n```\\nimport pickle\\nimport os\\ndef task_func(df, file_name=\\\"save.pkl\\\"):\\n```\",\"libs\":\"['pickle', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}