{"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":"cacf79a3-1cc8-5f8f-8ce0-0b74a61f5f6d","task_key":"default--v0~2e1~2e0~5fhf--cacf79a3-1cc8-5f8f-8ce0-0b74a61f5f6d","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf cacf79a3-1cc8-5f8f-8ce0-0b74a61f5f6d","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import numpy as np\\nimport math\\nimport matplotlib.pyplot as plt\\nfrom scipy.signal import get_window\\ndef task_func(amplitude, frequency, time):\\n\",\"complete_prompt\":\"import numpy as np\\nimport math\\nimport matplotlib.pyplot as plt\\nfrom scipy.signal import get_window\\n\\ndef task_func(amplitude, frequency, time):\\n    \\\"\\\"\\\"\\n    Generates and plots a complex wave with a specified amplitude and frequency over given time points,\\n    applying a Hann window to reduce edge effects. The wave is represented as a complex number where the real part \\n    is the cosine component, and the imaginary part is the sine component. It returns both the wave and the plot object.\\n\\n    Parameters:\\n        amplitude (float): The amplitude of the complex wave.\\n        frequency (float): The frequency of the complex wave.\\n        time (numpy.ndarray): The time points to generate the wave.\\n\\n    Returns:\\n        numpy.ndarray: The generated complex wave as a numpy array of complex numbers.\\n        matplotlib.figure.Figure: The figure object of the plot.\\n        matplotlib.axes.Axes: The axes object of the plot.\\n\\n    Requirements:\\n    - numpy\\n    - math\\n    - matplotlib.pyplot\\n    - scipy.signal.get_window\\n\\n    Notes:\\n    - The plot title is \\\"Complex Wave with Hann Window\\\".\\n    - The x-label of the plot is \\\"Time\\\".\\n    - The y-label of the plot is \\\"Amplitude\\\".\\n    - The plot displays both the real and imaginary parts of the complex wave.\\n\\n    Examples:\\n    >>> wave, fig, ax = task_func(1, 1, np.linspace(0, 1, 10, endpoint=False))\\n    >>> len(wave) == 10\\n    True\\n    >>> isinstance(wave[0], complex)\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generates and plots a complex wave with a specified amplitude and frequency over given time points, applying a Hann window to reduce edge effects. The wave is represented as a complex number where the real part is the cosine component, and the imaginary part is the sine component. It returns both the wave and the plot object.\\nNote that: Notes: The plot title is \\\"Complex Wave with Hann Window\\\". The x-label of the plot is \\\"Time\\\". The y-label of the plot is \\\"Amplitude\\\". The plot displays both the real and imaginary parts of the complex wave.\\nThe function should output with:\\n    numpy.ndarray: The generated complex wave as a numpy array of complex numbers.\\n    matplotlib.figure.Figure: The figure object of the plot.\\n    matplotlib.axes.Axes: The axes object of the plot.\\nYou should write self-contained code starting with:\\n```\\nimport numpy as np\\nimport math\\nimport matplotlib.pyplot as plt\\nfrom scipy.signal import get_window\\ndef task_func(amplitude, frequency, time):\\n```\",\"libs\":\"['math', 'numpy', 'matplotlib', 'scipy']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}