{"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":"e06485b7-f8f0-5c3a-a7d4-994a0ad7bb9d","task_key":"default--v0~2e1~2e0~5fhf--e06485b7-f8f0-5c3a-a7d4-994a0ad7bb9d","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf e06485b7-f8f0-5c3a-a7d4-994a0ad7bb9d","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import os\\nimport pandas as pd\\nimport numpy as np\\ndef task_func(data_dir: str, csv_file: str) -> pd.DataFrame:\\n\",\"complete_prompt\":\"import os\\nimport pandas as pd\\nimport numpy as np\\n\\n\\ndef task_func(data_dir: str, csv_file: str) -> pd.DataFrame:\\n    \\\"\\\"\\\"\\n    Load a CSV file into a pandas DataFrame and replace the NaN values in\\n    numeric columns with the mean of the corresponding column.\\n    The resulting DataFrame is returned.\\n\\n    If an empty csv is passed, an empty DataFrame is returned.\\n\\n    Parameters:\\n    - data_dir (str): The path to the directory containing the CSV file.\\n    - csv_file (str): The name of the CSV file to be processed.\\n\\n    Returns:\\n    pd.DataFrame: A pandas DataFrame with the processed data.\\n\\n    Raises:\\n    FileNotFoundError: If csv_file does not exist.\\n\\n    Requirements:\\n    - os\\n    - pandas\\n    - numpy\\n    \\n    Example:\\n    >>> df = task_func(\\\"/path/to/data/directory\\\", \\\"file.csv\\\")\\n    >>> print(df)\\n         Fruit     Taste     Cost\\n    0    Apple      Good        1\\n    1   Orange       NaN        2\\n    2  Avocado       Bad        1.667\\n    3  Coconut     Tasty        2\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Load a CSV file into a pandas DataFrame and replace the NaN values in numeric columns with the mean of the corresponding column. The resulting DataFrame is returned. If an empty csv is passed, an empty DataFrame is returned.\\nThe function should raise the exception for: FileNotFoundError: If csv_file does not exist.\\nThe function should output with:\\n    pd.DataFrame: A pandas DataFrame with the processed data.\\nYou should write self-contained code starting with:\\n```\\nimport os\\nimport pandas as pd\\nimport numpy as np\\ndef task_func(data_dir: str, csv_file: str) -> pd.DataFrame:\\n```\",\"libs\":\"['pandas', 'numpy', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}