{"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":"noindex","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[]}},"task_id":"e3841028-f1ab-55de-8e1c-b17e0c226465","task_key":"default--v0~2e1~2e0~5fhf--e3841028-f1ab-55de-8e1c-b17e0c226465","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf e3841028-f1ab-55de-8e1c-b17e0c226465","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nimport seaborn as sns\\ndef task_func(data):\\n\",\"complete_prompt\":\"import pandas as pd\\nimport seaborn as sns\\n\\n\\ndef task_func(data):\\n    \\\"\\\"\\\"\\n    Analyze a dataset by calculating the average of values across each row and visualizing the correlation matrix as a\\n    heatmap.\\n\\n    Parameters:\\n    data (numpy.array): 2D array where each row represents a record and each column represents a feature\\n\\n    Returns:\\n    tuple: A tuple containing:\\n        - DataFrame: A pandas DataFrame enhanced with an 'Average' column that represents the mean across each row.\\n        - Axes: The matplotlib Axes object showing the heatmap of the correlations.\\n\\n    Requirements:\\n    - pandas\\n    - numpy\\n    - seaborn\\n\\n    Raises:\\n    ValueError: If the input data is not a 2D array or if it contains non-numeric data.\\n\\n    Example:\\n    >>> data = np.array([[1, 2, 3, 4, 5, 6, 7, 8], [8, 7, 6, 5, 4, 3, 2, 1]])\\n    >>> df, ax = task_func(data)\\n    >>> print(df['Average'].to_string(index=False))\\n    4.5\\n    4.5\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Analyze a dataset by calculating the average of values across each row and visualizing the correlation matrix as a heatmap.\\nThe function should raise the exception for: ValueError: If the input data is not a 2D array or if it contains non-numeric data.\\nThe function should output with:\\n    tuple: A tuple containing:\\n    DataFrame: A pandas DataFrame enhanced with an 'Average' column that represents the mean across each row.\\n    Axes: The matplotlib Axes object showing the heatmap of the correlations.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nimport seaborn as sns\\ndef task_func(data):\\n```\",\"libs\":\"['pandas', 'seaborn']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}