{"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":"efbd3003-9580-5aec-8793-3ce596e293be","task_key":"default--v0~2e1~2e0~5fhf--efbd3003-9580-5aec-8793-3ce596e293be","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf efbd3003-9580-5aec-8793-3ce596e293be","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, group_name):\\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, group_name):\\n    \\\"\\\"\\\"\\n    Create a bar subplot of a specific group from the input dataframe.\\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    - group_name (str): The name of the group 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    Note:\\n    - The title of the plot will be 'Bar chart of [value_col] for [group_name]'.\\n    - The x-axis label will be the name of the grouping column [group_col].\\n    - The y-axis label will be the name of the value column [value_col].\\n\\n    Raises:\\n    - Raise ValueError if the group_name does not exist in df.\\n\\n    Example:\\n    >>> import pandas as pd\\n    >>> df = pd.DataFrame({'Group': ['A', 'B', 'C'], 'Value': [10, 20, 30]})\\n    >>> ax = task_func(df, 'Group', 'Value', 'B')\\n    >>> num_bars = len(ax.containers[0])  # Number of bars in the plot\\n    >>> num_bars == 1  # There should be 1 bar in the plot for group 'B'\\n    True\\n    >>> ax.containers[0][0].get_height() == 20 # The bar height of Group B should be 20\\n    True\\n    >>> plt.close()\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Create a bar subplot of a specific group from the input dataframe.\\nNote that: The title of the plot will be 'Bar chart of [value_col] for [group_name]'. The x-axis label will be the name of the grouping column [group_col]. The y-axis label will be the name of the value column [value_col].\\nThe function should raise the exception for: Raise ValueError if the group_name does not exist in df.\\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, group_name):\\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":[]}