{"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":"939223ee-3693-5eb2-bb9b-003cc161f17e","task_key":"default--v0~2e1~2e0~5fhf--939223ee-3693-5eb2-bb9b-003cc161f17e","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 939223ee-3693-5eb2-bb9b-003cc161f17e","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import re\\nimport pandas as pd\\ndef task_func(input_string: str) -> pd.DataFrame:\\n\",\"complete_prompt\":\"import re\\nimport pandas as pd\\n\\n\\ndef task_func(input_string: str) -> pd.DataFrame:\\n    \\\"\\\"\\\"\\n    Process a multi-line string by replacing tabs with spaces and converting it into a pandas DataFrame.\\n    Each non-empty line of the input string is transformed into a separate row in the DataFrame.\\n    The function specifically filters out empty lines and replaces tabs with single spaces in the remaining lines.\\n\\n    Parameters:\\n    - input_string (str): A multi-line string. Each line is separated by a newline character ('\\\\\\\\n').\\n\\n    Returns:\\n    - pd.DataFrame: A DataFrame with a single column named 'Text'. Each row in this column corresponds to a non-empty\\n      line from the input string, with tabs replaced by spaces.\\n\\n    Requirements:\\n    - re\\n    - pandas\\n\\n    Note:\\n    - The function excludes lines that are empty or contain only whitespace.\\n    - Tabs within the lines are replaced with a single space. For instance, a '\\\\\\\\t' character in the input string\\n      will be replaced by ' ' in the output DataFrame.\\n\\n    Example:\\n    >>> df = task_func('line a\\\\\\\\nfollowed by line b with a\\\\\\\\ttab\\\\\\\\n\\\\\\\\n...bye\\\\\\\\n')\\n    >>> print(df.head())\\n                                Text\\n    0                         line a\\n    1  followed by line b with a tab\\n    2                         ...bye\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Process a multi-line string by replacing tabs with spaces and converting it into a pandas DataFrame. Each non-empty line of the input string is transformed into a separate row in the DataFrame. The function specifically filters out empty lines and replaces tabs with single spaces in the remaining lines.\\nNote that: The function excludes lines that are empty or contain only whitespace. Tabs within the lines are replaced with a single space. For instance, a '\\\\\\\\t' character in the input string will be replaced by ' ' in the output DataFrame.\\nThe function should output with:\\n    pd.DataFrame: A DataFrame with a single column named 'Text'. Each row in this column corresponds to a non-empty\\n    line from the input string, with tabs replaced by spaces.\\nYou should write self-contained code starting with:\\n```\\nimport re\\nimport pandas as pd\\ndef task_func(input_string: str) -> pd.DataFrame:\\n```\",\"libs\":\"['pandas', 're']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}