{"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":"83aef2d8-4517-5cef-a3c7-5827ab48ea0e","task_key":"default--v0~2e1~2e0~5fhf--83aef2d8-4517-5cef-a3c7-5827ab48ea0e","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 83aef2d8-4517-5cef-a3c7-5827ab48ea0e","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import random\\nimport string\\nfrom matplotlib import pyplot as plt\\ndef task_func(elements, seed=100):\\n\",\"complete_prompt\":\"import random\\nimport string\\nfrom matplotlib import pyplot as plt\\n\\n\\ndef task_func(elements, seed=100):\\n    \\\"\\\"\\\"\\n    Format each string in the given list \\\"elements\\\" into a pattern \\\"% {0}%\\\", \\n    where {0} is a randomly generated alphanumeric string of length 5. Additionally,\\n    return the plot axes of an histogram of the occurrence of each character across \\n    all the strings and a dictionary containing the count of each character in all \\n    the formatted strings.\\n    \\n    Parameters:\\n    elements (List[str]): A list of string elements to be formatted.\\n    seed (int, Optional): The seed for the random number generator. Defaults to 100.\\n    \\n    Returns:\\n    List[str]: A list of elements formatted with random patterns.\\n    plt.Axes: The axes object of the histogram plot.\\n    dict: A dictionary containing the count of each character in the formatted strings.\\n    \\n    Requirements:\\n    - random\\n    - string\\n    - matplotlib.pyplot\\n    \\n    Example:\\n    >>> patterns, ax, counts = task_func(['abc', 'def'])\\n    >>> patterns\\n    ['% jCVRT%', '% AXHeC%']\\n    >>> counts\\n    {'%': 4, ' ': 2, 'j': 1, 'C': 2, 'V': 1, 'R': 1, 'T': 1, 'A': 1, 'X': 1, 'H': 1, 'e': 1}\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Format each string in the given list \\\"elements\\\" into a pattern \\\"% {0}%\\\", where {0} is a randomly generated alphanumeric string of length 5. Additionally, return the plot axes of an histogram of the occurrence of each character across all the strings and a dictionary containing the count of each character in all the formatted strings.\\nThe function should output with:\\n    List[str]: A list of elements formatted with random patterns.\\n    plt.Axes: The axes object of the histogram plot.\\n    dict: A dictionary containing the count of each character in the formatted strings.\\nYou should write self-contained code starting with:\\n```\\nimport random\\nimport string\\nfrom matplotlib import pyplot as plt\\ndef task_func(elements, seed=100):\\n```\",\"libs\":\"['random', 'matplotlib', 'string']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}