{"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":"7e6eed45-d31f-54a5-a239-4c66d08001ff","task_key":"default--v0~2e1~2e0~5fhf--7e6eed45-d31f-54a5-a239-4c66d08001ff","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 7e6eed45-d31f-54a5-a239-4c66d08001ff","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import numpy as np\\nimport matplotlib.pyplot as plt\\n# Constants\\nCOLORS = ['r', 'g', 'b']\\ndef task_func(df, group_col, value_col):\\n\",\"complete_prompt\":\"import numpy as np\\nimport matplotlib.pyplot as plt\\n\\n# Constants\\nCOLORS = ['r', 'g', 'b']\\n\\ndef task_func(df, group_col, value_col):\\n    \\\"\\\"\\\"\\n    Create a bar chart of data in multiple groups with error bars.\\n\\n    Parameters:\\n    - df (DataFrame): The input DataFrame containing the data.\\n    - group_col (str): The name of the column to group the data by.\\n    - value_col (str): The name of the column containing the values to plot.\\n\\n    Returns:\\n    - Axes: A matplotlib axes object with the bar chart.\\n\\n    Requirements:\\n    - matplotlib.pyplot\\n    - numpy\\n\\n    Example:\\n    >>> import matplotlib.pyplot as plt\\n    >>> import pandas as pd\\n    >>> df = pd.DataFrame({'Group': ['A', 'B', 'A', 'B', 'A', 'B'], 'Value': [1, 2, 3, 4, 5, 6]})\\n    >>> ax = task_func(df, 'Group', 'Value')\\n    >>> len(ax.patches)\\n    2\\n    >>> plt.close()\\n\\n    Note:\\n    - The function uses a predefined set of colors for the bars. If there are more groups than colors,\\n      the colors will repeat from the beginning of the COLORS list.\\n    - This function use \\\"Bar chart of {value_col} by {group_col}\\\" for the plot title.\\n    - This function use value of variables group_col and value_col as the xlabel and ylabel respectively.\\n\\n    Raises:\\n    -This function will raise TypeError if the 'Value' has non-numeric values.\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Create a bar chart of data in multiple groups with error bars.\\nNote that: The function uses a predefined set of colors for the bars. If there are more groups than colors, the colors will repeat from the beginning of the COLORS list. This function use \\\"Bar chart of {value_col} by {group_col}\\\" for the plot title. This function use value of variables group_col and value_col as the xlabel and ylabel respectively.\\nThe function should raise the exception for: This function will raise TypeError if the 'Value' has non-numeric values.\\nThe function should output with:\\n    Axes: A matplotlib axes object with the bar chart.\\nYou should write self-contained code starting with:\\n```\\nimport numpy as np\\nimport matplotlib.pyplot as plt\\n# Constants\\nCOLORS = ['r', 'g', 'b']\\ndef task_func(df, group_col, value_col):\\n```\",\"libs\":\"['numpy', 'matplotlib']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}