{"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":"6be1662c-7812-577d-98e0-4cd9752ca78e","task_key":"default--v0~2e1~2e0~5fhf--6be1662c-7812-577d-98e0-4cd9752ca78e","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 6be1662c-7812-577d-98e0-4cd9752ca78e","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import matplotlib.pyplot as plt\\nfrom itertools import cycle\\nimport numpy as np\\nfrom random import shuffle\\nCOLORS = [\\\"b\\\", \\\"g\\\", \\\"r\\\", \\\"c\\\", \\\"m\\\", \\\"y\\\", \\\"k\\\"]\\ndef task_func(list_of_lists):\\n\",\"complete_prompt\":\"import matplotlib.pyplot as plt\\nfrom itertools import cycle\\nimport numpy as np\\nfrom random import shuffle\\n\\nCOLORS = [\\\"b\\\", \\\"g\\\", \\\"r\\\", \\\"c\\\", \\\"m\\\", \\\"y\\\", \\\"k\\\"]\\n\\n\\ndef task_func(list_of_lists):\\n    \\\"\\\"\\\"\\n    Plots a series of lines for each list in `list_of_lists`. Each line is plotted with shuffled y-values\\n    and sequential x-values starting from 1. The function shuffles the y-values of each inner list before plotting.\\n    Each line is plotted with a different color from a predetermined set of colors. The function cycles through \\n    these colors for each inner list.\\n\\n    Parameters:\\n    - list_of_lists (list of list): A list of lists where each inner\\n    list represents a set of y-values to be shuffled and plotted. The x-values are automatically\\n    generated as a sequence starting from 1 up to the length of the inner list.\\n\\n    Returns:\\n    - tuple: A tuple containing the figure and axes objects of the plotted graph.\\n\\n    Requirements:\\n    - matplotlib\\n    - itertools\\n    - numpy\\n    - random\\n\\n    Example:\\n    >>> import random\\n    >>> random.seed(0)\\n    >>> fig, ax = task_func([[1, 2, 3], [4, 5, 6]])\\n    >>> ax.lines[0].get_color()\\n    (0.0, 0.0, 1.0, 1)\\n\\n    Note:\\n    - If an inner list is empty, it will be skipped and no line will be plotted for it.\\n    - The colors are reused cyclically if there are more inner lists than colors available.\\n    - The shuffling of y-values is random and different each time the function is called,\\n      unless a random seed is set externally.\\n    - The function uses a default set of colors defined in the COLORS constant.\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Plots a series of lines for each list in `list_of_lists`. Each line is plotted with shuffled y-values and sequential x-values starting from 1. The function shuffles the y-values of each inner list before plotting. Each line is plotted with a different color from a predetermined set of colors. The function cycles through these colors for each inner list.\\nNote that: If an inner list is empty, it will be skipped and no line will be plotted for it. The colors are reused cyclically if there are more inner lists than colors available. The shuffling of y-values is random and different each time the function is called, unless a random seed is set externally. The function uses a default set of colors defined in the COLORS constant.\\nThe function should output with:\\n    tuple: A tuple containing the figure and axes objects of the plotted graph.\\nYou should write self-contained code starting with:\\n```\\nimport matplotlib.pyplot as plt\\nfrom itertools import cycle\\nimport numpy as np\\nfrom random import shuffle\\nCOLORS = [\\\"b\\\", \\\"g\\\", \\\"r\\\", \\\"c\\\", \\\"m\\\", \\\"y\\\", \\\"k\\\"]\\ndef task_func(list_of_lists):\\n```\",\"libs\":\"['itertools', 'numpy', 'matplotlib', 'random']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}