{"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":"8b54c045-b993-5e35-8ec0-69f71592c60d","task_key":"default--v0~2e1~2e0~5fhf--8b54c045-b993-5e35-8ec0-69f71592c60d","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 8b54c045-b993-5e35-8ec0-69f71592c60d","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import numpy as np\\nimport random\\ndef task_func(my_list):\\n\",\"complete_prompt\":\"import numpy as np\\nimport random\\n\\ndef task_func(my_list):\\n    \\\"\\\"\\\"\\n    Appends a randomly selected integer between 0 and 100 to the given list 'my_list' and \\n    returns a numpy array of random floating-point numbers. The size of the returned array \\n    is equal to the sum of the numbers in the modified list.\\n\\n    Parameters:\\n        my_list (list): A list of integers to which a random number will be added.\\n\\n    Returns:\\n        numpy.ndarray: An array of random floating-point numbers. The length of the array \\n                       is equal to the sum of the integers in 'my_list' after a random \\n                       number has been appended.\\n\\n    Requirements:\\n    - numpy\\n    - random\\n                       \\n    Examples:\\n        >>> result = task_func([2, 3, 5])\\n        >>> 10 <= len(result) <= 110  # Expecting the length to be within the range after adding a random number between 0 and 100\\n        True\\n        >>> isinstance(result, np.ndarray)\\n        True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Appends a randomly selected integer between 0 and 100 to the given list 'my_list' and returns a numpy array of random floating-point numbers. The size of the returned array is equal to the sum of the numbers in the modified list.\\nThe function should output with:\\n    numpy.ndarray: An array of random floating-point numbers. The length of the array\\n    is equal to the sum of the integers in 'my_list' after a random\\n    number has been appended.\\nYou should write self-contained code starting with:\\n```\\nimport numpy as np\\nimport random\\ndef task_func(my_list):\\n```\",\"libs\":\"['numpy', 'random']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}