{"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":"f03ed4ed-2fbf-5d9f-9533-825b3d1fa62d","task_key":"default--v0~2e1~2e0~5fhf--f03ed4ed-2fbf-5d9f-9533-825b3d1fa62d","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf f03ed4ed-2fbf-5d9f-9533-825b3d1fa62d","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import numpy as np\\nimport matplotlib.pyplot as plt\\nfrom scipy.fft import fft\\ndef task_func(range_start=-10, range_end=10, step=0.1):\\n\",\"complete_prompt\":\"import numpy as np\\nimport matplotlib.pyplot as plt\\nfrom scipy.fft import fft\\n\\n\\ndef task_func(range_start=-10, range_end=10, step=0.1):\\n    \\\"\\\"\\\"\\n    Create a generator object that generates a sequence of tuples. Each tuple contains x, sin(x), and cos(x) \\n    values. The function then plots the sine and cosine functions using these values along with the absolute \\n    difference between the two functions and returns the plot. Finally, it returns the magnitude of the mean \\n    and median of the 1D fft of the absolute difference between the two functions.\\n\\n    Parameters:\\n    - range_start: The starting value of the x range.\\n    - range_end: The ending value of the x range.\\n    - step: The step size for the x values.\\n\\n    Returns:\\n    tuple: A tuple containing two items:\\n        - generator: A generator object producing tuples in the format (x, sin(x), cos(x), abs(sin(x) - cos(x)).\\n        - ax: An Axes object representing the plot.\\n        - float: The abs of the mean of the 1D fft of the absolute difference between sin(x) and cos(x).\\n        - float: The abs of the median of the 1D fft of the absolute difference between sin(x) and cos(x).\\n\\n    Requirements:\\n    - numpy\\n    - matplotlib.pyplot\\n    - scipy.fft\\n\\n    Example:\\n    >>> data, ax, fft_mean, fft_median = task_func()\\n    >>> print(next(data))\\n    (-10.0, 0.5440211108893698, -0.8390715290764524, 1.383092639965822)\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Create a generator object that generates a sequence of tuples. Each tuple contains x, sin(x), and cos(x) values. The function then plots the sine and cosine functions using these values along with the absolute difference between the two functions and returns the plot. Finally, it returns the magnitude of the mean and median of the 1D fft of the absolute difference between the two functions.\\nThe function should output with:\\n    tuple: A tuple containing two items:\\n    generator: A generator object producing tuples in the format (x, sin(x), cos(x), abs(sin(x) - cos(x)).\\n    ax: An Axes object representing the plot.\\n    float: The abs of the mean of the 1D fft of the absolute difference between sin(x) and cos(x).\\n    float: The abs of the median of the 1D fft of the absolute difference between sin(x) and cos(x).\\nYou should write self-contained code starting with:\\n```\\nimport numpy as np\\nimport matplotlib.pyplot as plt\\nfrom scipy.fft import fft\\ndef task_func(range_start=-10, range_end=10, step=0.1):\\n```\",\"libs\":\"['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":[]}