{"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":"764c7ab1-a29d-5ff7-ae7e-e08b08b2870c","task_key":"default--v0~2e1~2e0~5fhf--764c7ab1-a29d-5ff7-ae7e-e08b08b2870c","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 764c7ab1-a29d-5ff7-ae7e-e08b08b2870c","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nimport matplotlib.pyplot as plt\\nfrom sklearn.preprocessing import StandardScaler\\ndef task_func(data: pd.DataFrame) -> (pd.DataFrame, list):\\n\",\"complete_prompt\":\"import pandas as pd\\nimport matplotlib.pyplot as plt\\nfrom sklearn.preprocessing import StandardScaler\\n\\n\\ndef task_func(data: pd.DataFrame) -> (pd.DataFrame, list):\\n    \\\"\\\"\\\"\\n    This function takes a pandas DataFrame and standardizes its features using sklearn's StandardScaler,\\n    which standardizes features by removing the mean and scaling to unit variance.\\n    After standardization, it draws a histogram for each feature with 20 bins.\\n\\n    Parameters:\\n    - data (pd.DataFrame): The input data to be standardized and plotted. It is expected to have\\n                           columns named 'Feature1', 'Feature2', 'Feature3', 'Feature4', and 'Feature5'.\\n                           If there are additional data columns, they are ignored.\\n\\n\\n    Returns:\\n    - standardized_data (pd.DataFrame): The standardized data.\\n    - axes_list (list): A list of matplotlib Axes objects representing the histograms for each feature.\\n\\n    Requirements:\\n    - pandas\\n    - matplotlib.pyplot\\n    - sklearn.preprocessing.StandardScaler\\n    \\n    Example:\\n    >>> data = pd.DataFrame({\\n    ...     'Feature1': [0.5, 0.6, 0.7, 0.8, 0.9],\\n    ...     'Feature2': [0.1, 0.2, 0.3, 0.4, 0.5],\\n    ...     'Feature3': [0.9, 0.8, 0.7, 0.6, 0.5],\\n    ...     'Feature4': [0.5, 0.4, 0.3, 0.2, 0.1],\\n    ...     'Feature5': [0.1, 0.3, 0.5, 0.7, 0.9]\\n    ... })\\n    >>> standardized_data, axes_list = task_func(data)\\n    >>> type(standardized_data)\\n    <class 'pandas.core.frame.DataFrame'>\\n    >>> axes_list\\n    [<Axes: title={'center': 'Histogram of Feature1'}>, <Axes: title={'center': 'Histogram of Feature2'}>, <Axes: title={'center': 'Histogram of Feature3'}>, <Axes: title={'center': 'Histogram of Feature4'}>, <Axes: title={'center': 'Histogram of Feature5'}>]\\n    >>> type(axes_list[0])\\n    <class 'matplotlib.axes._axes.Axes'>\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"This function takes a pandas DataFrame and standardizes its features using sklearn's StandardScaler, which standardizes features by removing the mean and scaling to unit variance. After standardization, it draws a histogram for each feature with 20 bins.\\nThe function should output with:\\n    standardized_data (pd.DataFrame): The standardized data.\\n    axes_list (list): A list of matplotlib Axes objects representing the histograms for each feature.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nimport matplotlib.pyplot as plt\\nfrom sklearn.preprocessing import StandardScaler\\ndef task_func(data: pd.DataFrame) -> (pd.DataFrame, list):\\n```\",\"libs\":\"['pandas', 'matplotlib', 'sklearn']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}