{"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":"25067ca7-6c85-5fb7-82b0-75e55d060a48","task_key":"default--v0~2e1~2e0~5fhf--25067ca7-6c85-5fb7-82b0-75e55d060a48","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 25067ca7-6c85-5fb7-82b0-75e55d060a48","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import matplotlib.pyplot as plt\\nfrom mpl_toolkits.mplot3d import Axes3D\\nimport numpy as np\\nimport cv2\\nimport os\\ndef task_func(file_path, onpick):\\n\",\"complete_prompt\":\"import matplotlib.pyplot as plt\\nfrom mpl_toolkits.mplot3d import Axes3D\\nimport numpy as np\\nimport cv2\\nimport os\\n\\ndef task_func(file_path, onpick):\\n    \\\"\\\"\\\"\\n    Draw the color histogram of an image in 3D and call a function when a data point is selected.\\n\\n    Parameters:\\n    file_path (str): The path to the image file.\\n    onpick (function): The function to be called when a data point is picked.\\n\\n    Returns:\\n    matplotlib.axes.Axes: The Axes object of the 3D plot.\\n\\n    Raises:\\n    FileNotFoundError: If the image file does not exist.\\n    \\n    Requirements:\\n    - matplotlib\\n    - mpl_toolkits.mplot3d\\n    - numpy\\n    - cv2\\n    - os\\n    - tempfile\\n    \\n    Example:\\n    >>> def onpick(event):\\n    ...     ind = event.ind\\n    ...     print(f'You picked data point(s) {ind}')\\n    >>> np.random.seed(42)\\n    >>> dummy_img_path = 'image.jpg'\\n    >>> dummy_img = np.random.randint(0, 255, (20, 20, 3), dtype=np.uint8)\\n    >>> cv2.imwrite(dummy_img_path, dummy_img)\\n    True\\n    >>> ax = task_func('image.jpg', onpick)\\n    >>> os.remove(dummy_img_path)\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Draw the color histogram of an image in 3D and call a function when a data point is selected.\\nThe function should raise the exception for: FileNotFoundError: If the image file does not exist.\\nThe function should output with:\\n    matplotlib.axes.Axes: The Axes object of the 3D plot.\\nYou should write self-contained code starting with:\\n```\\nimport matplotlib.pyplot as plt\\nfrom mpl_toolkits.mplot3d import Axes3D\\nimport numpy as np\\nimport cv2\\nimport os\\ndef task_func(file_path, onpick):\\n```\",\"libs\":\"['matplotlib', 'mpl_toolkits', 'cv2', 'numpy', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}