{"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":"7b113873-fad3-58e9-ae7c-c974fd9239ee","task_key":"default--v0~2e1~2e0~5fhf--7b113873-fad3-58e9-ae7c-c974fd9239ee","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 7b113873-fad3-58e9-ae7c-c974fd9239ee","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import requests\\nfrom PIL import Image\\nimport numpy as np\\nimport matplotlib.pyplot as plt\\ndef task_func(url: str) -> \\\"matplotlib.axes._axes.Axes\\\":\\n\",\"complete_prompt\":\"import requests\\nfrom PIL import Image\\nimport numpy as np\\nimport matplotlib.pyplot as plt\\n\\n\\ndef task_func(url: str) -> \\\"matplotlib.axes._axes.Axes\\\":\\n    \\\"\\\"\\\"\\n    Downloads an image from the specified URL, converts it to grayscale, and generates a histogram of its grayscale values.\\n\\n    Parameters:\\n    - url (str): The URL of the image to be downloaded. Must be a valid URL pointing to an image.\\n\\n    Returns:\\n    - matplotlib.axes._axes.Axes: The Axes object of the generated histogram.\\n\\n    Raises:\\n    - ValueError: If the URL is invalid or if there's an error downloading the image. Error message will specify the download issue.\\n    - IOError: If there's an error in opening or processing the downloaded image. Error message will specify the processing issue.\\n\\n    Requirements:\\n    - requests\\n    - PIL\\n    - numpy\\n    - matplotlib.pyplot\\n\\n    Example:\\n    >>> ax = task_func(\\\"https://www.example.com/myimage.jpg\\\")\\n    >>> type(ax)\\n    <class 'matplotlib.axes._axes.Axes'>\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Downloads an image from the specified URL, converts it to grayscale, and generates a histogram of its grayscale values.\\nThe function should raise the exception for: ValueError: If the URL is invalid or if there's an error downloading the image. Error message will specify the download issue. IOError: If there's an error in opening or processing the downloaded image. Error message will specify the processing issue.\\nThe function should output with:\\n    matplotlib.axes._axes.Axes: The Axes object of the generated histogram.\\nYou should write self-contained code starting with:\\n```\\nimport requests\\nfrom PIL import Image\\nimport numpy as np\\nimport matplotlib.pyplot as plt\\ndef task_func(url: str) -> \\\"matplotlib.axes._axes.Axes\\\":\\n```\",\"libs\":\"['PIL', 'numpy', 'matplotlib', 'requests']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}