{"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":"2b0a95a2-16f1-55a2-8c38-c02837b5346a","task_key":"default--v0~2e1~2e0~5fhf--2b0a95a2-16f1-55a2-8c38-c02837b5346a","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 2b0a95a2-16f1-55a2-8c38-c02837b5346a","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import random\\nimport string\\nimport pandas as pd\\ndef task_func(n_rows=1000):\\n\",\"complete_prompt\":\"import random\\nimport string\\nimport pandas as pd\\n\\n\\ndef task_func(n_rows=1000):\\n    \\\"\\\"\\\"\\n    Generate a histogram of the frequency of the top 30 unique random 3-letter strings.\\n    The function creates random strings, each consisting of 3 letters from the lowercase English alphabet.\\n    It then plots a histogram showing the frequencies of the top 30 most common strings among the generated set.\\n\\n    Parameters:\\n    - n_rows (int): Number of random 3-letter strings to generate.\\n    Must be positive. Default is 1000.\\n\\n    Returns:\\n    - ax (matplotlib.axes.Axes): A Matplotlib Axes object containing the histogram.\\n    Each bar represents one of the top 30 most frequent 3-letter strings.\\n\\n    Raises:\\n    - ValueError: If `n_rows` is less than or equal to 0.\\n\\n    Requirements:\\n    - random\\n    - string\\n    - pandas\\n    \\n    Example:\\n    >>> ax = task_func(1000)\\n    >>> ax.get_title()\\n    'Top 30 Frequencies of Random 3-Letter Strings'\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generate a histogram of the frequency of the top 30 unique random 3-letter strings. The function creates random strings, each consisting of 3 letters from the lowercase English alphabet. It then plots a histogram showing the frequencies of the top 30 most common strings among the generated set.\\nThe function should raise the exception for: ValueError: If `n_rows` is less than or equal to 0.\\nThe function should output with:\\n    ax (matplotlib.axes.Axes): A Matplotlib Axes object containing the histogram.\\n    Each bar represents one of the top 30 most frequent 3-letter strings.\\nYou should write self-contained code starting with:\\n```\\nimport random\\nimport string\\nimport pandas as pd\\ndef task_func(n_rows=1000):\\n```\",\"libs\":\"['pandas', 'random', 'string']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}