{"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":"b3769572-ba3c-56ea-9a71-84b988b02689","task_key":"default--v0~2e1~2e0~5fhf--b3769572-ba3c-56ea-9a71-84b988b02689","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf b3769572-ba3c-56ea-9a71-84b988b02689","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nimport numpy as np\\ndef task_func(L):\\n\",\"complete_prompt\":\"import pandas as pd\\nimport numpy as np\\n\\n\\ndef task_func(L):\\n    \\\"\\\"\\\"\\n    Draw a histogram of all elements in a nested list 'L' and return the Axes object of the plot.\\n\\n    The function first uses Numpy to handle array operations, checking for correct input type\\n    while ignoring empty sublists. It then plots the histogram using pandas, assigning\\n    each unique value its own bin and plotting the histogram with rwidth 0.8.\\n\\n    Parameters:\\n    L (list of list of int): Nested list of integers.\\n\\n    Returns:\\n    ax (matplotlib.axes._axes.Axes): The Axes object of the histogram plot.\\n\\n    Raises:\\n    If the input is not a list of list of integers, a TypeError is raised.\\n    \\n    Requirements:\\n    - pandas\\n    - numpy\\n\\n    Example:\\n    >>> ax = task_func([[1,2,3],[4,5,6]])\\n    >>> type(ax)\\n    <class 'matplotlib.axes._axes.Axes'>\\n    >>> ax.get_xticklabels()\\n    [Text(0.0, 0, '0'), Text(1.0, 0, '1'), Text(2.0, 0, '2'), Text(3.0, 0, '3'), Text(4.0, 0, '4'), Text(5.0, 0, '5'), Text(6.0, 0, '6'), Text(7.0, 0, '7')]\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Draw a histogram of all elements in a nested list 'L' and return the Axes object of the plot. The function first uses Numpy to handle array operations, checking for correct input type while ignoring empty sublists. It then plots the histogram using pandas, assigning each unique value its own bin and plotting the histogram with rwidth 0.8.\\nThe function should raise the exception for: If the input is not a list of list of integers, a TypeError is raised.\\nThe function should output with:\\n    ax (matplotlib.axes._axes.Axes): The Axes object of the histogram plot.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nimport numpy as np\\ndef task_func(L):\\n```\",\"libs\":\"['pandas', 'numpy']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}