{"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":"369983a8-1ef4-53f4-bd3d-c17fb87bb5c8","task_key":"default--v0~2e1~2e0~5fhf--369983a8-1ef4-53f4-bd3d-c17fb87bb5c8","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 369983a8-1ef4-53f4-bd3d-c17fb87bb5c8","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import numpy as np\\nimport pandas as pd\\ndef task_func(rows=5, cols=5):\\n\",\"complete_prompt\":\"import numpy as np\\nimport pandas as pd\\n\\n\\ndef task_func(rows=5, cols=5):\\n    \\\"\\\"\\\"\\n    Generates a DataFrame with random numerical data and visualizes this data in a stacked bar chart for\\n    specified categories.\\n\\n    Parameters:\\n    rows (int, optional): Number of rows for the DataFrame. Defaults to 5.\\n    cols (int, optional): Number of columns for the DataFrame, corresponding to the number of categories.\\n    Defaults to 5, with a maximum of 5 categories (\\\"A\\\", \\\"B\\\", \\\"C\\\", \\\"D\\\", \\\"E\\\").\\n\\n    Returns:\\n    matplotlib.axes._axes.Axes: The Axes object displaying the stacked bar chart.\\n\\n    Requirements:\\n    - numpy\\n    - pandas\\n\\n    Raises:\\n    ValueError: If the number of columns exceeds the number of available categories.\\n\\n    Example:\\n    >>> import matplotlib\\n    >>> ax = task_func(3, 3)  # Generates a 3x3 DataFrame and plots it\\n    >>> isinstance(ax, matplotlib.axes.Axes)\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generates a DataFrame with random numerical data and visualizes this data in a stacked bar chart for specified categories.\\nThe function should raise the exception for: ValueError: If the number of columns exceeds the number of available categories.\\nThe function should output with:\\n    matplotlib.axes._axes.Axes: The Axes object displaying the stacked bar chart.\\nYou should write self-contained code starting with:\\n```\\nimport numpy as np\\nimport pandas as pd\\ndef task_func(rows=5, cols=5):\\n```\",\"libs\":\"['pandas', 'numpy']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}