{"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":"noindex","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[]}},"task_id":"4dce2748-ee8d-5cb2-a42f-35b2d82e8c71","task_key":"default--v0~2e1~2e0~5fhf--4dce2748-ee8d-5cb2-a42f-35b2d82e8c71","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 4dce2748-ee8d-5cb2-a42f-35b2d82e8c71","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import numpy as np\\nimport matplotlib.pyplot as plt\\nfrom datetime import datetime\\n# Constants\\nPLOT_TITLE = 'Square root plot'\\nX_LABEL = 'x'\\nY_LABEL = 'sqrt(x)'\\nTIME_FORMAT = '%Y-%m-%d %H:%M:%S'\\ndef task_func(result):\\n\",\"complete_prompt\":\"import numpy as np\\nimport matplotlib.pyplot as plt\\nfrom datetime import datetime\\n\\n# Constants\\nPLOT_TITLE = 'Square root plot'\\nX_LABEL = 'x'\\nY_LABEL = 'sqrt(x)'\\nTIME_FORMAT = '%Y-%m-%d %H:%M:%S'\\n\\ndef task_func(result):\\n    \\\"\\\"\\\"\\n    Plots the square root function for values associated with the key 'from_user' from the input list of dictionaries. Annotates the graph with the current date and time.\\n    - Round each square root value to 2 decimals.\\n\\n    Parameters:\\n    result (list): A list of dictionaries containing numeric values with the key 'from_user'.\\n\\n    Returns:\\n    - numpy.ndarray: list of square values associated with the key 'from_user' from the input list of dictionaries.\\n    - matplotlib.axes.Axes: plot of square root values.\\n\\n    Requirements:\\n    - numpy\\n    - matplotlib.pyplot\\n    - datetime\\n\\n    Constants:\\n    - PLOT_TITLE: Title of the plot (default is 'Square root plot').\\n    - X_LABEL: Label for the x-axis (default is 'x').\\n    - Y_LABEL: Label for the y-axis (default is 'sqrt(x)').\\n    - TIME_FORMAT: Format for displaying the current date and time (default is '%Y-%m-%d %H:%M:%S').\\n\\n    Example:\\n    >>> result = [{\\\"hi\\\": 7, \\\"bye\\\": 4, \\\"from_user\\\": 16}, {\\\"some_key\\\": 2, \\\"another_key\\\": 4, \\\"from_user\\\": 9}]\\n    >>> square_roots, ax = task_func(result)\\n    >>> print(square_roots)\\n    [4. 3.]\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Plots the square root function for values associated with the key 'from_user' from the input list of dictionaries. Annotates the graph with the current date and time. - Round each square root value to 2 decimals. Constants: - PLOT_TITLE: Title of the plot (default is 'Square root plot'). - X_LABEL: Label for the x-axis (default is 'x'). - Y_LABEL: Label for the y-axis (default is 'sqrt(x)'). - TIME_FORMAT: Format for displaying the current date and time (default is '%Y-%m-%d %H:%M:%S').\\nThe function should output with:\\n    numpy.ndarray: list of square values associated with the key 'from_user' from the input list of dictionaries.\\n    matplotlib.axes.Axes: plot of square root values.\\nYou should write self-contained code starting with:\\n```\\nimport numpy as np\\nimport matplotlib.pyplot as plt\\nfrom datetime import datetime\\n# Constants\\nPLOT_TITLE = 'Square root plot'\\nX_LABEL = 'x'\\nY_LABEL = 'sqrt(x)'\\nTIME_FORMAT = '%Y-%m-%d %H:%M:%S'\\ndef task_func(result):\\n```\",\"libs\":\"['datetime', 'numpy', 'matplotlib']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}