{"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":"6a818fd0-edfc-5cea-80a7-f3ee9d28c555","task_key":"default--v0~2e1~2e0~5fhf--6a818fd0-edfc-5cea-80a7-f3ee9d28c555","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 6a818fd0-edfc-5cea-80a7-f3ee9d28c555","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import numpy as np\\nimport matplotlib.pyplot as plt\\nfrom random import randint\\nimport math\\ndef task_func(POINTS=100):\\n\",\"complete_prompt\":\"import numpy as np\\nimport matplotlib.pyplot as plt\\nfrom random import randint\\nimport math\\n\\ndef task_func(POINTS=100):\\n    \\\"\\\"\\\"\\n    Simulates a random walk in a two-dimensional space and draws the path using matplotlib.\\n    The walk is determined by randomly choosing directions at each step. The function generates\\n    two numpy arrays representing the x and y coordinates of each step and plots these points\\n    to visualize the path of the walk.\\n\\n    Parameters:\\n        POINTS (int): The number of steps in the random walk. Default is 100.\\n\\n    Returns:\\n        A matplotlib figure object representing the plot of the random walk.\\n\\n    Requirements:\\n        - numpy\\n        - matplotlib.pyplot\\n        - random.randint\\n        - math\\n\\n    Examples:\\n        >>> import matplotlib\\n        >>> fig = task_func(200)  # Displays a plot of a random walk with 200 steps\\n        >>> isinstance(fig, matplotlib.figure.Figure)\\n        True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Simulates a random walk in a two-dimensional space and draws the path using matplotlib. The walk is determined by randomly choosing directions at each step. The function generates two numpy arrays representing the x and y coordinates of each step and plots these points to visualize the path of the walk.\\nThe function should output with:\\n    A matplotlib figure object representing the plot of the random walk.\\nYou should write self-contained code starting with:\\n```\\nimport numpy as np\\nimport matplotlib.pyplot as plt\\nfrom random import randint\\nimport math\\ndef task_func(POINTS=100):\\n```\",\"libs\":\"['math', 'numpy', 'matplotlib', 'random']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}