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/274\", \"entry_point\": \"even_binomial_Coeff_Sum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function that takes in a positive integer n and finds the sum of even index binomial coefficients.\\nassert even_binomial_Coeff_Sum(4) == 8\\n\\\"\\\"\\\"\\n\", \...
{ "split": "test", "index": 136, "task_id": "Mbpp/274", "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/276\", \"entry_point\": \"volume_cylinder\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that takes in the radius and height of a cylinder and returns the the volume.\\nassert math.isclose(volume_cylinder(10,5), 1570.7500000000002, rel_tol=0.001)\\n\\\"\\\"...
{ "split": "test", "index": 137, "task_id": "Mbpp/276", "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/277\", \"entry_point\": \"dict_filter\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that takes in a dictionary and integer n and filters the dictionary to only include entries with values greater than or equal to n.\\nassert dict_filter({'Cierra Vega': 175...
{ "split": "test", "index": 138, "task_id": "Mbpp/277", "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/278\", \"entry_point\": \"count_first_elements\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the number of elements that occurs before the tuple element in the given tuple.\\nassert count_first_elements((1, 5, 7, (4, 6), 10) ) == 3\\n\\\"\\\"\\\"\\...
{ "split": "test", "index": 139, "task_id": "Mbpp/278", "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/279\", \"entry_point\": \"is_num_decagonal\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the nth decagonal number.\\nassert is_num_decagonal(3) == 27\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef is_num_decagonal(n): \\n\\treturn 4 * n * n ...
{ "split": "test", "index": 140, "task_id": "Mbpp/279", "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/280\", \"entry_point\": \"sequential_search\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that takes in an array and element and returns a tuple containing a boolean that indicates if the element is in the array and the index position of the element (or -1...
{ "split": "test", "index": 141, "task_id": "Mbpp/280", "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/281\", \"entry_point\": \"all_unique\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to check if the elements of a given list are unique or not.\\nassert all_unique([1,2,3]) == True\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef all_unique(test...
{ "split": "test", "index": 142, "task_id": "Mbpp/281", "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/282\", \"entry_point\": \"sub_list\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to subtract two lists element-wise.\\nassert sub_list([1, 2, 3],[4,5,6])==[-3,-3,-3]\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef sub_list(nums1,nums2):\\n return [n...
{ "split": "test", "index": 143, "task_id": "Mbpp/282", "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/283\", \"entry_point\": \"validate\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function takes in an integer and check whether the frequency of each digit in the integer is less than or equal to the digit itself.\\nassert validate(1234) == True\\n\\\"\\\"\\...
{ "split": "test", "index": 144, "task_id": "Mbpp/283", "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/284\", \"entry_point\": \"check_element\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that takes in a list and element and checks whether all items in the list are equal to the given element.\\nassert check_element([\\\"green\\\", \\\"orange\\\", \\\"black...
{ "split": "test", "index": 145, "task_id": "Mbpp/284", "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/285\", \"entry_point\": \"text_match_two_three\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that checks whether a string contains the 'a' character followed by two or three 'b' characters.\\nassert text_match_two_three(\\\"ac\\\")==(False)\\n\\\"\\\"\\\"\...
{ "split": "test", "index": 146, "task_id": "Mbpp/285", "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/286\", \"entry_point\": \"max_sub_array_sum_repeated\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the largest sum of a contiguous array in the modified array which is formed by repeating the given array k times.\\nassert max_sub_array_sum_repeated...
{ "split": "test", "index": 147, "task_id": "Mbpp/286", "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/287\", \"entry_point\": \"square_Sum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function takes in an integer n and returns the sum of squares of first n even natural numbers.\\nassert square_Sum(2) == 20\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nd...
{ "split": "test", "index": 148, "task_id": "Mbpp/287", "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/290\", \"entry_point\": \"max_length\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the list of maximum length in a list of lists.\\nassert max_length([[0], [1, 3], [5, 7], [9, 11], [13, 15, 17]])==(3, [13, 15, 17])\\n\\\"\\\"\\\"\\n\", \"canonical_...
{ "split": "test", "index": 149, "task_id": "Mbpp/290", "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/292\", \"entry_point\": \"find\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find quotient of two numbers (rounded down to the nearest integer).\\nassert find(10,3) == 3\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef find(n,m): \\n ret...
{ "split": "test", "index": 150, "task_id": "Mbpp/292", "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/293\", \"entry_point\": \"otherside_rightangle\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the third side of a right angled triangle.\\nassert otherside_rightangle(7,8)==10.63014581273465\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nimport m...
{ "split": "test", "index": 151, "task_id": "Mbpp/293", "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/294\", \"entry_point\": \"max_val\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the maximum value in a given heterogeneous list.\\nassert max_val(['Python', 3, 2, 4, 5, 'version'])==5\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef max_val(li...
{ "split": "test", "index": 152, "task_id": "Mbpp/294", "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/296\", \"entry_point\": \"get_Inv_Count\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to count inversions in an array.\\nassert get_Inv_Count([1,20,6,4,5]) == 5\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef get_Inv_Count(arr): \\n # consi...
{ "split": "test", "index": 153, "task_id": "Mbpp/296", "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/297\", \"entry_point\": \"flatten_list\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to flatten a given nested list structure.\\nassert flatten_list([0, 10, [20, 30], 40, 50, [60, 70, 80], [90, 100, 110, 120]])==[0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100,...
{ "split": "test", "index": 154, "task_id": "Mbpp/297", "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/299\", \"entry_point\": \"max_aggregate\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to calculate the maximum aggregate from the list of tuples.\\nassert max_aggregate([('Juan Whelan',90),('Sabah Colley',88),('Peter Nichols',7),('Juan Whelan',122),('Sabah...
{ "split": "test", "index": 155, "task_id": "Mbpp/299", "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/300\", \"entry_point\": \"count_binary_seq\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the count of all binary sequences of length 2n such that sum of first n bits is same as sum of last n bits.\\nassert math.isclose(count_binary_seq(1), 2.0, rel...
{ "split": "test", "index": 156, "task_id": "Mbpp/300", "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/301\", \"entry_point\": \"dict_depth\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the depth of a dictionary.\\nassert dict_depth({'a':1, 'b': {'c': {'d': {}}}})==4\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef dict_depth_aux(d):\\n if i...
{ "split": "test", "index": 157, "task_id": "Mbpp/301", "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/305\", \"entry_point\": \"start_withp\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to return two words from a list of words starting with letter 'p'.\\nassert start_withp([\\\"Python PHP\\\", \\\"Java JavaScript\\\", \\\"c c++\\\"])==('Python', 'PHP')\\n\...
{ "split": "test", "index": 158, "task_id": "Mbpp/305", "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/306\", \"entry_point\": \"max_sum_increasing_subseq\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the maximum sum of increasing subsequence from prefix until ith index and also including a given kth element which is after i, i.e., k > i .\\nassert ...
{ "split": "test", "index": 159, "task_id": "Mbpp/306", "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/308\", \"entry_point\": \"large_product\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the specified number of largest products from two given lists, selecting one factor from each list.\\nassert large_product([1, 2, 3, 4, 5, 6],[3, 6, 8, 9, 10, 6],...
{ "split": "test", "index": 160, "task_id": "Mbpp/308", "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/309\", \"entry_point\": \"maximum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the maximum of two numbers.\\nassert maximum(5,10) == 10\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef maximum(a,b): \\n return max(a, b)\\n\", \"ba...
{ "split": "test", "index": 161, "task_id": "Mbpp/309", "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/310\", \"entry_point\": \"string_to_tuple\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to convert a given string to a tuple of characters.\\nassert string_to_tuple(\\\"python 3.0\\\")==('p', 'y', 't', 'h', 'o', 'n', '3', '.', '0')\\n\\\"\\\"\\\"\\n\", \"c...
{ "split": "test", "index": 162, "task_id": "Mbpp/310", "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/311\", \"entry_point\": \"set_left_most_unset_bit\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to set the left most unset bit.\\nassert set_left_most_unset_bit(10) == 14\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef set_left_most_unset_bit(...
{ "split": "test", "index": 163, "task_id": "Mbpp/311", "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/312\", \"entry_point\": \"volume_cone\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the volume of a cone.\\nassert math.isclose(volume_cone(5,12), 314.15926535897927, rel_tol=0.001)\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nimport math\\nde...
{ "split": "test", "index": 164, "task_id": "Mbpp/312", "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/388\", \"entry_point\": \"highest_Power_of_2\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the highest power of 2 that is less than or equal to n.\\nassert highest_Power_of_2(10) == 8\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef hig...
{ "split": "test", "index": 165, "task_id": "Mbpp/388", "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/389\", \"entry_point\": \"find_lucas\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the n'th lucas number.\\nassert find_lucas(9) == 76\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef find_lucas(n): \\n\\tif (n == 0): \\n\\t\\treturn 2\\n\\tif...
{ "split": "test", "index": 166, "task_id": "Mbpp/389", "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/390\", \"entry_point\": \"add_string\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to apply a given format string to all of the elements in a list.\\nassert add_string([1,2,3,4],'temp{0}')==['temp1', 'temp2', 'temp3', 'temp4']\\n\\\"\\\"\\\"\\n\", \"canoni...
{ "split": "test", "index": 167, "task_id": "Mbpp/390", "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/391\", \"entry_point\": \"convert_list_dictionary\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to convert more than one list to nested dictionary.\\nassert convert_list_dictionary([\\\"S001\\\", \\\"S002\\\", \\\"S003\\\", \\\"S004\\\"],[\\\"Adina Park\\\...
{ "split": "test", "index": 168, "task_id": "Mbpp/391", "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/392\", \"entry_point\": \"get_max_sum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the maximum sum possible by using the given equation f(n) = max( (f(n/2) + f(n/3) + f(n/4) + f(n/5)), n).\\nassert get_max_sum(60) == 106\\n\\\"\\\"\\\"\\n\", \"can...
{ "split": "test", "index": 169, "task_id": "Mbpp/392", "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/394\", \"entry_point\": \"check_distinct\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check if given tuple contains no duplicates.\\nassert check_distinct((1, 4, 5, 6, 1, 4)) == False\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef check_distinct...
{ "split": "test", "index": 170, "task_id": "Mbpp/394", "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/395\", \"entry_point\": \"first_non_repeating_character\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the first non-repeated character in a given string.\\nassert first_non_repeating_character(\\\"abcabc\\\") == None\\n\\\"\\\"\\\"\\n\", \"c...
{ "split": "test", "index": 171, "task_id": "Mbpp/395", "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/397\", \"entry_point\": \"median_numbers\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the median of three numbers.\\nassert median_numbers(25,55,65)==55.0\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef median_numbers(a,b,c):\\n return so...
{ "split": "test", "index": 172, "task_id": "Mbpp/397", "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/398\", \"entry_point\": \"sum_of_digits\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to compute the sum of digits of each number of a given list.\\nassert sum_of_digits([10,2,56])==14\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef sum_of_digits(num...
{ "split": "test", "index": 173, "task_id": "Mbpp/398", "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/404\", \"entry_point\": \"minimum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the minimum of two numbers.\\nassert minimum(1,2) == 1\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef minimum(a,b): \\n return min(a,b)\\n\", \"base_...
{ "split": "test", "index": 174, "task_id": "Mbpp/404", "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/405\", \"entry_point\": \"check_tuplex\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check whether an element exists within a tuple.\\nassert check_tuplex((\\\"w\\\", 3, \\\"r\\\", \\\"e\\\", \\\"s\\\", \\\"o\\\", \\\"u\\\", \\\"r\\\", \\\"c\\\", \\\"e\...
{ "split": "test", "index": 175, "task_id": "Mbpp/405", "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/406\", \"entry_point\": \"find_Parity\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find whether the parity of a given number is odd.\\nassert find_Parity(12) == False\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef find_Parity(x): \\n r...
{ "split": "test", "index": 176, "task_id": "Mbpp/406", "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/409\", \"entry_point\": \"min_product_tuple\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the minimum product from the pairs of tuples within a given list.\\nassert min_product_tuple([(2, 7), (2, 6), (1, 8), (4, 9)] )==8\\n\\\"\\\"\\\"\\n\", \"cano...
{ "split": "test", "index": 177, "task_id": "Mbpp/409", "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/410\", \"entry_point\": \"min_val\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the minimum value in a given heterogeneous list.\\nassert min_val(['Python', 3, 2, 4, 5, 'version'])==2\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef min_val(li...
{ "split": "test", "index": 178, "task_id": "Mbpp/410", "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/412\", \"entry_point\": \"remove_odd\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to remove odd numbers from a given list.\\nassert remove_odd([1,2,3]) == [2]\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef remove_odd(l):\\n return [i for ...
{ "split": "test", "index": 179, "task_id": "Mbpp/412", "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/413\", \"entry_point\": \"extract_nth_element\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to extract the nth element from a given list of tuples.\\nassert extract_nth_element([('Greyson Fulton', 98, 99), ('Brady Kent', 97, 96), ('Wyatt Knott', 91, 94), (...
{ "split": "test", "index": 180, "task_id": "Mbpp/413", "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/414\", \"entry_point\": \"overlapping\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to check whether any value in a sequence exists in a sequence or not.\\nassert overlapping([1,2,3,4,5],[6,7,8,9]) == False\\n\\\"\\\"\\\"\\n\", \"canonical_solution\...
{ "split": "test", "index": 181, "task_id": "Mbpp/414", "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/415\", \"entry_point\": \"max_Product\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find a pair with highest product from a given array of integers.\\nassert max_Product([1,2,3,4,7,0,8,4]) == (7,8)\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\...
{ "split": "test", "index": 182, "task_id": "Mbpp/415", "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/418\", \"entry_point\": \"Find_Max\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the element of a list having maximum length.\\nassert Find_Max([['A'],['A','B'],['A','B','C']]) == ['A','B','C']\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"...
{ "split": "test", "index": 183, "task_id": "Mbpp/418", "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/419\", \"entry_point\": \"round_and_sum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to round every number of a given list of numbers and print the total sum multiplied by the length of the list.\\nassert round_and_sum([22.4, 4.0, -16.22, -9.10, 11.00, -1...
{ "split": "test", "index": 184, "task_id": "Mbpp/419", "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/420\", \"entry_point\": \"cube_Sum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the cube sum of first n even natural numbers.\\nassert cube_Sum(2) == 72\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef cube_Sum(n): \\n return 2 * (n...
{ "split": "test", "index": 185, "task_id": "Mbpp/420", "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/421\", \"entry_point\": \"concatenate_tuple\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to concatenate each element of tuple by the delimiter.\\nassert concatenate_tuple((\\\"ID\\\", \\\"is\\\", 4, \\\"UTS\\\") ) == 'ID-is-4-UTS'\\n\\\"\\\"\\\"\\n\", \"c...
{ "split": "test", "index": 186, "task_id": "Mbpp/421", "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/422\", \"entry_point\": \"find_Average_Of_Cube\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the average of cubes of first n natural numbers.\\nassert find_Average_Of_Cube(2) == 4.5\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef find_...
{ "split": "test", "index": 187, "task_id": "Mbpp/422", "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/424\", \"entry_point\": \"extract_rear\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to extract only the rear index element of each string in the given tuple.\\nassert extract_rear(('Mers', 'for', 'Vers') ) == ['s', 'r', 's']\\n\\\"\\\"\\\"\\n\", \"canonic...
{ "split": "test", "index": 188, "task_id": "Mbpp/424", "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/425\", \"entry_point\": \"count_element_in_list\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to count the number of sublists containing a particular element.\\nassert count_element_in_list([[1, 3], [5, 7], [1, 11], [1, 15, 7]],1)==3\\n\\\"\\\"\\\"\\n\", \...
{ "split": "test", "index": 189, "task_id": "Mbpp/425", "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/426\", \"entry_point\": \"filter_oddnumbers\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to filter odd numbers.\\nassert filter_oddnumbers([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])==[1,3,5,7,9]\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef filter_oddnumber...
{ "split": "test", "index": 190, "task_id": "Mbpp/426", "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/427\", \"entry_point\": \"change_date_format\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to convert a date of yyyy-mm-dd format to dd-mm-yyyy format.\\nassert change_date_format(\\\"2026-01-02\\\") == '02-01-2026'\\n\\\"\\\"\\\"\\n\", \"canonical_solutio...
{ "split": "test", "index": 191, "task_id": "Mbpp/427", "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/428\", \"entry_point\": \"shell_sort\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to sort the given array by using shell sort.\\nassert shell_sort([12, 23, 4, 5, 3, 2, 12, 81, 56, 95]) == [2, 3, 4, 5, 12, 12, 23, 56, 81, 95]\\n\\\"\\\"\\\"\\n\", \"canonic...
{ "split": "test", "index": 192, "task_id": "Mbpp/428", "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/429\", \"entry_point\": \"and_tuples\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to extract the elementwise and tuples from the given two tuples.\\nassert and_tuples((10, 4, 6, 9), (5, 2, 3, 3)) == (0, 0, 2, 1)\\n\\\"\\\"\\\"\\n\", \"canonical_solution\"...
{ "split": "test", "index": 193, "task_id": "Mbpp/429", "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/430\", \"entry_point\": \"parabola_directrix\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the directrix of a parabola.\\nassert parabola_directrix(5,3,2)==-198\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef parabola_directrix(a, b, c): \\n ...
{ "split": "test", "index": 194, "task_id": "Mbpp/430", "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/432\", \"entry_point\": \"median_trapezium\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the median length of a trapezium.\\nassert median_trapezium(15,25,35)==20\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef median_trapezium(base1,base2,he...
{ "split": "test", "index": 195, "task_id": "Mbpp/432", "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/433\", \"entry_point\": \"check_greater\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check whether the entered number is greater than the elements of the given array.\\nassert check_greater([1, 2, 3, 4, 5], 4) == False\\n\\\"\\\"\\\"\\n\", \"canonical_...
{ "split": "test", "index": 196, "task_id": "Mbpp/433", "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/435\", \"entry_point\": \"last_Digit\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the last digit of a given number.\\nassert last_Digit(123) == 3\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef last_Digit(n) :\\n if n < 0: \\n ...
{ "split": "test", "index": 197, "task_id": "Mbpp/435", "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/436\", \"entry_point\": \"neg_nos\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to return the negative numbers in a list.\\nassert neg_nos([-1,4,5,-6]) == [-1,-6]\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef neg_nos(list1):\\n return [i fo...
{ "split": "test", "index": 198, "task_id": "Mbpp/436", "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/437\", \"entry_point\": \"remove_odd\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to remove odd characters in a string.\\nassert remove_odd(\\\"python\\\")==(\\\"yhn\\\")\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef remove_odd(str1):\\n return...
{ "split": "test", "index": 199, "task_id": "Mbpp/437", "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/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" }