{"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":"f463ec42-4c5a-5887-8a63-c90824fa4f3d","task_key":"default--v0~2e1~2e0~5fhf--f463ec42-4c5a-5887-8a63-c90824fa4f3d","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf f463ec42-4c5a-5887-8a63-c90824fa4f3d","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import os\\nimport pandas as pd\\nimport re\\ndef task_func(file_path: str) -> pd.DataFrame:\\n\",\"complete_prompt\":\"import os\\nimport pandas as pd\\nimport re\\n\\n\\ndef task_func(file_path: str) -> pd.DataFrame:\\n    \\\"\\\"\\\"\\n    Parse a log file to extract log entries into a DataFrame.\\n\\n    This function reads a log file line by line. The log file is assumed to follow this format\\n    for each entry: YYYY-MM-DD HH:MM:SS.ssssss - LEVEL - Message\\n    The function matches each line against a predefined regular expression to extract timestamp,\\n    log level, and message, ignoring lines where there is no match. It then aggregates the matched\\n    and extracted data into a pandas DataFrame with columns: 'Timestamp', 'Level', and 'Message'.\\n    If the logs are empty or there is no extracted data, this function returns an otherwise empty\\n    DataFrame containing the same expected columns.\\n\\n    Parameters:\\n    - file_path (str): The path to the log file to be parsed.\\n\\n    Returns:\\n    - pd.DataFrame: A DataFrame with columns 'Timestamp', 'Level', and 'Message'.\\n\\n    Requirements:\\n    - re\\n    - os\\n    - pandas\\n    \\n    Raises:\\n    - FileNotFoundError: If the specified log file does not exist.\\n    \\n    Example:\\n    Given a log file with content:\\n    ```\\n    2023-01-01 12:00:00.000000 - INFO - Application started\\n    2023-01-01 12:01:00.000000 - ERROR - Failed to connect to database\\n    ```\\n    >>> df = task_func(\\\"path_to_log_file.txt\\\")\\n    >>> type(df)\\n    <class 'pandas.core.frame.DataFrame'>\\n    >>> df.iloc[0]\\n    Timestamp    2023-01-01 12:00:00.000000\\n    Level                               INFO\\n    Message                Application started\\n    Name: 0, dtype: object\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Parse a log file to extract log entries into a DataFrame. This function reads a log file line by line. The log file is assumed to follow this format for each entry: YYYY-MM-DD HH:MM:SS.ssssss - LEVEL - Message The function matches each line against a predefined regular expression to extract timestamp, log level, and message, ignoring lines where there is no match. It then aggregates the matched and extracted data into a pandas DataFrame with columns: 'Timestamp', 'Level', and 'Message'. If the logs are empty or there is no extracted data, this function returns an otherwise empty DataFrame containing the same expected columns.\\nThe function should raise the exception for: FileNotFoundError: If the specified log file does not exist.\\nThe function should output with:\\n    pd.DataFrame: A DataFrame with columns 'Timestamp', 'Level', and 'Message'.\\nYou should write self-contained code starting with:\\n```\\nimport os\\nimport pandas as pd\\nimport re\\ndef task_func(file_path: str) -> pd.DataFrame:\\n```\",\"libs\":\"['pandas', 're', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}