data_source
stringclasses
1 value
prompt
listlengths
2
2
ability
stringclasses
1 value
reward_model
dict
extra_info
dict
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/2\", \"entry_point\": \"similar_elements\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the shared elements from the given two lists.\\nassert set(similar_elements((3, 4, 5, 6),(5, 7, 4, 10))) == set((4, 5))\\n\\\"\\\"\\\"\\n\", \"canonical_solution...
{ "split": "test", "index": 0, "task_id": "Mbpp/2", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/3\", \"entry_point\": \"is_not_prime\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to identify non-prime numbers.\\nassert is_not_prime(2) == False\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nimport math\\ndef is_not_prime(n):\\n if n == 1:...
{ "split": "test", "index": 1, "task_id": "Mbpp/3", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/4\", \"entry_point\": \"heap_queue_largest\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the n largest integers from a given list of numbers, returned in descending order.\\nassert heap_queue_largest( [25, 35, 22, 85, 14, 65, 75, 22, 58],3)==[85, 7...
{ "split": "test", "index": 2, "task_id": "Mbpp/4", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/6\", \"entry_point\": \"differ_At_One_Bit_Pos\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to check whether the two numbers differ at one bit position only or not.\\nassert differ_At_One_Bit_Pos(13,9) == True\\n\\\"\\\"\\\"\\n\", \"canonical_soluti...
{ "split": "test", "index": 3, "task_id": "Mbpp/6", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/7\", \"entry_point\": \"find_char_long\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find all words which are at least 4 characters long in a string.\\nassert set(find_char_long('Please move back to stream')) == set(['Please', 'move', 'back', 'stream'])...
{ "split": "test", "index": 4, "task_id": "Mbpp/7", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/8\", \"entry_point\": \"square_nums\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find squares of individual elements in a list.\\nassert square_nums([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])==[1, 4, 9, 16, 25, 36, 49, 64, 81, 100]\\n\\\"\\\"\\\"\\n\", \"canonic...
{ "split": "test", "index": 5, "task_id": "Mbpp/8", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/9\", \"entry_point\": \"find_Rotations\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the minimum number of rotations (greater than 0) required to get the same string.\\nassert find_Rotations(\\\"aaaa\\\") == 1\\n\\\"\\\"\\\"\\n\", \"canonica...
{ "split": "test", "index": 6, "task_id": "Mbpp/9", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/11\", \"entry_point\": \"remove_Occ\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to remove first and last occurrence of a given character from the string.\\nassert remove_Occ(\\\"hello\\\",\\\"l\\\") == \\\"heo\\\"\\n\\\"\\\"\\\"\\n\", \"canonical_...
{ "split": "test", "index": 7, "task_id": "Mbpp/11", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/12\", \"entry_point\": \"sort_matrix\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to sort a given matrix in ascending order according to the sum of its rows.\\nassert sort_matrix([[1, 2, 3], [2, 4, 5], [1, 1, 1]])==[[1, 1, 1], [1, 2, 3], [2, 4, 5]]\\n\\\"...
{ "split": "test", "index": 8, "task_id": "Mbpp/12", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/14\", \"entry_point\": \"find_Volume\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the volume of a triangular prism.\\nassert find_Volume(10,8,6) == 240\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef find_Volume(l,b,h) : \\n return...
{ "split": "test", "index": 9, "task_id": "Mbpp/14", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/16\", \"entry_point\": \"text_lowercase_underscore\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to that returns true if the input string contains sequences of lowercase letters joined with an underscore and false otherwise.\\nassert text_lowercase_undersc...
{ "split": "test", "index": 10, "task_id": "Mbpp/16", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/17\", \"entry_point\": \"square_perimeter\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that returns the perimeter of a square given its side length as input.\\nassert square_perimeter(10)==40\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef square_pe...
{ "split": "test", "index": 11, "task_id": "Mbpp/17", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/18\", \"entry_point\": \"remove_dirty_chars\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to remove characters from the first string which are present in the second string.\\nassert remove_dirty_chars(\\\"probasscurve\\\", \\\"pros\\\") == 'bacuve'\\n\\\"\...
{ "split": "test", "index": 12, "task_id": "Mbpp/18", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/19\", \"entry_point\": \"test_duplicate\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find whether a given array of integers contains any duplicate element.\\nassert test_duplicate(([1,2,3,4,5]))==False\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\n...
{ "split": "test", "index": 13, "task_id": "Mbpp/19", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/20\", \"entry_point\": \"is_woodall\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check if the given number is woodball or not.\\nassert is_woodall(383) == True\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef is_woodall(x): \\n\\tif not isinstance...
{ "split": "test", "index": 14, "task_id": "Mbpp/20", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/56\", \"entry_point\": \"check\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to check if a given number is one less than twice its reverse.\\nassert check(70) == False\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef check(n): \\n return ...
{ "split": "test", "index": 15, "task_id": "Mbpp/56", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/57\", \"entry_point\": \"find_Max_Num\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the largest number that can be formed with the given list of digits.\\nassert find_Max_Num([1,2,3]) == 321\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\n...
{ "split": "test", "index": 16, "task_id": "Mbpp/57", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/58\", \"entry_point\": \"opposite_Signs\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to check whether the given two integers have opposite sign or not.\\nassert opposite_Signs(1,-2) == True\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef oppo...
{ "split": "test", "index": 17, "task_id": "Mbpp/58", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/59\", \"entry_point\": \"is_octagonal\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the nth octagonal number.\\nassert is_octagonal(5) == 65\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef is_octagonal(n): \\n\\treturn 3 * n * n - 2 * n \\n\"...
{ "split": "test", "index": 18, "task_id": "Mbpp/59", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/61\", \"entry_point\": \"count_Substrings\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to count the number of substrings with the sum of digits equal to their length.\\nassert count_Substrings('112112') == 6\\n\\\"\\\"\\\"\\n\", \"canonical_solutio...
{ "split": "test", "index": 19, "task_id": "Mbpp/61", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/62\", \"entry_point\": \"smallest_num\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find smallest number in a list.\\nassert smallest_num([10, 20, 1, 45, 99]) == 1\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef smallest_num(xs):\\n assert...
{ "split": "test", "index": 20, "task_id": "Mbpp/62", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/63\", \"entry_point\": \"max_difference\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the maximum difference between available pairs in the given tuple list.\\nassert max_difference([(3, 5), (1, 7), (10, 3), (1, 2)]) == 7\\n\\\"\\\"\\\"\\n\", \"can...
{ "split": "test", "index": 21, "task_id": "Mbpp/63", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/64\", \"entry_point\": \"subject_marks\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to sort a list of tuples using the second value of each tuple.\\nassert subject_marks([('English', 88), ('Science', 90), ('Maths', 97), ('Social sciences', 82)])==[('Socia...
{ "split": "test", "index": 22, "task_id": "Mbpp/64", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/65\", \"entry_point\": \"recursive_list_sum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to flatten a list and sum all of its elements.\\nassert recursive_list_sum(([1, 2, [3,4],[5,6]]))==21\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef recursive_...
{ "split": "test", "index": 23, "task_id": "Mbpp/65", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/66\", \"entry_point\": \"pos_count\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to count the number of positive numbers in a list.\\nassert pos_count([1,-2,3,-4]) == 2\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef pos_count(l):\\n return l...
{ "split": "test", "index": 24, "task_id": "Mbpp/66", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/67\", \"entry_point\": \"bell_number\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the number of ways to partition a set of Bell numbers.\\nassert bell_number(2)==2\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef bell_number(n): \\n bell...
{ "split": "test", "index": 25, "task_id": "Mbpp/67", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/68\", \"entry_point\": \"is_Monotonic\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to check whether the given array is monotonic or not.\\nassert is_Monotonic([6, 5, 4, 4]) == True\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef is_Monotonic(...
{ "split": "test", "index": 26, "task_id": "Mbpp/68", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/69\", \"entry_point\": \"is_sublist\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check whether a list contains the given sublist or not.\\nassert is_sublist([2,4,3,5,7],[3,7])==False\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef is_sublist(l, s...
{ "split": "test", "index": 27, "task_id": "Mbpp/69", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/70\", \"entry_point\": \"get_equal\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find whether all the given tuples have equal length or not.\\nassert get_equal([(11, 22, 33), (44, 55, 66)]) == True\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef g...
{ "split": "test", "index": 28, "task_id": "Mbpp/70", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/71\", \"entry_point\": \"comb_sort\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to sort a list of elements.\\nassert comb_sort([5, 15, 37, 25, 79]) == [5, 15, 25, 37, 79]\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef comb_sort(nums):\\n n = len...
{ "split": "test", "index": 29, "task_id": "Mbpp/71", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/72\", \"entry_point\": \"dif_Square\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to check whether the given number can be represented as the difference of two squares or not.\\nassert dif_Square(5) == True\\n\\\"\\\"\\\"\\n\", \"canonical_solution\...
{ "split": "test", "index": 30, "task_id": "Mbpp/72", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/74\", \"entry_point\": \"is_samepatterns\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check whether it follows the sequence given in the patterns array.\\nassert is_samepatterns([\\\"red\\\",\\\"green\\\",\\\"green\\\"], [\\\"a\\\", \\\"b\\\", \\\"b\\\...
{ "split": "test", "index": 31, "task_id": "Mbpp/74", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/75\", \"entry_point\": \"find_tuples\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find tuples which have all elements divisible by k from the given list of tuples.\\nassert find_tuples([(6, 24, 12), (7, 9, 6), (12, 18, 21)], 6) == [(6, 24, 12)]\\n\\\"\...
{ "split": "test", "index": 32, "task_id": "Mbpp/75", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/77\", \"entry_point\": \"is_Diff\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find whether a number is divisible by 11.\\nassert is_Diff (12345) == False\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef is_Diff(n): \\n return n % 11 == 0...
{ "split": "test", "index": 33, "task_id": "Mbpp/77", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/79\", \"entry_point\": \"word_len\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to check whether the length of the word is odd or not.\\nassert word_len(\\\"Hadoop\\\") == False\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef word_len(s): \\n ...
{ "split": "test", "index": 34, "task_id": "Mbpp/79", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/80\", \"entry_point\": \"tetrahedral_number\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the nth tetrahedral number.\\nassert tetrahedral_number(5) == 35\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef tetrahedral_number(n): \\n\\treturn (n ...
{ "split": "test", "index": 35, "task_id": "Mbpp/80", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/82\", \"entry_point\": \"volume_sphere\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the volume of a sphere.\\nassert math.isclose(volume_sphere(10), 4188.790204786391, rel_tol=0.001)\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nimport math\\n...
{ "split": "test", "index": 36, "task_id": "Mbpp/82", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/84\", \"entry_point\": \"sequence\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the nth number in the newman conway sequence.\\nassert sequence(10) == 6\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef sequence(n): \\n\\tif n == 1 or n == 2: \...
{ "split": "test", "index": 37, "task_id": "Mbpp/84", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/85\", \"entry_point\": \"surfacearea_sphere\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the surface area of a sphere.\\nassert math.isclose(surfacearea_sphere(10), 1256.6370614359173, rel_tol=0.001)\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"...
{ "split": "test", "index": 38, "task_id": "Mbpp/85", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/86\", \"entry_point\": \"centered_hexagonal_number\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find nth centered hexagonal number.\\nassert centered_hexagonal_number(10) == 271\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef centered_hexagonal_n...
{ "split": "test", "index": 39, "task_id": "Mbpp/86", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/87\", \"entry_point\": \"merge_dictionaries_three\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to merge three dictionaries into a single dictionary.\\nassert merge_dictionaries_three({ \\\"R\\\": \\\"Red\\\", \\\"B\\\": \\\"Black\\\", \\\"P\\\": \\\"Pink\...
{ "split": "test", "index": 40, "task_id": "Mbpp/87", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/88\", \"entry_point\": \"freq_count\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to get the frequency of all the elements in a list, returned as a dictionary.\\nassert freq_count([10,10,10,10,20,20,20,20,40,40,50,50,30])==({10: 4, 20: 4, 40: 2, 50: 2, 30:...
{ "split": "test", "index": 41, "task_id": "Mbpp/88", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/89\", \"entry_point\": \"closest_num\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the closest smaller number than n.\\nassert closest_num(11) == 10\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef closest_num(N):\\n return (N - 1)\\n\", \"ba...
{ "split": "test", "index": 42, "task_id": "Mbpp/89", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/90\", \"entry_point\": \"len_log\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the length of the longest word.\\nassert len_log([\\\"python\\\",\\\"PHP\\\",\\\"bigdata\\\"]) == 7\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef len_log(...
{ "split": "test", "index": 43, "task_id": "Mbpp/90", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/91\", \"entry_point\": \"find_substring\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check if a string is present as a substring in a given list of string values.\\nassert find_substring([\\\"red\\\", \\\"black\\\", \\\"white\\\", \\\"green\\\", \\\"or...
{ "split": "test", "index": 44, "task_id": "Mbpp/91", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/92\", \"entry_point\": \"is_undulating\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check whether the given number is undulating or not.\\nassert is_undulating(1212121) == True\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef is_undulating(n): \\n...
{ "split": "test", "index": 45, "task_id": "Mbpp/92", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/93\", \"entry_point\": \"power\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to calculate the value of 'a' to the power 'b'.\\nassert power(3,4) == 81\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef power(a, b):\\n\\treturn a ** b\\n\", \"base_input\...
{ "split": "test", "index": 46, "task_id": "Mbpp/93", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/94\", \"entry_point\": \"index_minimum\", \"prompt\": \"\\\"\\\"\\\"\\nGiven a list of tuples, write a function that returns the first value of the tuple with the smallest second value.\\nassert index_minimum([('Rash', 143), ('Manjeet', 200), ('Varsha', 100)]...
{ "split": "test", "index": 47, "task_id": "Mbpp/94", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/95\", \"entry_point\": \"Find_Min_Length\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the length of the smallest list in a list of lists.\\nassert Find_Min_Length([[1],[1,2]]) == 1\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef Find_...
{ "split": "test", "index": 48, "task_id": "Mbpp/95", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/96\", \"entry_point\": \"divisor\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the number of divisors of a given integer.\\nassert divisor(15) == 4\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef divisor(n):\\n return sum(1 for i in r...
{ "split": "test", "index": 49, "task_id": "Mbpp/96", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/97\", \"entry_point\": \"frequency_lists\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find frequency of each element in a flattened list of lists, returned in a dictionary.\\nassert frequency_lists([[1, 2, 3, 2], [4, 5, 6, 2], [7, 8, 9, 5]])=={1: 1, 2:...
{ "split": "test", "index": 50, "task_id": "Mbpp/97", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/98\", \"entry_point\": \"multiply_num\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to multiply all the numbers in a list and divide with the length of the list.\\nassert math.isclose(multiply_num((8, 2, 3, -1, 7)), -67.2, rel_tol=0.001)\\n\\\"\\\"\\\"\\n\...
{ "split": "test", "index": 51, "task_id": "Mbpp/98", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/99\", \"entry_point\": \"decimal_to_binary\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to convert the given decimal number to its binary equivalent, represented as a string with no leading zeros.\\nassert decimal_to_binary(8) == '1000'\\n\\\"\\\"\\\"\\n\...
{ "split": "test", "index": 52, "task_id": "Mbpp/99", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/100\", \"entry_point\": \"next_smallest_palindrome\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the next smallest palindrome of a specified integer, returned as an integer.\\nassert next_smallest_palindrome(99)==101\\n\\\"\\\"\\\"\\n\", \"canonica...
{ "split": "test", "index": 53, "task_id": "Mbpp/100", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/101\", \"entry_point\": \"kth_element\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the kth element in the given array using 1-based indexing.\\nassert kth_element([12,3,5,7,19], 2) == 3\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef kth_ele...
{ "split": "test", "index": 54, "task_id": "Mbpp/101", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/102\", \"entry_point\": \"snake_to_camel\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to convert a snake case string to camel case string.\\nassert snake_to_camel('python_program')=='PythonProgram'\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef sna...
{ "split": "test", "index": 55, "task_id": "Mbpp/102", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/103\", \"entry_point\": \"eulerian_num\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the Eulerian number a(n, m).\\nassert eulerian_num(3, 1) == 4\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef eulerian_num(n, m): \\n\\tif (m >= n or n == 0)...
{ "split": "test", "index": 56, "task_id": "Mbpp/103", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/104\", \"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\\\", \\\"bla...
{ "split": "test", "index": 57, "task_id": "Mbpp/104", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/105\", \"entry_point\": \"count\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to count true booleans in the given list.\\nassert count([True,False,True]) == 2\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef count(lst): \\n return sum(lst)...
{ "split": "test", "index": 58, "task_id": "Mbpp/105", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/106\", \"entry_point\": \"add_lists\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to append the given list to the given tuples.\\nassert add_lists([5, 6, 7], (9, 10)) == (9, 10, 5, 6, 7)\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef add_lists(test_...
{ "split": "test", "index": 59, "task_id": "Mbpp/106", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/108\", \"entry_point\": \"merge_sorted_list\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to merge three lists into a single sorted list.\\nassert merge_sorted_list([25, 24, 15, 4, 5, 29, 110],[19, 20, 11, 56, 25, 233, 154],[24, 26, 54, 48])==[4, 5, 11, 15...
{ "split": "test", "index": 60, "task_id": "Mbpp/108", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/109\", \"entry_point\": \"odd_Equivalent\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the number of numbers with an odd value when rotating a binary string the given number of times.\\nassert odd_Equivalent(\\\"011001\\\",6) == 3\\n\\\"\\\"...
{ "split": "test", "index": 61, "task_id": "Mbpp/109", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/111\", \"entry_point\": \"common_in_nested_lists\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the common elements in given nested lists.\\nassert set(common_in_nested_lists([[12, 18, 23, 25, 45], [7, 12, 18, 24, 28], [1, 5, 8, 12, 15, 16, 18]]))==...
{ "split": "test", "index": 62, "task_id": "Mbpp/111", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/113\", \"entry_point\": \"check_integer\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check if a string represents an integer or not.\\nassert check_integer(\\\"python\\\")==False\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef check_integer(text)...
{ "split": "test", "index": 63, "task_id": "Mbpp/113", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/116\", \"entry_point\": \"tuple_to_int\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to convert a given tuple of positive integers into a single integer.\\nassert tuple_to_int((1,2,3))==123\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef tuple_to_int...
{ "split": "test", "index": 64, "task_id": "Mbpp/116", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/118\", \"entry_point\": \"string_to_list\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to convert a string to a list of strings split on the space character.\\nassert string_to_list(\\\"python programming\\\")==['python','programming']\\n\\\"\\\"\\\"\\n\",...
{ "split": "test", "index": 65, "task_id": "Mbpp/118", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/119\", \"entry_point\": \"search\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the element that appears only once in a sorted array.\\nassert search([1,1,2,2,3]) == 3\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef search(arr):\\n n...
{ "split": "test", "index": 66, "task_id": "Mbpp/119", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/120\", \"entry_point\": \"max_product_tuple\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the maximum absolute product between numbers in pairs of tuples within a given list.\\nassert max_product_tuple([(2, 7), (2, 6), (1, 8), (4, 9)] )==36\\n\\\"\...
{ "split": "test", "index": 67, "task_id": "Mbpp/120", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/123\", \"entry_point\": \"amicable_numbers_sum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to sum all amicable numbers from 1 to a specified number.\\nassert amicable_numbers_sum(999)==504\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef div_sum(num...
{ "split": "test", "index": 68, "task_id": "Mbpp/123", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"__evalplus_pickle__\": \"eJyVV31sE2UYb8yA7sjEGU2ULHKMACurtZ2jteBoo5Gl6tDMxE3EdNdyo4ftXe1dk5H4UQ0MkfMj2Y3hF/IHivgxly3xDzO9bpFERYEhkuFf2g2nTN0Gy8BpMq+st/V99/S9o39d3vf3Ph+/5/c+z9tUUXtfqeXa7zmlQl4iMeLTQW67IlvrQvH4Xa6qakVeyvJSYlcwLnC8pMglDL8jygbDQiweZVsUeXE8oX1qG/vLy8uphgQnsTRDNyf5...
{ "split": "test", "index": 69, "task_id": "Mbpp/124", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/125\", \"entry_point\": \"find_length\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the maximum difference between the number of 0s and number of 1s in any sub-string of the given binary string.\\nassert find_length(\\\"11000010001\\\") == 6\\n\\\"...
{ "split": "test", "index": 70, "task_id": "Mbpp/125", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/126\", \"entry_point\": \"sum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the sum of common divisors of two given numbers.\\nassert sum(10,15) == 6\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nimport math\\ndef sum(a,b): \\n sum = ...
{ "split": "test", "index": 71, "task_id": "Mbpp/126", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/127\", \"entry_point\": \"multiply_int\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to multiply two integers.\\nassert multiply_int(10,20)==200\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef multiply_int(x, y):\\n return x * y\\n\", \"base_input...
{ "split": "test", "index": 72, "task_id": "Mbpp/127", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/128\", \"entry_point\": \"long_words\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find words that are longer than n characters from a given list of words.\\nassert long_words(3,\\\"python is a programming language\\\")==['python','programming','languag...
{ "split": "test", "index": 73, "task_id": "Mbpp/128", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/129\", \"entry_point\": \"magic_square_test\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to calculate whether the matrix is a magic square.\\nassert magic_square_test([[7, 12, 1, 14], [2, 13, 8, 11], [16, 3, 10, 5], [9, 6, 15, 4]])==True\\n\\\"\\\"\\\"\\n...
{ "split": "test", "index": 74, "task_id": "Mbpp/129", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/130\", \"entry_point\": \"max_occurrences\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the item with maximum frequency in a given list.\\nassert max_occurrences([2,3,8,4,7,9,8,2,6,5,1,6,1,2,3,2,4,6,9,1,2])==2\\n\\\"\\\"\\\"\\n\", \"canonical_solut...
{ "split": "test", "index": 75, "task_id": "Mbpp/130", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/131\", \"entry_point\": \"reverse_vowels\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to reverse only the vowels of a given string (where y is not a vowel).\\nassert reverse_vowels(\\\"Python\\\") == \\\"Python\\\"\\n\\\"\\\"\\\"\\n\", \"canonical_...
{ "split": "test", "index": 76, "task_id": "Mbpp/131", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/132\", \"entry_point\": \"tup_string\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to convert a tuple to a string.\\nassert tup_string(('e', 'x', 'e', 'r', 'c', 'i', 's', 'e', 's'))==(\\\"exercises\\\")\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef...
{ "split": "test", "index": 77, "task_id": "Mbpp/132", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/133\", \"entry_point\": \"sum_negativenum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to calculate the sum of the negative numbers of a given list of numbers.\\nassert sum_negativenum([2, 4, -6, -9, 11, -12, 14, -5, 17])==-32\\n\\\"\\\"\\\"\\n\", \"canon...
{ "split": "test", "index": 78, "task_id": "Mbpp/133", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/135\", \"entry_point\": \"hexagonal_num\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the nth hexagonal number.\\nassert hexagonal_num(10) == 190\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef hexagonal_num(n): \\n\\treturn n * (2 * n - 1) \...
{ "split": "test", "index": 79, "task_id": "Mbpp/135", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/137\", \"entry_point\": \"zero_count\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the ratio of zeroes to non-zeroes in an array of integers.\\nassert math.isclose(zero_count([0, 1, 2, -1, -5, 6, 0, -3, -2, 3, 4, 6, 8]), 0.181818, rel_tol=0.001)\\n...
{ "split": "test", "index": 80, "task_id": "Mbpp/137", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/138\", \"entry_point\": \"is_Sum_Of_Powers_Of_Two\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to check whether the given number can be represented as sum of non-zero powers of 2 or not.\\nassert is_Sum_Of_Powers_Of_Two(10) == True\\n\\\"\\\"\\\"\\...
{ "split": "test", "index": 81, "task_id": "Mbpp/138", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/139\", \"entry_point\": \"circle_circumference\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the circumference of a circle.\\nassert math.isclose(circle_circumference(10), 62.830000000000005, rel_tol=0.001)\\n\\\"\\\"\\\"\\n\", \"canonical_solution...
{ "split": "test", "index": 82, "task_id": "Mbpp/139", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/140\", \"entry_point\": \"extract_singly\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to flatten the list of lists into a single set of numbers.\\nassert set(extract_singly([(3, 4, 5), (4, 5, 7), (1, 4)])) == set([3, 4, 5, 7, 1])\\n\\\"\\\"\\\"\\n\", \"ca...
{ "split": "test", "index": 83, "task_id": "Mbpp/140", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/141\", \"entry_point\": \"pancake_sort\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to sort a list of elements.\\nassert pancake_sort([15, 79, 25, 38, 69]) == [15, 25, 38, 69, 79]\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef pancake_sort(nums):\\...
{ "split": "test", "index": 84, "task_id": "Mbpp/141", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/142\", \"entry_point\": \"count_samepair\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to count number items that are identical in the same position of three given lists.\\nassert count_samepair([1,2,3,4,5,6,7,8],[2,2,3,1,2,6,7,9],[2,1,3,1,2,6,7,9])==3\\n\...
{ "split": "test", "index": 85, "task_id": "Mbpp/142", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/145\", \"entry_point\": \"max_Abs_Diff\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the maximum difference between any two elements in a given array.\\nassert max_Abs_Diff((2,1,5,3)) == 4\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nde...
{ "split": "test", "index": 86, "task_id": "Mbpp/145", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/160\", \"entry_point\": \"find_solution\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that returns integers x and y that satisfy ax + by = n as a tuple, or return None if no solution exists.\\nassert find_solution(2, 3, 7) == (2, 1)\\n\\\"\\\"\\\"\\n\", \"...
{ "split": "test", "index": 87, "task_id": "Mbpp/160", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/161\", \"entry_point\": \"remove_elements\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to remove all elements from a given list present in another list.\\nassert remove_elements([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [2, 4, 6, 8]) == [1, 3, 5, 7, 9, 10]\\n\\\"\...
{ "split": "test", "index": 88, "task_id": "Mbpp/161", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/162\", \"entry_point\": \"sum_series\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to calculate the sum (n - 2*i) from i=0 to n // 2, for instance n + (n-2) + (n-4)... (until n-x =< 0).\\nassert sum_series(6) == 12\\n\\\"\\\"\\\"\\n\", \"canonical_solution...
{ "split": "test", "index": 89, "task_id": "Mbpp/162", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/165\", \"entry_point\": \"count_char_position\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to count the number of characters in a string that occur at the same position in the string as in the English alphabet (case insensitive).\\nassert count_char_posit...
{ "split": "test", "index": 90, "task_id": "Mbpp/165", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/166\", \"entry_point\": \"find_even_pair\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that counts the number of pairs of integers in a list that xor to an even number.\\nassert find_even_pair([5, 4, 7, 2, 1]) == 4\\n\\\"\\\"\\\"\\n\", \"canonical_solution...
{ "split": "test", "index": 91, "task_id": "Mbpp/166", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/167\", \"entry_point\": \"next_power_of_2\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the smallest power of 2 greater than or equal to n.\\nassert next_power_of_2(0) == 1\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef next_power_of_...
{ "split": "test", "index": 92, "task_id": "Mbpp/167", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/168\", \"entry_point\": \"frequency\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to count the number of occurrences of a number in a given list.\\nassert frequency([1,2,3], 4) == 0\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef frequency(a,x): \\n ...
{ "split": "test", "index": 93, "task_id": "Mbpp/168", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/170\", \"entry_point\": \"sum_range_list\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the sum of numbers in a list within a range specified by two indices.\\nassert sum_range_list([2,1,5,6,8,3,4,9,10,11,8,12], 8, 10) == 29\\n\\\"\\\"\\\"\\n\", \"c...
{ "split": "test", "index": 94, "task_id": "Mbpp/170", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/171\", \"entry_point\": \"perimeter_pentagon\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the perimeter of a regular pentagon from the length of its sides.\\nassert perimeter_pentagon(5) == 25\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef ...
{ "split": "test", "index": 95, "task_id": "Mbpp/171", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/172\", \"entry_point\": \"count_occurance\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to count the number of occurence of the string 'std' in a given string.\\nassert count_occurance(\\\"letstdlenstdporstd\\\") == 3\\n\\\"\\\"\\\"\\n\", \"canonical_solut...
{ "split": "test", "index": 96, "task_id": "Mbpp/172", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/222\", \"entry_point\": \"check_type\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check if all the elements in tuple have same data type or not.\\nassert check_type((5, 6, 7, 3, 5, 6) ) == True\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef chec...
{ "split": "test", "index": 97, "task_id": "Mbpp/222", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/223\", \"entry_point\": \"is_majority\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that takes in a sorted array, its length (n), and an element and returns whether the element is the majority element in the given sorted array. (The majority element is the...
{ "split": "test", "index": 98, "task_id": "Mbpp/223", "dataset": "evalplus/mbppplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"Mbpp/224\", \"entry_point\": \"count_Set_Bits\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to count the number of set bits (binary digits with value 1) in a given number.\\nassert count_Set_Bits(2) == 1\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\n...
{ "split": "test", "index": 99, "task_id": "Mbpp/224", "dataset": "evalplus/mbppplus" }