{"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":"6869fadb-9ac5-54b9-957d-8245d595cec5","task_key":"default--v0~2e1~2e0~5fhf--6869fadb-9ac5-54b9-957d-8245d595cec5","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 6869fadb-9ac5-54b9-957d-8245d595cec5","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import matplotlib.pyplot as plt\\nimport random\\n# Constants\\nCOLORS = ['#00bfbf', '#000000', '#0000ff']\\ndef task_func(number_list, bins):\\n\",\"complete_prompt\":\"import matplotlib.pyplot as plt\\nimport random\\n\\n# Constants\\nCOLORS = ['#00bfbf', '#000000', '#0000ff']\\ndef task_func(number_list, bins):\\n    \\\"\\\"\\\"\\n    Create a histogram subplot of a list of numbers.\\n\\n    Parameters:\\n    - number_list (list): A list of numeric values to be plotted.\\n    - bins (int or sequence): If an integer, the number of histogram bins. \\n      If a sequence, defines the bin edges.\\n\\n    Returns:\\n    matplotlib.axes._axes.Axes: The axes object representing the histogram plot.\\n\\n    Note:\\n    - This function generates a histogram plot using Matplotlib.\\n    - The plot title is set to 'Histogram'.\\n    - The x-axis label is set to 'Number'.\\n    - The y-axis label is set to 'Frequency'.\\n    - The color of the histogram bars is randomly selected from a predefined set of colors.\\n\\n\\n    Requirements:\\n    - matplotlib.pyplot\\n    - random\\n\\n    Example:\\n    >>> random.seed(0)\\n    >>> number_list = [1, 2, 2, 3, 3, 3, 4, 4, 5]\\n    >>> bins = 5\\n    >>> ax = task_func(number_list, bins)\\n    >>> ax.patches[0].get_height()\\n    1.0\\n    >>> ax.patches[2].get_height() > ax.patches[0].get_height()\\n    True\\n    >>> plt.close()\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Create a histogram subplot of a list of numbers.\\nNote that: This function generates a histogram plot using Matplotlib. The plot title is set to 'Histogram'. The x-axis label is set to 'Number'. The y-axis label is set to 'Frequency'. The color of the histogram bars is randomly selected from a predefined set of colors.\\nThe function should output with:\\n    matplotlib.axes._axes.Axes: The axes object representing the histogram plot.\\nYou should write self-contained code starting with:\\n```\\nimport matplotlib.pyplot as plt\\nimport random\\n# Constants\\nCOLORS = ['#00bfbf', '#000000', '#0000ff']\\ndef task_func(number_list, bins):\\n```\",\"libs\":\"['random', 'matplotlib']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}