{"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":"1a536863-430b-533a-8de2-99d5b6d95ba5","task_key":"default--v0~2e1~2e0~5fhf--1a536863-430b-533a-8de2-99d5b6d95ba5","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 1a536863-430b-533a-8de2-99d5b6d95ba5","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import numpy as np\\nimport matplotlib.pyplot as plt\\nimport cmath\\ndef task_func(x, y):\\n\",\"complete_prompt\":\"import numpy as np\\nimport matplotlib.pyplot as plt\\nimport cmath\\n\\ndef task_func(x, y):\\n    \\\"\\\"\\\"\\n    Draw the phase of a complex function over a range of x and y and return the matplotlib axes object\\n    along with the 2D array of calculated phase values.\\n\\n    Parameters:\\n    x (numpy.ndarray): The range of x values.\\n    y (numpy.ndarray): The range of y values.\\n\\n    Returns:\\n    tuple: containing\\n        - matplotlib.axes.Axes: The axes object with the phase plot.\\n        - numpy.ndarray: The 2D array of calculated phase values.\\n    \\n    Raises:\\n    TypeError: If either `x` or `y` is not a numpy.ndarray.\\n    ValueError: If `x` and `y` do not have the same length.\\n    \\n    Requirements:\\n    - numpy\\n    - matplotlib.pyplot\\n    - cmath\\n\\n    Examples:\\n    >>> ax, Z = task_func(np.array([1, 2, 3]), np.array([1, 2, 3]))\\n    >>> isinstance(ax, plt.Axes), isinstance(Z, np.ndarray)\\n    (True, True)\\n    >>> ax, Z = task_func(np.array([0]), np.array([0]))  # Test with single point\\n    >>> isinstance(ax, plt.Axes), isinstance(Z, np.ndarray)\\n    (True, True)\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Draw the phase of a complex function over a range of x and y and return the matplotlib axes object along with the 2D array of calculated phase values.\\nThe function should raise the exception for: TypeError: If either `x` or `y` is not a numpy.ndarray. ValueError: If `x` and `y` do not have the same length.\\nThe function should output with:\\n    tuple: containing\\n    matplotlib.axes.Axes: The axes object with the phase plot.\\n    numpy.ndarray: The 2D array of calculated phase values.\\nYou should write self-contained code starting with:\\n```\\nimport numpy as np\\nimport matplotlib.pyplot as plt\\nimport cmath\\ndef task_func(x, y):\\n```\",\"libs\":\"['matplotlib', 'numpy', 'cmath']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}