{"kind":"task","effective_mode":"full","benchmark":{"kind":"benchmark","effective_mode":"full","slug":"humaneval-plus","formal_name":"HumanEval+","introduction":"HumanEval+ keeps the 164 original HumanEval problems and multiplies their tests by roughly 80×. It exists because the original suite was loose enough to pass implementations that were actually wrong.","introduction_ja":"","introduction_en":"","category":"Category not supplied","task_count":null,"acquisition_status":"Acquisition status not supplied","official_url":"https://github.com/evalplus/evalplus","indexing_mode":"noindex","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[]}},"task_id":"21f85510-f68f-5319-b258-ae73a60c57de","task_key":"default--test--21f85510-f68f-5319-b258-ae73a60c57de","task_revision_id":"2","upstream_id":"","short_description":"def sort_array(array):","config":"default","split":"test","body":"{\"entry_point\":\"sort_array\",\"prompt\":\"\\ndef sort_array(array):\\n    \\\"\\\"\\\"\\n    Given an array of non-negative integers, return a copy of the given array after sorting,\\n    you will sort the given array in ascending order if the sum( first index value, last index value) is odd,\\n    or sort it in descending order if the sum( first index value, last index value) is even.\\n\\n    Note:\\n    * don't change the given array.\\n\\n    Examples:\\n    * sort_array([]) => []\\n    * sort_array([5]) => [5]\\n    * sort_array([2, 4, 3, 0, 1, 5]) => [0, 1, 2, 3, 4, 5]\\n    * sort_array([2, 4, 3, 0, 1, 5, 6]) => [6, 5, 4, 3, 2, 1, 0]\\n    \\\"\\\"\\\"\\n\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://github.com/evalplus/evalplus","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}