{"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":"073764aa-c010-5800-9133-e2c53c01b76d","task_key":"default--v0~2e1~2e0~5fhf--073764aa-c010-5800-9133-e2c53c01b76d","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 073764aa-c010-5800-9133-e2c53c01b76d","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import cv2\\nimport os\\nfrom matplotlib import pyplot as plt\\ndef task_func(image_path='image.jpg', histogram_path='histogram.png'):\\n\",\"complete_prompt\":\"import cv2\\nimport os\\nfrom matplotlib import pyplot as plt\\n\\ndef task_func(image_path='image.jpg', histogram_path='histogram.png'):\\n    \\\"\\\"\\\"\\n    Read an image, create a histogram of the image pixel intensities, save the histogram as a PNG file, \\n    and return the histogram plot object. The function also displays the original image and its histogram.\\n    The limit to the size of the image depends on the hardware capabilities of the system you are working on. \\n    A possible size of an image is 20x20. \\n\\n    Parameters:\\n    - image_path (str): Path to the image file. Defaults to 'image.jpg'.\\n    - histogram_path (str): Path to save the histogram PNG file. Defaults to 'histogram.png'.\\n\\n    Returns:\\n    - matplotlib.axes.Axes: The Axes object of the histogram plot.\\n\\n    Raises:\\n    - FileNotFoundError: If the image file does not exist at the specified path.\\n\\n    Requirements:\\n    - opencv\\n    - os\\n    - matplotlib.pyplot\\n\\n    Example:\\n    >>> create_dummy_image('image.jpg')\\n    >>> histogram_axes = task_func('image.jpg', 'histogram.png')\\n    >>> os.remove('histogram.png')\\n    >>> os.remove('image.jpg')\\n    >>> histogram_axes.title.get_text()\\n    'Grayscale Histogram'\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Read an image, create a histogram of the image pixel intensities, save the histogram as a PNG file, and return the histogram plot object. The function also displays the original image and its histogram. The limit to the size of the image depends on the hardware capabilities of the system you are working on. A possible size of an image is 20x20.\\nThe function should raise the exception for: FileNotFoundError: If the image file does not exist at the specified path.\\nThe function should output with:\\n    matplotlib.axes.Axes: The Axes object of the histogram plot.\\nYou should write self-contained code starting with:\\n```\\nimport cv2\\nimport os\\nfrom matplotlib import pyplot as plt\\ndef task_func(image_path='image.jpg', histogram_path='histogram.png'):\\n```\",\"libs\":\"['matplotlib', 'cv2', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}