{"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":"dd549f0e-3b86-5543-b03a-8da6b8c084d2","task_key":"default--v0~2e1~2e0~5fhf--dd549f0e-3b86-5543-b03a-8da6b8c084d2","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf dd549f0e-3b86-5543-b03a-8da6b8c084d2","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import random\\nimport matplotlib.pyplot as plt\\n# Sample data\\nclass Object:\\n    value = 0\\n    def __init__(self, value=None):\\n        if value is None:\\n            self.value = random.gauss(0, 1)\\n        else:\\n            self.value = value\\ndef task_func(obj_list, attr, num_bins=30, seed=0):\\n\",\"complete_prompt\":\"import random\\nimport matplotlib.pyplot as plt\\n\\n\\n# Sample data\\nclass Object:\\n    value = 0\\n\\n    def __init__(self, value=None):\\n        if value is None:\\n            self.value = random.gauss(0, 1)\\n        else:\\n            self.value = value\\n\\n\\ndef task_func(obj_list, attr, num_bins=30, seed=0):\\n    \\\"\\\"\\\"\\n    Create a histogram of the specified attribute from a list of objects and return the histogram plot.\\n\\n    Parameters:\\n    obj_list (list): The list of objects containing the attribute.\\n    attr (str): The attribute to generate a histogram for.\\n    num_bins (int, Optional): The number of bins to use in the histogram. Defaults to 30.\\n    seed (int, Optional): The seed for the random number generator. Defaults to 0.\\n\\n    Returns:\\n    matplotlib.axes._axes.Axes: The histogram plot of the attribute values, with the title 'Histogram of attribute values', x-axis labeled 'Attribute Value', and y-axis labeled 'Count'.\\n\\n    Requirements:\\n    - random (used for default object generation)\\n    - numpy (used for numerical computations)\\n    - matplotlib (used for plotting)\\n\\n    Constants:\\n    - NUM_BINS (int): Number of bins to use in the histogram, set to 30 by default.\\n\\n    Example:\\n    >>> obj_list = [Object(value=i) for i in range(10)]\\n    >>> ax = task_func(obj_list, 'value')\\n    >>> type(ax)\\n    <class 'matplotlib.axes._axes.Axes'>\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Create a histogram of the specified attribute from a list of objects and return the histogram plot. Constants: - NUM_BINS (int): Number of bins to use in the histogram, set to 30 by default.\\nThe function should output with:\\n    matplotlib.axes._axes.Axes: The histogram plot of the attribute values, with the title 'Histogram of attribute values', x-axis labeled 'Attribute Value', and y-axis labeled 'Count'.\\nYou should write self-contained code starting with:\\n```\\nimport random\\nimport matplotlib.pyplot as plt\\n# Sample data\\nclass Object:\\n    value = 0\\n    def __init__(self, value=None):\\n        if value is None:\\n            self.value = random.gauss(0, 1)\\n        else:\\n            self.value = value\\ndef task_func(obj_list, attr, num_bins=30, seed=0):\\n```\",\"libs\":\"['random', 'matplotlib']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}