{"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":"a0d0d0c7-b46b-5ce9-8be8-4501f483b6f8","task_key":"default--v0~2e1~2e0~5fhf--a0d0d0c7-b46b-5ce9-8be8-4501f483b6f8","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf a0d0d0c7-b46b-5ce9-8be8-4501f483b6f8","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import string\\nimport matplotlib.pyplot as plt\\ndef task_func(s):\\n\",\"complete_prompt\":\"import string\\nimport matplotlib.pyplot as plt\\n\\n\\ndef task_func(s):\\n    \\\"\\\"\\\"\\n    Calculate the frequency of each letter in a string and return a bar chart of frequencies.\\n    Results are case-insensitive. If non-string input is provided, function will throw an error.\\n\\n    Parameters:\\n    s (str): The string to calculate letter frequencies.\\n\\n    Returns:\\n    tuple: A tuple containing:\\n        - dict: A dictionary with the frequency of each letter.\\n        - Axes: The bar subplot of 'Letter Frequencies' with 'Letters' on the x-axis and 'Frequency'\\n                on the y-axis.\\n\\n    Requirements:\\n    - string\\n    - matplotlib.pyplot\\n\\n    Example:\\n    >>> s = 'This is a test string.'\\n    >>> freqs, ax = task_func(s)\\n    >>> freqs\\n    {'a': 1, 'b': 0, 'c': 0, 'd': 0, 'e': 1, 'f': 0, 'g': 1, 'h': 1, 'i': 3, 'j': 0, 'k': 0, 'l': 0, 'm': 0, 'n': 1, 'o': 0, 'p': 0, 'q': 0, 'r': 1, 's': 4, 't': 4, 'u': 0, 'v': 0, 'w': 0, 'x': 0, 'y': 0, 'z': 0}\\n    >>> type(ax)\\n    <class 'matplotlib.axes._axes.Axes'>\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Calculate the frequency of each letter in a string and return a bar chart of frequencies. Results are case-insensitive. If non-string input is provided, function will throw an error.\\nThe function should output with:\\n    tuple: A tuple containing:\\n    dict: A dictionary with the frequency of each letter.\\n    Axes: The bar subplot of 'Letter Frequencies' with 'Letters' on the x-axis and 'Frequency'\\n    on the y-axis.\\nYou should write self-contained code starting with:\\n```\\nimport string\\nimport matplotlib.pyplot as plt\\ndef task_func(s):\\n```\",\"libs\":\"['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":[]}