{"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":"7a39cda6-f026-539f-a0ec-d41860e5c872","task_key":"default--v0~2e1~2e0~5fhf--7a39cda6-f026-539f-a0ec-d41860e5c872","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 7a39cda6-f026-539f-a0ec-d41860e5c872","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import numpy as np\\nimport matplotlib.pyplot as plt\\ndef task_func(letters, repetitions, colors):\\n\",\"complete_prompt\":\"import numpy as np\\nimport matplotlib.pyplot as plt\\n\\ndef task_func(letters, repetitions, colors):\\n    \\\"\\\"\\\"\\n    Create a bar chart to visualize the frequency of each letter in a flattened list \\n    formed by multiple repetitions of the original list. Each repetition of the list \\n    is associated with a different color in the chart.\\n    \\n    Note:\\n    - Generate a bar chart for the frequency of letters, where each letter's frequency\\n      is determined by its number of repetitions.\\n    - Each letter's bar in the chart is colored according to the specified color.\\n    - The length of the list `colors` should match the number of repetitions of `letters`.\\n    - The lists 'letters' and 'colors' cannot be empty.\\n    \\n    Parameters:\\n    - letters (list of str): A list of unique letters to be visualized.\\n    - repetitions (list of int): A list of the number of times each letter is repeated.\\n      Must be the same length as `letters`.\\n    - colors (list of str): A list of colors for the bars corresponding to each letter.\\n      Must be the same length as `letters`.\\n    \\n    Returns:\\n    - Returns the Matplotlib Axes object representing the created bar chart, with the x-axis labeled 'Letters', y-axis labeled 'Frequency', and title 'Frequency of Letters'.\\n    \\n    Raises:\\n    - ValueError: If the lengths of the input lists do not match or if any list is empty.\\n    \\n    Requirements:\\n    - numpy\\n    - matplotlib.pyplot\\n    \\n    Example:\\n    >>> ax = task_func(['A', 'B', 'C'], [3, 5, 2], ['red', 'green', 'blue'])\\n    >>> type(ax)\\n    <class 'matplotlib.axes._axes.Axes'>\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Create a bar chart to visualize the frequency of each letter in a flattened list formed by multiple repetitions of the original list. Each repetition of the list is associated with a different color in the chart.\\nNote that: Generate a bar chart for the frequency of letters, where each letter's frequency is determined by its number of repetitions. Each letter's bar in the chart is colored according to the specified color. The length of the list `colors` should match the number of repetitions of `letters`. The lists 'letters' and 'colors' cannot be empty.\\nThe function should raise the exception for: ValueError: If the lengths of the input lists do not match or if any list is empty.\\nThe function should output with:\\n    Returns the Matplotlib Axes object representing the created bar chart, with the x-axis labeled 'Letters', y-axis labeled 'Frequency', and title 'Frequency of Letters'.\\nYou should write self-contained code starting with:\\n```\\nimport numpy as np\\nimport matplotlib.pyplot as plt\\ndef task_func(letters, repetitions, colors):\\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":[]}