data_source
stringclasses
2 values
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/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" }
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/641\", \"entry_point\": \"is_nonagonal\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the nth nonagonal number.\\nassert is_nonagonal(10) == 325\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef is_nonagonal(n): \\n\\treturn int(n * (7 * n - 5) ...
{ "split": "test", "index": 300, "task_id": "Mbpp/641", "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/643\", \"entry_point\": \"text_match_wordz_middle\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that checks if a strings contains 'z', except at the start and end of the word.\\nassert text_match_wordz_middle(\\\"pythonzabc.\\\")==True\\n\\\"\\\"\\\"\\n\",...
{ "split": "test", "index": 301, "task_id": "Mbpp/643", "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/644\", \"entry_point\": \"reverse_Array_Upto_K\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to reverse an array upto a given position.\\nassert reverse_Array_Upto_K([1, 2, 3, 4, 5, 6],4) == [4, 3, 2, 1, 5, 6]\\n\\\"\\\"\\\"\\n\", \"canonical_soluti...
{ "split": "test", "index": 302, "task_id": "Mbpp/644", "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/720\", \"entry_point\": \"add_dict_to_tuple\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to add a dictionary to the tuple. The output should be a tuple.\\nassert add_dict_to_tuple((4, 5, 6), {\\\"MSAM\\\" : 1, \\\"is\\\" : 2, \\\"best\\\" : 3} ) == (4, 5,...
{ "split": "test", "index": 303, "task_id": "Mbpp/720", "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/721\", \"entry_point\": \"maxAverageOfPath\", \"prompt\": \"\\\"\\\"\\\"\\nGiven a square matrix of size N*N given as a list of lists, where each cell is associated with a specific cost. A path is defined as a specific sequence of cells that starts from the t...
{ "split": "test", "index": 304, "task_id": "Mbpp/721", "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/722\", \"entry_point\": \"filter_data\", \"prompt\": \"\\\"\\\"\\\"\\nThe input is given as - a dictionary with a student name as a key and a tuple of float (student_height, student_weight) as a value, - minimal height, - minimal weight. Write a function to f...
{ "split": "test", "index": 305, "task_id": "Mbpp/722", "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/723\", \"entry_point\": \"count_same_pair\", \"prompt\": \"\\\"\\\"\\\"\\nThe input is defined as two lists of the same length. Write a function to count indices where the lists have the same values.\\nassert count_same_pair([1, 2, 3, 4, 5, 6, 7, 8],[2, 2, 3,...
{ "split": "test", "index": 306, "task_id": "Mbpp/723", "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/724\", \"entry_point\": \"power_base_sum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that takes base and power as arguments and calculate the sum of all digits of the base to the specified power.\\nassert power_base_sum(2,100)==115\\n\\\"\\\"\\\"\\n\", \...
{ "split": "test", "index": 307, "task_id": "Mbpp/724", "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/725\", \"entry_point\": \"extract_quotation\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to extract values between quotation marks \\\" \\\" of the given string.\\nassert extract_quotation('Cortex \\\"A53\\\" Based \\\"multi\\\" tasking \\\"Processor\\\"'...
{ "split": "test", "index": 308, "task_id": "Mbpp/725", "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/726\", \"entry_point\": \"multiply_elements\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that takes as input a tuple of numbers (t_1,...,t_{N+1}) and returns a tuple of length N where the i-th element of the tuple is equal to t_i * t_{i+1}.\\nassert multi...
{ "split": "test", "index": 309, "task_id": "Mbpp/726", "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/728\", \"entry_point\": \"sum_list\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function takes as input two lists [a_1,...,a_n], [b_1,...,b_n] and returns [a_1+b_1,...,a_n+b_n].\\nassert sum_list([10,20,30],[15,25,35])==[25,45,65]\\n\\\"\\\"\\\"\\n\", \"canonical_...
{ "split": "test", "index": 310, "task_id": "Mbpp/728", "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/730\", \"entry_point\": \"consecutive_duplicates\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to remove consecutive duplicates of a given list.\\nassert consecutive_duplicates([0, 0, 1, 2, 3, 4, 4, 5, 6, 6, 6, 7, 8, 9, 4, 4 ])==[0, 1, 2, 3, 4, 5, 6, 7, 8,...
{ "split": "test", "index": 311, "task_id": "Mbpp/730", "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/731\", \"entry_point\": \"lateralsurface_cone\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the lateral surface area of a cone given radius r and the height h.\\nassert lateralsurface_cone(5,12)==204.20352248333654\\n\\\"\\\"\\\"\\n\", \"canonical_...
{ "split": "test", "index": 312, "task_id": "Mbpp/731", "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/732\", \"entry_point\": \"replace_specialchar\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to replace all occurrences of spaces, commas, or dots with a colon.\\nassert replace_specialchar('Python language, Programming language.')==('Python:language::Progr...
{ "split": "test", "index": 313, "task_id": "Mbpp/732", "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/733\", \"entry_point\": \"find_first_occurrence\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the index of the first occurrence of a given number in a sorted array.\\nassert find_first_occurrence([2, 5, 5, 5, 6, 6, 8, 9, 9, 9], 5) == 1\\n\\\"\\\"\\...
{ "split": "test", "index": 314, "task_id": "Mbpp/733", "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/734\", \"entry_point\": \"sum_Of_Subarray_Prod\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find sum of products of all possible sublists of a given list. \\nassert sum_Of_Subarray_Prod([1,2,3]) == 20\\n\\\"\\\"\\\"\\n\", \"canonical_solution\":...
{ "split": "test", "index": 315, "task_id": "Mbpp/734", "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/735\", \"entry_point\": \"toggle_middle_bits\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to toggle bits of the number except the first and the last bit. \\nassert toggle_middle_bits(9) == 15\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef to...
{ "split": "test", "index": 316, "task_id": "Mbpp/735", "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/736\", \"entry_point\": \"left_insertion\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to locate the left insertion point for a specified value in sorted order. \\nassert left_insertion([1,2,4,5],6)==4\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nimpo...
{ "split": "test", "index": 317, "task_id": "Mbpp/736", "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/737\", \"entry_point\": \"check_str\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check whether the given string is starting with a vowel or not using regex.\\nassert check_str(\\\"annie\\\")\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nimport re \...
{ "split": "test", "index": 318, "task_id": "Mbpp/737", "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/739\", \"entry_point\": \"find_Index\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the index of smallest triangular number with n digits. \\nassert find_Index(2) == 4\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nimport math \\ndef find_...
{ "split": "test", "index": 319, "task_id": "Mbpp/739", "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/740\", \"entry_point\": \"tuple_to_dict\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to convert the given tuple to a key-value dictionary using adjacent elements. \\nassert tuple_to_dict((1, 5, 7, 10, 13, 5)) == {1: 5, 7: 10, 13: 5}\\n\\\"\\\"\\\"\\n\", \...
{ "split": "test", "index": 320, "task_id": "Mbpp/740", "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/741\", \"entry_point\": \"all_Characters_Same\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to check whether all the characters are same or not.\\nassert all_Characters_Same(\\\"python\\\") == False\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\n...
{ "split": "test", "index": 321, "task_id": "Mbpp/741", "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/742\", \"entry_point\": \"area_tetrahedron\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to caluclate the area of a tetrahedron.\\nassert area_tetrahedron(3)==15.588457268119894\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nimport math\\ndef area_tetra...
{ "split": "test", "index": 322, "task_id": "Mbpp/742", "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/743\", \"entry_point\": \"rotate_right\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to rotate a given list by specified number of items to the right direction. \\nassert rotate_right([1, 2, 3, 4, 5, 6, 7, 8, 9, 10],3)==[8, 9, 10, 1, 2, 3, 4, 5, 6, 7]\\n\\...
{ "split": "test", "index": 323, "task_id": "Mbpp/743", "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/744\", \"entry_point\": \"check_none\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check if the given tuple has any none value or not.\\nassert check_none((10, 4, 5, 6, None)) == True\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef check_none(test...
{ "split": "test", "index": 324, "task_id": "Mbpp/744", "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/745\", \"entry_point\": \"divisible_by_digits\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find numbers within a given range from startnum ti endnum where every number is divisible by every digit it contains. \\nassert divisible_by_digits(1,22)==[1, 2,...
{ "split": "test", "index": 325, "task_id": "Mbpp/745", "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/748\", \"entry_point\": \"capital_words_spaces\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to put spaces between words starting with capital letters in a given string.\\nassert capital_words_spaces(\\\"Python\\\") == 'Python'\\n\\\"\\\"\\\"\\n\", \"canon...
{ "split": "test", "index": 326, "task_id": "Mbpp/748", "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/749\", \"entry_point\": \"sort_numeric_strings\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to sort a given list of strings of numbers numerically. \\nassert sort_numeric_strings( ['4','12','45','7','0','100','200','-12','-500'])==[-500, -12, 0, 4, 7, 12,...
{ "split": "test", "index": 327, "task_id": "Mbpp/749", "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/750\", \"entry_point\": \"add_tuple\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to add the given tuple to the given list.\\nassert add_tuple([5, 6, 7], (9, 10)) == [5, 6, 7, 9, 10]\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef add_tuple(test_list...
{ "split": "test", "index": 328, "task_id": "Mbpp/750", "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/751\", \"entry_point\": \"check_min_heap\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check if the given array represents min heap or not. \\nassert check_min_heap([1, 2, 3, 4, 5, 6]) == True\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef check_...
{ "split": "test", "index": 329, "task_id": "Mbpp/751", "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/752\", \"entry_point\": \"jacobsthal_num\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the nth jacobsthal number. 0, 1, 1, 3, 5, 11, 21, 43, 85, 171, 341, 683, 1365, 2731, ...\\nassert jacobsthal_num(5) == 11\\n\\\"\\\"\\\"\\n\", \"canonical_solut...
{ "split": "test", "index": 330, "task_id": "Mbpp/752", "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/753\", \"entry_point\": \"min_k\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find minimum k records from tuple list. - in this case a verbatim copy of test cases\\nassert min_k([('Manjeet', 10), ('Akshat', 4), ('Akash', 2), ('Nikhil', 8)], 2) == [('Ak...
{ "split": "test", "index": 331, "task_id": "Mbpp/753", "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/754\", \"entry_point\": \"extract_index_list\", \"prompt\": \"\\\"\\\"\\\"\\nWe say that an element is common for lists l1, l2, l3 if it appears in all three lists under the same index. Write a function to find common elements from three lists. The function s...
{ "split": "test", "index": 332, "task_id": "Mbpp/754", "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/755\", \"entry_point\": \"second_smallest\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the second smallest number in a list.\\nassert second_smallest([1, 2, -8, -2, 0, -2])==-2\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef second_smallest(...
{ "split": "test", "index": 333, "task_id": "Mbpp/755", "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/757\", \"entry_point\": \"count_reverse_pairs\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to count the pairs of reverse strings in the given string list. \\nassert count_reverse_pairs([\\\"julia\\\", \\\"best\\\", \\\"tseb\\\", \\\"for\\\", \\\"ailuj\\\"...
{ "split": "test", "index": 334, "task_id": "Mbpp/757", "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/758\", \"entry_point\": \"unique_sublists\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to count lists within a list. The function should return a dictionary where every list is converted to a tuple and the value of such tuple is the number of its occurenc...
{ "split": "test", "index": 335, "task_id": "Mbpp/758", "dataset": "evalplus/mbppplus" }