data_source
stringclasses
1 value
prompt
listlengths
2
2
ability
stringclasses
1 value
reward_model
dict
extra_info
dict
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/439\", \"entry_point\": \"multiple_to_single\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to join a list of multiple integers into a single integer.\\nassert multiple_to_single([11, 33, 50])==113350\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef mu...
{ "split": "test", "index": 200, "task_id": "Mbpp/439", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/440\", \"entry_point\": \"find_adverb_position\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the first adverb and their positions in a given sentence.\\nassert find_adverb_position(\\\"clearly!! we can see the sky\\\")==(0, 7, 'clearly')\\n\\\"\\\"...
{ "split": "test", "index": 201, "task_id": "Mbpp/440", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/441\", \"entry_point\": \"surfacearea_cube\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the surface area of a cube of a given size.\\nassert surfacearea_cube(5)==150\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef surfacearea_cube(l):\\n re...
{ "split": "test", "index": 202, "task_id": "Mbpp/441", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/445\", \"entry_point\": \"index_multiplication\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to perform index wise multiplication of tuple elements in the given two tuples.\\nassert index_multiplication(((1, 3), (4, 5), (2, 9), (1, 10)),((6, 7), (3, 9), (1...
{ "split": "test", "index": 203, "task_id": "Mbpp/445", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/446\", \"entry_point\": \"count_Occurrence\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to count the occurence of all elements of list in a tuple.\\nassert count_Occurrence(('a', 'a', 'c', 'b', 'd'),['a', 'b'] ) == 3\\n\\\"\\\"\\\"\\n\", \"canonica...
{ "split": "test", "index": 204, "task_id": "Mbpp/446", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/447\", \"entry_point\": \"cube_nums\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find cubes of individual elements in a list.\\nassert cube_nums([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])==[1, 8, 27, 64, 125, 216, 343, 512, 729, 1000]\\n\\\"\\\"\\\"\\n\", \"cano...
{ "split": "test", "index": 205, "task_id": "Mbpp/447", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/448\", \"entry_point\": \"cal_sum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to calculate the sum of perrin numbers.\\nassert cal_sum(9) == 49\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef cal_sum(n): \\n\\ta = 3\\n\\tb = 0\\n\\tc = 2\\n\\tif (n...
{ "split": "test", "index": 206, "task_id": "Mbpp/448", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/450\", \"entry_point\": \"extract_string\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to extract specified size of strings from a given list of string values.\\nassert extract_string(['Python', 'list', 'exercises', 'practice', 'solution'] ,8)==['practice'...
{ "split": "test", "index": 207, "task_id": "Mbpp/450", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/451\", \"entry_point\": \"remove_whitespaces\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to remove all whitespaces from the given string.\\nassert remove_whitespaces(' Google Flutter ') == 'GoogleFlutter'\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \...
{ "split": "test", "index": 208, "task_id": "Mbpp/451", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/453\", \"entry_point\": \"sumofFactors\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the sum of even factors of a number.\\nassert sumofFactors(18) == 26\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nimport math \\ndef sumofFactors(n) : ...
{ "split": "test", "index": 209, "task_id": "Mbpp/453", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/454\", \"entry_point\": \"text_match_wordz\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that matches a word containing 'z'.\\nassert text_match_wordz(\\\"pythonz.\\\")==True\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nimport re\\ndef text_match_word...
{ "split": "test", "index": 210, "task_id": "Mbpp/454", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/455\", \"entry_point\": \"check_monthnumb_number\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check whether the given month number contains 31 days or not.\\nassert check_monthnumb_number(5)==True\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef c...
{ "split": "test", "index": 211, "task_id": "Mbpp/455", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/456\", \"entry_point\": \"reverse_string_list\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to reverse each string in a given list of string values.\\nassert reverse_string_list(['Red', 'Green', 'Blue', 'White', 'Black'])==['deR', 'neerG', 'eulB', 'etihW',...
{ "split": "test", "index": 212, "task_id": "Mbpp/456", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/457\", \"entry_point\": \"Find_Min\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the sublist having minimum length.\\nassert Find_Min([[1],[1,2],[1,2,3]]) == [1]\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef Find_Min(lst): \\n ret...
{ "split": "test", "index": 213, "task_id": "Mbpp/457", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/458\", \"entry_point\": \"rectangle_area\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the area of a rectangle.\\nassert rectangle_area(10,20)==200\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef rectangle_area(l,b):\\n return l * b\\n\", \"...
{ "split": "test", "index": 214, "task_id": "Mbpp/458", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/459\", \"entry_point\": \"remove_uppercase\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to remove uppercase substrings from a given string.\\nassert remove_uppercase('cAstyoUrFavoRitETVshoWs') == 'cstyoravoitshos'\\n\\\"\\\"\\\"\\n\", \"canonical_solution...
{ "split": "test", "index": 215, "task_id": "Mbpp/459", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/460\", \"entry_point\": \"Extract\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to get the first element of each sublist.\\nassert Extract([[1, 2], [3, 4, 5], [6, 7, 8, 9]]) == [1, 3, 6]\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef Extract(...
{ "split": "test", "index": 216, "task_id": "Mbpp/460", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/462\", \"entry_point\": \"combinations_list\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find all possible combinations of the elements of a given list.\\nassert combinations_list(['orange', 'red', 'green', 'blue'])==[[], ['orange'], ['red'], ['red', '...
{ "split": "test", "index": 217, "task_id": "Mbpp/462", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/463\", \"entry_point\": \"max_subarray_product\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the maximum product subarray of the given array.\\nassert max_subarray_product([1, -2, -3, 0, 7, -8, -2]) == 112\\n\\\"\\\"\\\"\\n\", \"canonical_solution\...
{ "split": "test", "index": 218, "task_id": "Mbpp/463", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/465\", \"entry_point\": \"drop_empty\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to drop empty items from a given dictionary.\\nassert drop_empty({'c1': 'Red', 'c2': 'Green', 'c3':None})=={'c1': 'Red', 'c2': 'Green'}\\n\\\"\\\"\\\"\\n\", \"canonical_solu...
{ "split": "test", "index": 219, "task_id": "Mbpp/465", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/468\", \"entry_point\": \"max_product\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the maximum product formed by multiplying numbers of an increasing subsequence of that array.\\nassert max_product([3, 100, 4, 5, 150, 6]) == 3000\\n\\\"\\\"\\\"\\n...
{ "split": "test", "index": 220, "task_id": "Mbpp/468", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/470\", \"entry_point\": \"add_pairwise\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the pairwise addition of the neighboring elements of the given tuple.\\nassert add_pairwise((1, 5, 7, 8, 10)) == (6, 12, 15, 18)\\n\\\"\\\"\\\"\\n\", \"canonical_s...
{ "split": "test", "index": 221, "task_id": "Mbpp/470", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/471\", \"entry_point\": \"find_remainder\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the product of the array multiplication modulo n.\\nassert find_remainder([ 100, 10, 5, 25, 35, 14 ],11) ==9\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": ...
{ "split": "test", "index": 222, "task_id": "Mbpp/471", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/472\", \"entry_point\": \"check_Consecutive\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to check whether the given list contains consecutive numbers or not.\\nassert check_Consecutive([1,2,3,4,5]) == True\\n\\\"\\\"\\\"\\n\", \"canonical_solution\...
{ "split": "test", "index": 223, "task_id": "Mbpp/472", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/473\", \"entry_point\": \"tuple_intersection\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the tuple intersection of elements in the given tuple list irrespective of their order.\\nassert tuple_intersection([(3, 4), (5, 6), (9, 10), (4, 5)] , [(5, ...
{ "split": "test", "index": 224, "task_id": "Mbpp/473", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/474\", \"entry_point\": \"replace_char\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to replace characters in a string.\\nassert replace_char(\\\"polygon\\\",'y','l')==(\\\"pollgon\\\")\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef replace_char(str...
{ "split": "test", "index": 225, "task_id": "Mbpp/474", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/475\", \"entry_point\": \"sort_counter\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to sort a dictionary by value.\\nassert sort_counter({'Math':81, 'Physics':83, 'Chemistry':87})==[('Chemistry', 87), ('Physics', 83), ('Math', 81)]\\n\\\"\\\"\\\"\\n\", \"...
{ "split": "test", "index": 226, "task_id": "Mbpp/475", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/476\", \"entry_point\": \"big_sum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the sum of the largest and smallest value in a given array.\\nassert big_sum([1,2,3]) == 4\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef big_sum(nums):\\...
{ "split": "test", "index": 227, "task_id": "Mbpp/476", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/477\", \"entry_point\": \"is_lower\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to convert the given string to lower case.\\nassert is_lower(\\\"InValid\\\") == \\\"invalid\\\"\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef is_lower(string):...
{ "split": "test", "index": 228, "task_id": "Mbpp/477", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/478\", \"entry_point\": \"remove_lowercase\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to remove lowercase substrings from a given string.\\nassert remove_lowercase(\\\"PYTHon\\\")==('PYTH')\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nimport re\\nd...
{ "split": "test", "index": 229, "task_id": "Mbpp/478", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/479\", \"entry_point\": \"first_Digit\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the first digit of a given number.\\nassert first_Digit(123) == 1\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef first_Digit(n) : \\n return int(s...
{ "split": "test", "index": 230, "task_id": "Mbpp/479", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/554\", \"entry_point\": \"Split\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function which takes a list of integers and only returns the odd ones.\\nassert Split([1,2,3,4,5,6]) == [1,3,5]\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef Split(l): \\n ...
{ "split": "test", "index": 231, "task_id": "Mbpp/554", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/555\", \"entry_point\": \"difference\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the difference between the sum of cubes of the first n natural numbers and the sum of the first n natural numbers.\\nassert difference(3) == 30\\n\\\"\\\"\\\"...
{ "split": "test", "index": 232, "task_id": "Mbpp/555", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/556\", \"entry_point\": \"find_Odd_Pair\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to count the number of pairs whose xor value is odd.\\nassert find_Odd_Pair([5,4,7,2,1],5) == 6\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef find_Odd_Pair...
{ "split": "test", "index": 233, "task_id": "Mbpp/556", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/557\", \"entry_point\": \"toggle_string\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to toggle the case of all characters in a string.\\nassert toggle_string(\\\"Python\\\")==(\\\"pYTHON\\\")\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef toggle_st...
{ "split": "test", "index": 234, "task_id": "Mbpp/557", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/558\", \"entry_point\": \"digit_distance_nums\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the sum of the per-digit difference between two integers.\\nassert digit_distance_nums(1,2) == 1\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nde...
{ "split": "test", "index": 235, "task_id": "Mbpp/558", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/559\", \"entry_point\": \"max_sub_array_sum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the sum of the largest contiguous sublist in the given list.\\nassert max_sub_array_sum([-2, -3, 4, -1, -2, 1, 5, -3], 8) == 7\\n\\\"\\\"\\\"\\n\", \"canonica...
{ "split": "test", "index": 236, "task_id": "Mbpp/559", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/560\", \"entry_point\": \"union_elements\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the union of the elements of two given tuples and output them in sorted order.\\nassert union_elements((3, 4, 5, 6),(5, 7, 4, 10) ) == (3, 4, 5, 6, 7, 10)\\n\\\"...
{ "split": "test", "index": 237, "task_id": "Mbpp/560", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/562\", \"entry_point\": \"Find_Max_Length\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the length of the longest sublists.\\nassert Find_Max_Length([[1],[1,4],[5,6,7,8]]) == 4\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef Find_Max_L...
{ "split": "test", "index": 238, "task_id": "Mbpp/562", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/563\", \"entry_point\": \"extract_values\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to extract values between quotation marks from a string.\\nassert extract_values('\\\"Python\\\", \\\"PHP\\\", \\\"Java\\\"')==['Python', 'PHP', 'Java']\\n\\\"\\\"\\\"\\...
{ "split": "test", "index": 239, "task_id": "Mbpp/563", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/564\", \"entry_point\": \"count_Pairs\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function which takes a list of integers and counts the number of possible unordered pairs where both elements are unequal.\\nassert count_Pairs([1,2,1],3) == 2\\n\\\"\\\"\\\"...
{ "split": "test", "index": 240, "task_id": "Mbpp/564", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/565\", \"entry_point\": \"split\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to split a string into characters.\\nassert split('python') == ['p','y','t','h','o','n']\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef split(word): \\n return l...
{ "split": "test", "index": 241, "task_id": "Mbpp/565", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/566\", \"entry_point\": \"sum_digits\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to get the sum of the digits of a non-negative integer.\\nassert sum_digits(345)==12\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef sum_digits(n):\\n return sum(map(...
{ "split": "test", "index": 242, "task_id": "Mbpp/566", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/567\", \"entry_point\": \"issort_list\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check whether a specified list is sorted or not.\\nassert issort_list([1,2,4,6,8,10,12,14,16,17])==True\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef issort_list...
{ "split": "test", "index": 243, "task_id": "Mbpp/567", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/568\", \"entry_point\": \"empty_list\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to create a list of N empty dictionaries.\\nassert empty_list(5)==[{},{},{},{},{}]\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef empty_list(length):\\n return [{} fo...
{ "split": "test", "index": 244, "task_id": "Mbpp/568", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/569\", \"entry_point\": \"sort_sublists\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to sort each sublist of strings in a given list of lists.\\nassert sort_sublists([['green', 'orange'], ['black', 'white'], ['white', 'black', 'orange']])==[['green', 'ora...
{ "split": "test", "index": 245, "task_id": "Mbpp/569", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/572\", \"entry_point\": \"two_unique_nums\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to remove duplicate numbers from a given number of lists.\\nassert two_unique_nums([1,2,3,2,3,4,5]) == [1, 4, 5]\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\...
{ "split": "test", "index": 246, "task_id": "Mbpp/572", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/573\", \"entry_point\": \"unique_product\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to calculate the product of the unique numbers in a given list.\\nassert unique_product([10, 20, 30, 40, 20, 50, 60, 40]) == 720000000\\n\\\"\\\"\\\"\\n\", \"can...
{ "split": "test", "index": 247, "task_id": "Mbpp/573", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/576\", \"entry_point\": \"is_Sub_Array\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to check whether a list is sublist of another or not.\\nassert is_Sub_Array([1,4,3,5],[1,2]) == False\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef is_Sub_A...
{ "split": "test", "index": 248, "task_id": "Mbpp/576", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/577\", \"entry_point\": \"last_Digit_Factorial\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the last digit in factorial of a given number.\\nassert last_Digit_Factorial(4) == 4\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef last_Digi...
{ "split": "test", "index": 249, "task_id": "Mbpp/577", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/578\", \"entry_point\": \"interleave_lists\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to interleave 3 lists of the same length into a single flat list.\\nassert interleave_lists([1,2,3,4,5,6,7],[10,20,30,40,50,60,70],[100,200,300,400,500,600,700])==[1, ...
{ "split": "test", "index": 250, "task_id": "Mbpp/578", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/579\", \"entry_point\": \"find_dissimilar\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the dissimilar elements in the given two tuples.\\nassert find_dissimilar((3, 4, 5, 6), (5, 7, 4, 10)) == (3, 6, 7, 10)\\n\\\"\\\"\\\"\\n\", \"canonical_solutio...
{ "split": "test", "index": 251, "task_id": "Mbpp/579", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/580\", \"entry_point\": \"extract_even\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to remove uneven elements in the nested mixed tuple.\\nassert extract_even((4, 5, (7, 6, (2, 4)), 6, 8)) == (4, (6, (2, 4)), 6, 8)\\n\\\"\\\"\\\"\\n\", \"canonical_solutio...
{ "split": "test", "index": 252, "task_id": "Mbpp/580", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/581\", \"entry_point\": \"surface_Area\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the surface area of a square pyramid with a given base edge and height.\\nassert surface_Area(3,4) == 33\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nd...
{ "split": "test", "index": 253, "task_id": "Mbpp/581", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/583\", \"entry_point\": \"catalan_number\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function which returns nth catalan number.\\nassert catalan_number(10)==16796\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef catalan_number(num):\\n if num <= 1:\\n ...
{ "split": "test", "index": 254, "task_id": "Mbpp/583", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/585\", \"entry_point\": \"expensive_items\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the n most expensive items in a given dataset.\\nassert expensive_items([{'name': 'Item-1', 'price': 101.1},{'name': 'Item-2', 'price': 555.22}],1)==[{'name': '...
{ "split": "test", "index": 255, "task_id": "Mbpp/585", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/586\", \"entry_point\": \"split_Arr\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to split a list at the nth eelment and add the first part to the end.\\nassert split_Arr([12,10,5,6,52,36],2) == [5,6,52,36,12,10]\\n\\\"\\\"\\\"\\n\", \"canonical_sol...
{ "split": "test", "index": 256, "task_id": "Mbpp/586", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/587\", \"entry_point\": \"list_tuple\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to convert a list to a tuple.\\nassert list_tuple([5, 10, 7, 4, 15, 3])==(5, 10, 7, 4, 15, 3)\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef list_tuple(listx):\\n re...
{ "split": "test", "index": 257, "task_id": "Mbpp/587", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/588\", \"entry_point\": \"big_diff\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the difference between largest and smallest value in a given list.\\nassert big_diff([1,2,3,4]) == 3\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef big_d...
{ "split": "test", "index": 258, "task_id": "Mbpp/588", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/589\", \"entry_point\": \"perfect_squares\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find perfect squares between two given numbers.\\nassert perfect_squares(1,30)==[1, 4, 9, 16, 25]\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nimport math\\ndef...
{ "split": "test", "index": 259, "task_id": "Mbpp/589", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/590\", \"entry_point\": \"polar_rect\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to convert polar coordinates to rectangular coordinates.\\nassert polar_rect(3,4)==((5.0, 0.9272952180016122), (-2+2.4492935982947064e-16j))\\n\\\"\\\"\\\"\\n\", \"canonical...
{ "split": "test", "index": 260, "task_id": "Mbpp/590", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/591\", \"entry_point\": \"swap_List\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to interchange the first and last elements in a list.\\nassert swap_List([12, 35, 9, 56, 24]) == [24, 35, 9, 56, 12]\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\n...
{ "split": "test", "index": 261, "task_id": "Mbpp/591", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/592\", \"entry_point\": \"sum_Of_product\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the sum of the product of consecutive binomial co-efficients.\\nassert sum_Of_product(3) == 15\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef binom...
{ "split": "test", "index": 262, "task_id": "Mbpp/592", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/593\", \"entry_point\": \"removezero_ip\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to remove leading zeroes from an ip address.\\nassert removezero_ip(\\\"216.08.094.196\\\")==('216.8.94.196')\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nimport re\...
{ "split": "test", "index": 263, "task_id": "Mbpp/593", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/594\", \"entry_point\": \"diff_even_odd\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the difference of the first even and first odd number of a given list.\\nassert diff_even_odd([1,3,5,7,4,1,6,8])==3\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \...
{ "split": "test", "index": 264, "task_id": "Mbpp/594", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/596\", \"entry_point\": \"tuple_size\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the size in bytes of the given tuple.\\nassert tuple_size((\\\"A\\\", 1, \\\"B\\\", 2, \\\"C\\\", 3) ) == sys.getsizeof((\\\"A\\\", 1, \\\"B\\\", 2, \\\"C\\\", 3))\\...
{ "split": "test", "index": 265, "task_id": "Mbpp/596", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/597\", \"entry_point\": \"find_kth\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find kth element from the given two sorted arrays.\\nassert find_kth([2, 3, 6, 7, 9], [1, 4, 8, 10], 5) == 6\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef find_kth(...
{ "split": "test", "index": 266, "task_id": "Mbpp/597", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/598\", \"entry_point\": \"armstrong_number\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check whether the given number is armstrong or not.\\nassert armstrong_number(153)==True\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef armstrong_number(numb...
{ "split": "test", "index": 267, "task_id": "Mbpp/598", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/599\", \"entry_point\": \"sum_average\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find sum and average of first n natural numbers.\\nassert sum_average(10)==(55, 5.5)\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef sum_average(number):\\n sum_...
{ "split": "test", "index": 268, "task_id": "Mbpp/599", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/600\", \"entry_point\": \"is_Even\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to check whether the given number is even or not.\\nassert is_Even(1) == False\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef is_Even(n) : \\n return n % 2 == ...
{ "split": "test", "index": 269, "task_id": "Mbpp/600", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/602\", \"entry_point\": \"first_repeated_char\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the first repeated character in a given string.\\nassert first_repeated_char(\\\"abcabc\\\") == \\\"a\\\"\\n\\\"\\\"\\\"\\n\", \"canonical_solution\"...
{ "split": "test", "index": 270, "task_id": "Mbpp/602", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/603\", \"entry_point\": \"get_ludic\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to get all lucid numbers smaller than or equal to a given integer.\\nassert get_ludic(10) == [1, 2, 3, 5, 7]\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef get_ludic(n...
{ "split": "test", "index": 271, "task_id": "Mbpp/603", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/604\", \"entry_point\": \"reverse_words\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to reverse words seperated by spaces in a given string.\\nassert reverse_words(\\\"python program\\\")==(\\\"program python\\\")\\n\\\"\\\"\\\"\\n\", \"canonical_solution...
{ "split": "test", "index": 272, "task_id": "Mbpp/604", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/605\", \"entry_point\": \"prime_num\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check if the given integer is a prime number.\\nassert prime_num(13)==True\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nimport math\\ndef prime_num(num):\\n if num <...
{ "split": "test", "index": 273, "task_id": "Mbpp/605", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/606\", \"entry_point\": \"radian_degree\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to convert degrees to radians.\\nassert radian_degree(90)==1.5707963267948966\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nimport math\\ndef radian_degree(degree):\\...
{ "split": "test", "index": 274, "task_id": "Mbpp/606", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/607\", \"entry_point\": \"find_literals\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to search a string for a regex pattern. The function should return the matching subtring, a start index and an end index.\\nassert find_literals('The quick brown fox jump...
{ "split": "test", "index": 275, "task_id": "Mbpp/607", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/608\", \"entry_point\": \"bell_Number\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find nth bell number.\\nassert bell_Number(2) == 2\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef bell_Number(n): \\n bell = [[0 for i in range(n+1)] fo...
{ "split": "test", "index": 276, "task_id": "Mbpp/608", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/610\", \"entry_point\": \"remove_kth_element\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function which takes a list and returns a list with the same elements, but the k'th element removed.\\nassert remove_kth_element([1,1,2,3,4,4,5,1],3)==[1, 1, 3, 4, 4, ...
{ "split": "test", "index": 277, "task_id": "Mbpp/610", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/611\", \"entry_point\": \"max_of_nth\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function which given a matrix represented as a list of lists returns the max of the n'th column.\\nassert max_of_nth([[5, 6, 7], [1, 3, 5], [8, 9, 19]], 2) == 19\\n\\\"\\\"\\\"\\n\",...
{ "split": "test", "index": 278, "task_id": "Mbpp/611", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/612\", \"entry_point\": \"merge\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function which takes a list of lists, where each sublist has two elements, and returns a list of two lists where the first list has the first element of each sublist and the second...
{ "split": "test", "index": 279, "task_id": "Mbpp/612", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/614\", \"entry_point\": \"cummulative_sum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the cumulative sum of all the values that are present in the given tuple list.\\nassert cummulative_sum([(1, 3), (5, 6, 7), (2, 6)]) == 30\\n\\\"\\\"\\\"\\n\", ...
{ "split": "test", "index": 280, "task_id": "Mbpp/614", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/615\", \"entry_point\": \"average_tuple\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function which takes a tuple of tuples and returns the average value for each tuple as a list.\\nassert average_tuple(((10, 10, 10, 12), (30, 45, 56, 45), (81, 80, 39, 32), (1, 2,...
{ "split": "test", "index": 281, "task_id": "Mbpp/615", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/616\", \"entry_point\": \"tuple_modulo\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function which takes two tuples of the same length and performs the element wise modulo.\\nassert tuple_modulo((10, 4, 5, 6), (5, 6, 7, 5)) == (0, 4, 5, 1)\\n\\\"\\\"\\\"\\n\", \"c...
{ "split": "test", "index": 282, "task_id": "Mbpp/616", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/618\", \"entry_point\": \"div_list\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to divide two lists element wise.\\nassert div_list([4,5,6],[1, 2, 3])==[4.0,2.5,2.0]\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef div_list(nums1,nums2):\\n result =...
{ "split": "test", "index": 283, "task_id": "Mbpp/618", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/619\", \"entry_point\": \"move_num\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to move all the numbers to the end of the given string.\\nassert move_num('I1love143you55three3000thousand') == 'Iloveyouthreethousand1143553000'\\n\\\"\\\"\\\"\\n\", \"canoni...
{ "split": "test", "index": 284, "task_id": "Mbpp/619", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/620\", \"entry_point\": \"largest_subset\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the size of the largest subset of a list of numbers so that every pair is divisible.\\nassert largest_subset([ 1, 3, 6, 13, 17, 18 ]) == 4\\n\\\"\\\"\\\"\\n\", \...
{ "split": "test", "index": 285, "task_id": "Mbpp/620", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/622\", \"entry_point\": \"get_median\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the median of two sorted lists of same size.\\nassert get_median([1, 12, 15, 26, 38], [2, 13, 17, 30, 45], 5) == 16.0\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"...
{ "split": "test", "index": 286, "task_id": "Mbpp/622", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/623\", \"entry_point\": \"nth_nums\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to compute the n-th power of each number in a list.\\nassert nth_nums([1, 2, 3, 4, 5, 6, 7, 8, 9, 10],2)==[1, 4, 9, 16, 25, 36, 49, 64, 81, 100]\\n\\\"\\\"\\\"\\n\", \"canonic...
{ "split": "test", "index": 287, "task_id": "Mbpp/623", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/624\", \"entry_point\": \"is_upper\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to convert a given string to uppercase.\\nassert is_upper(\\\"person\\\") ==\\\"PERSON\\\"\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef is_upper(string):\\n r...
{ "split": "test", "index": 288, "task_id": "Mbpp/624", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/626\", \"entry_point\": \"triangle_area\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the area of the largest triangle that can be inscribed in a semicircle with a given radius.\\nassert triangle_area(-1) == None\\n\\\"\\\"\\\"\\n\", \"canon...
{ "split": "test", "index": 289, "task_id": "Mbpp/626", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/628\", \"entry_point\": \"replace_spaces\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to replace all spaces in the given string with '%20'.\\nassert replace_spaces(\\\"My Name is Dawood\\\") == 'My%20Name%20is%20Dawood'\\n\\\"\\\"\\\"\\n\", \"canonical_so...
{ "split": "test", "index": 290, "task_id": "Mbpp/628", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/629\", \"entry_point\": \"Split\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find even numbers from a list of numbers.\\nassert Split([1,2,3,4,5]) == [2,4]\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef Split(l): \\n return [num for nu...
{ "split": "test", "index": 291, "task_id": "Mbpp/629", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/630\", \"entry_point\": \"get_coordinates\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to extract all the adjacent coordinates of the given coordinate tuple.\\nassert get_coordinates((3, 4)) == [[2, 3], [2, 4], [2, 5], [3, 3], [3, 4], [3, 5], [4, 3], [4, ...
{ "split": "test", "index": 292, "task_id": "Mbpp/630", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/631\", \"entry_point\": \"replace_spaces\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to replace whitespaces with an underscore and vice versa in a given string.\\nassert replace_spaces('Jumanji The Jungle') == 'Jumanji_The_Jungle'\\n\\\"\\\"\\\"\\n\", \"...
{ "split": "test", "index": 293, "task_id": "Mbpp/631", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/632\", \"entry_point\": \"move_zero\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to move all zeroes to the end of the given list.\\nassert move_zero([1,0,2,0,3,4]) == [1,2,3,4,0,0]\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef move_zero(num...
{ "split": "test", "index": 294, "task_id": "Mbpp/632", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/633\", \"entry_point\": \"pair_xor_Sum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the sum of xor of all pairs of numbers in the given list.\\nassert pair_xor_Sum([5,9,7,6],4) == 47\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef pai...
{ "split": "test", "index": 295, "task_id": "Mbpp/633", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/635\", \"entry_point\": \"heap_sort\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to sort the given list.\\nassert heap_sort([1, 3, 5, 7, 9, 2, 4, 6, 8, 0])==[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nimport heapq as h...
{ "split": "test", "index": 296, "task_id": "Mbpp/635", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/637\", \"entry_point\": \"noprofit_noloss\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check whether the given amount has no profit and no loss\\nassert noprofit_noloss(1500,1200)==False\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef noprofit_no...
{ "split": "test", "index": 297, "task_id": "Mbpp/637", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/638\", \"entry_point\": \"wind_chill\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to calculate the wind chill index rounded to the next integer given the wind velocity in km/h and a temperature in celsius.\\nassert wind_chill(120,35)==40\\n\\\"\\\"\\\"\\n...
{ "split": "test", "index": 298, "task_id": "Mbpp/638", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/639\", \"entry_point\": \"sample_nam\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to sum the length of the names of a given list of names after removing the names that start with a lowercase letter.\\nassert sample_nam(['sally', 'Dylan', 'rebecca', 'Diana...
{ "split": "test", "index": 299, "task_id": "Mbpp/639", "dataset": "evalplus/mbppplus" }