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/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"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/226\", \"entry_point\": \"odd_values_string\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to remove the characters which have odd index values of a given string.\\nassert odd_values_string('abcdef') == 'ace'\\n\\\"\\\"\\\"\\n\", \"canonical_solution... | {
"split": "test",
"index": 100,
"task_id": "Mbpp/226",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/227\", \"entry_point\": \"min_of_three\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find minimum of three numbers.\\nassert min_of_three(10,20,0)==0\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef min_of_three(a,b,c): \\n return min(a, b, c)\\n\... | {
"split": "test",
"index": 101,
"task_id": "Mbpp/227",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/230\", \"entry_point\": \"replace_blank\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that takes in a string and character, replaces blank spaces in the string with the character, and returns the string.\\nassert replace_blank(\\\"hello people\\\",'@')==(\... | {
"split": "test",
"index": 102,
"task_id": "Mbpp/230",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/232\", \"entry_point\": \"larg_nnum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that takes in a list and an integer n and returns a list containing the n largest items from the list.\\nassert set(larg_nnum([10, 20, 50, 70, 90, 20, 50, 40, 60, 80, 100],2)... | {
"split": "test",
"index": 103,
"task_id": "Mbpp/232",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/233\", \"entry_point\": \"lateralsuface_cylinder\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the lateral surface area of a cylinder.\\nassert math.isclose(lateralsuface_cylinder(10,5), 314.15000000000003, rel_tol=0.001)\\n\\\"\\\"\\\"\\n\", \"can... | {
"split": "test",
"index": 104,
"task_id": "Mbpp/233",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/234\", \"entry_point\": \"volume_cube\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the volume of a cube given its side length.\\nassert volume_cube(3)==27\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef volume_cube(l):\\n return l ** 3\\n\"... | {
"split": "test",
"index": 105,
"task_id": "Mbpp/234",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/235\", \"entry_point\": \"even_bit_set_number\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to set all even bits of a given number.\\nassert even_bit_set_number(10) == 10\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef even_bit_set_number(n): ... | {
"split": "test",
"index": 106,
"task_id": "Mbpp/235",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/237\", \"entry_point\": \"check_occurences\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that takes in a list of tuples and returns a dictionary mapping each unique tuple to the number of times it occurs in the list.\\nassert check_occurences([(3, 1), (1, ... | {
"split": "test",
"index": 107,
"task_id": "Mbpp/237",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/238\", \"entry_point\": \"number_of_substrings\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to count the number of non-empty substrings of a given string.\\nassert number_of_substrings(\\\"abc\\\") == 6\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": ... | {
"split": "test",
"index": 108,
"task_id": "Mbpp/238",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/239\", \"entry_point\": \"get_total_number_of_sequences\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that takes in positive integers m and n and finds the number of possible sequences of length n, such that each element is a positive integer and is greate... | {
"split": "test",
"index": 109,
"task_id": "Mbpp/239",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/240\", \"entry_point\": \"replace_list\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that takes in two lists and replaces the last element of the first list with the elements of the second list.\\nassert replace_list([1, 3, 5, 7, 9, 10],[2, 4, 6, 8])==[1, ... | {
"split": "test",
"index": 110,
"task_id": "Mbpp/240",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/242\", \"entry_point\": \"count_charac\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to count the total number of characters in a string.\\nassert count_charac(\\\"python programming\\\")==18\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef count_char... | {
"split": "test",
"index": 111,
"task_id": "Mbpp/242",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/244\", \"entry_point\": \"next_Perfect_Square\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the next perfect square greater than a given number.\\nassert next_Perfect_Square(35) == 36\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nimport ... | {
"split": "test",
"index": 112,
"task_id": "Mbpp/244",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/245\", \"entry_point\": \"max_sum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that takes an array and finds the maximum sum of a bitonic subsequence for the given array, where a sequence is bitonic if it is first increasing and then decreasing.\\nassert ... | {
"split": "test",
"index": 113,
"task_id": "Mbpp/245",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/247\", \"entry_point\": \"lps\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the length of the longest palindromic subsequence in the given string.\\nassert lps(\\\"TENS FOR TENS\\\") == 5\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef lps(st... | {
"split": "test",
"index": 114,
"task_id": "Mbpp/247",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/250\", \"entry_point\": \"count_X\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function that takes in a tuple and an element and counts the occcurences of the element in the tuple.\\nassert count_X((10, 8, 5, 2, 10, 15, 10, 8, 5, 8, 8, 2),4) == 0\\n\\\"\\\"... | {
"split": "test",
"index": 115,
"task_id": "Mbpp/250",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/251\", \"entry_point\": \"insert_element\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that takes in a list and an element and inserts the element before each element in the list, and returns the resulting list.\\nassert insert_element(['Red', 'Green', 'Bl... | {
"split": "test",
"index": 116,
"task_id": "Mbpp/251",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task 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__\": \"eJyFl39ME2cYx5EWKcfCQAT5kemlYwZkK4WAQwMWNaM4xxRQZDAGpRxQaO9Ke6VArKluIzA7ZNu5MMY2J5ksMnVzMh0TqQ43JSOAigxRICgEBgxQlB8WWEGol9zD7f7pJZ/3eZ7v+32f932veu5RvYPVwqOjvA22pESdlSRLpQy8yBSl0i8gKIAy2GM4qcpLUhIynKQMtlICz8FU5reVShWhUJpfsvl8PrJPJSMxVIIq88gMAkfTNLiUlJlf... | {
"split": "test",
"index": 117,
"task_id": "Mbpp/252",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/253\", \"entry_point\": \"count_integer\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function that returns the number of integer elements in a given list.\\nassert count_integer([1,2,'abc',1.2]) == 2\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef cou... | {
"split": "test",
"index": 118,
"task_id": "Mbpp/253",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/255\", \"entry_point\": \"combinations_colors\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that takes in a list and length n, and generates all combinations (with repetition) of the elements of the list and returns a list with a tuple for each combination... | {
"split": "test",
"index": 119,
"task_id": "Mbpp/255",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/256\", \"entry_point\": \"count_Primes_nums\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function that takes in a non-negative number and returns the number of prime numbers less than the given non-negative number.\\nassert count_Primes_nums(5) == 2\\n\\\"\... | {
"split": "test",
"index": 120,
"task_id": "Mbpp/256",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/257\", \"entry_point\": \"swap_numbers\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that takes in two numbers and returns a tuple with the second number and then the first number.\\nassert swap_numbers(10,20)==(20,10)\\n\\\"\\\"\\\"\\n\", \"canonical_solu... | {
"split": "test",
"index": 121,
"task_id": "Mbpp/257",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/259\", \"entry_point\": \"maximize_elements\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to maximize the given two tuples.\\nassert maximize_elements(((1, 3), (4, 5), (2, 9), (1, 10)), ((6, 7), (3, 9), (1, 1), (7, 3))) == ((6, 7), (4, 9), (2, 9), (7, 10))... | {
"split": "test",
"index": 122,
"task_id": "Mbpp/259",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/260\", \"entry_point\": \"newman_prime\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the nth newman\\u2013shanks\\u2013williams prime number.\\nassert newman_prime(3) == 7\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef newman_prime(n): \\n\\... | {
"split": "test",
"index": 123,
"task_id": "Mbpp/260",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/261\", \"entry_point\": \"division_elements\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that takes in two tuples and performs mathematical division operation element-wise across the given tuples.\\nassert division_elements((10, 4, 6, 9),(5, 2, 3, 3)) == ... | {
"split": "test",
"index": 124,
"task_id": "Mbpp/261",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/262\", \"entry_point\": \"split_two_parts\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that takes in a list and an integer L and splits the given list into two parts where the length of the first part of the list is L, and returns the resulting lists in a... | {
"split": "test",
"index": 125,
"task_id": "Mbpp/262",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/264\", \"entry_point\": \"dog_age\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to calculate a dog's age in dog's years.\\nassert dog_age(12)==61\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef dog_age(h_age):\\n\\tif h_age <= 2:\\n\\t\\td_age = h_ag... | {
"split": "test",
"index": 126,
"task_id": "Mbpp/264",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/265\", \"entry_point\": \"list_split\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that takes in a list and an integer n and splits a list for every nth element, returning a list of the resulting lists.\\nassert list_split(['a', 'b', 'c', 'd', 'e', 'f', 'g... | {
"split": "test",
"index": 127,
"task_id": "Mbpp/265",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/266\", \"entry_point\": \"lateralsurface_cube\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the lateral surface area of a cube given its side length.\\nassert lateralsurface_cube(5)==100\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef lateral... | {
"split": "test",
"index": 128,
"task_id": "Mbpp/266",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/267\", \"entry_point\": \"square_Sum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function that takes in an integer n and returns the sum of the squares of the first n odd natural numbers.\\nassert square_Sum(2) == 10\\n\\\"\\\"\\\"\\n\", \"canonical_soluti... | {
"split": "test",
"index": 129,
"task_id": "Mbpp/267",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/268\", \"entry_point\": \"find_star_num\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the n'th star number.\\nassert find_star_num(3) == 37\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef find_star_num(n): \\n\\treturn 6 * n * (n - 1) + 1 \\n... | {
"split": "test",
"index": 130,
"task_id": "Mbpp/268",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/269\", \"entry_point\": \"ascii_value\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the ascii value of a character.\\nassert ascii_value('A')==65\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef ascii_value(k):\\n return ord(k)\\n\", \"base_i... | {
"split": "test",
"index": 131,
"task_id": "Mbpp/269",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/270\", \"entry_point\": \"sum_even_and_even_index\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the sum of even numbers at even positions of a list.\\nassert sum_even_and_even_index([5, 6, 12, 1, 18, 8]) == 30\\n\\\"\\\"\\\"\\n\", \"canonica... | {
"split": "test",
"index": 132,
"task_id": "Mbpp/270",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/271\", \"entry_point\": \"even_Power_Sum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function that takes in an integer n and finds the sum of the first n even natural numbers that are raised to the fifth power.\\nassert even_Power_Sum(2) == 1056\\n\\\"\\\"... | {
"split": "test",
"index": 133,
"task_id": "Mbpp/271",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/272\", \"entry_point\": \"rear_extract\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that takes in a list of tuples and returns a list containing the rear element of each tuple.\\nassert rear_extract([(1, 'Rash', 21), (2, 'Varsha', 20), (3, 'Kil', 19)]) ==... | {
"split": "test",
"index": 134,
"task_id": "Mbpp/272",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/273\", \"entry_point\": \"substract_elements\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that takes in two tuples and subtracts the elements of the first tuple by the elements of the second tuple with the same index.\\nassert substract_elements((10, 4, 5... | {
"split": "test",
"index": 135,
"task_id": "Mbpp/273",
"dataset": "evalplus/mbppplus"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.