data_source
stringclasses
2 values
prompt
listlengths
2
2
ability
stringclasses
1 value
reward_model
dict
extra_info
dict
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/100\", \"entry_point\": \"make_a_pile\", \"prompt\": \"\\ndef make_a_pile(n):\\n \\\"\\\"\\\"\\n Given a positive integer n, you have to make a pile of n levels of stones.\\n The first level has n stones.\\n The number of stones in the next l...
{ "split": "test", "index": 100, "task_id": "HumanEval/100", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/101\", \"entry_point\": \"words_string\", \"prompt\": \"\\ndef words_string(s):\\n \\\"\\\"\\\"\\n You will be given a string of words separated by commas or spaces. Your task is\\n to split the string into words and return an array of the words...
{ "split": "test", "index": 101, "task_id": "HumanEval/101", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/102\", \"entry_point\": \"choose_num\", \"prompt\": \"\\ndef choose_num(x, y):\\n \\\"\\\"\\\"This function takes two positive numbers x and y and returns the\\n biggest even integer number that is in the range [x, y] inclusive. If \\n there's n...
{ "split": "test", "index": 102, "task_id": "HumanEval/102", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/103\", \"entry_point\": \"rounded_avg\", \"prompt\": \"\\ndef rounded_avg(n, m):\\n \\\"\\\"\\\"You are given two positive integers n and m, and your task is to compute the\\n average of the integers from n through m (including n and m). \\n Rou...
{ "split": "test", "index": 103, "task_id": "HumanEval/103", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/104\", \"entry_point\": \"unique_digits\", \"prompt\": \"\\ndef unique_digits(x):\\n \\\"\\\"\\\"Given a list of positive integers x. return a sorted list of all \\n elements that hasn't any even digit.\\n\\n Note: Returned list should be sorted...
{ "split": "test", "index": 104, "task_id": "HumanEval/104", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/105\", \"entry_point\": \"by_length\", \"prompt\": \"\\ndef by_length(arr):\\n \\\"\\\"\\\"\\n Given an array of integers, sort the integers that are between 1 and 9 inclusive,\\n reverse the resulting array, and then replace each digit by its c...
{ "split": "test", "index": 105, "task_id": "HumanEval/105", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/106\", \"entry_point\": \"f\", \"prompt\": \"\\ndef f(n):\\n \\\"\\\"\\\" Implement the function f that takes n as a parameter,\\n and returns a list of size n, such that the value of the element at index i is the factorial of i if i is even\\n ...
{ "split": "test", "index": 106, "task_id": "HumanEval/106", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/107\", \"entry_point\": \"even_odd_palindrome\", \"prompt\": \"\\ndef even_odd_palindrome(n):\\n \\\"\\\"\\\"\\n Given a positive integer n, return a tuple that has the number of even and odd\\n integer palindromes that fall within the range(1, ...
{ "split": "test", "index": 107, "task_id": "HumanEval/107", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/108\", \"entry_point\": \"count_nums\", \"prompt\": \"\\ndef count_nums(arr):\\n \\\"\\\"\\\"\\n Write a function count_nums which takes an array of integers and returns\\n the number of elements which has a sum of digits > 0.\\n If a number ...
{ "split": "test", "index": 108, "task_id": "HumanEval/108", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/109\", \"entry_point\": \"move_one_ball\", \"prompt\": \"\\ndef move_one_ball(arr):\\n \\\"\\\"\\\"We have an array 'arr' of N integers arr[1], arr[2], ..., arr[N].The\\n numbers in the array will be randomly ordered. Your task is to determine if\\...
{ "split": "test", "index": 109, "task_id": "HumanEval/109", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/110\", \"entry_point\": \"exchange\", \"prompt\": \"\\ndef exchange(lst1, lst2):\\n \\\"\\\"\\\"In this problem, you will implement a function that takes two lists of numbers,\\n and determines whether it is possible to perform an exchange of eleme...
{ "split": "test", "index": 110, "task_id": "HumanEval/110", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/111\", \"entry_point\": \"histogram\", \"prompt\": \"\\ndef histogram(test):\\n \\\"\\\"\\\"Given a string representing a space separated lowercase letters, return a dictionary\\n of the letter with the most repetition and containing the correspond...
{ "split": "test", "index": 111, "task_id": "HumanEval/111", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/112\", \"entry_point\": \"reverse_delete\", \"prompt\": \"\\ndef reverse_delete(s,c):\\n \\\"\\\"\\\"Task\\n We are given two strings s and c, you have to deleted all the characters in s that are equal to any character in c\\n then check if the ...
{ "split": "test", "index": 112, "task_id": "HumanEval/112", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/113\", \"entry_point\": \"odd_count\", \"prompt\": \"\\ndef odd_count(lst):\\n \\\"\\\"\\\"Given a list of strings, where each string consists of only digits, return a list.\\n Each element i of the output should be \\\"the number of odd elements i...
{ "split": "test", "index": 113, "task_id": "HumanEval/113", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/114\", \"entry_point\": \"minSubArraySum\", \"prompt\": \"\\ndef minSubArraySum(nums):\\n \\\"\\\"\\\"\\n Given an array of integers nums, find the minimum sum of any non-empty sub-array\\n of nums.\\n Example\\n minSubArraySum([2, 3, 4, 1...
{ "split": "test", "index": 114, "task_id": "HumanEval/114", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/115\", \"entry_point\": \"max_fill\", \"prompt\": \"import math\\n\\ndef max_fill(grid, capacity):\\n \\\"\\\"\\\"\\n You are given a rectangular grid of wells. Each row represents a single well,\\n and each 1 in a row represents a single unit o...
{ "split": "test", "index": 115, "task_id": "HumanEval/115", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/116\", \"entry_point\": \"sort_array\", \"prompt\": \"\\ndef sort_array(arr):\\n \\\"\\\"\\\"\\n In this Kata, you have to sort an array of non-negative integers according to\\n number of ones in their binary representation in ascending order.\\...
{ "split": "test", "index": 116, "task_id": "HumanEval/116", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/117\", \"entry_point\": \"select_words\", \"prompt\": \"\\ndef select_words(s, n):\\n \\\"\\\"\\\"Given a string s and a natural number n, you have been tasked to implement \\n a function that returns a list of all words from string s that contain ...
{ "split": "test", "index": 117, "task_id": "HumanEval/117", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/118\", \"entry_point\": \"get_closest_vowel\", \"prompt\": \"\\ndef get_closest_vowel(word):\\n \\\"\\\"\\\"You are given a word. Your task is to find the closest vowel that stands between \\n two consonants from the right side of the word (case se...
{ "split": "test", "index": 118, "task_id": "HumanEval/118", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/119\", \"entry_point\": \"match_parens\", \"prompt\": \"\\ndef match_parens(lst):\\n '''\\n You are given a list of two strings, both strings consist of open\\n parentheses '(' or close parentheses ')' only.\\n Your job is to check if it is p...
{ "split": "test", "index": 119, "task_id": "HumanEval/119", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/120\", \"entry_point\": \"maximum\", \"prompt\": \"\\ndef maximum(arr, k):\\n \\\"\\\"\\\"\\n Given an array arr of integers and a positive integer k, return a sorted list \\n of length k with the maximum k numbers in arr.\\n\\n Example 1:\\n...
{ "split": "test", "index": 120, "task_id": "HumanEval/120", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/121\", \"entry_point\": \"solution\", \"prompt\": \"\\ndef solution(lst):\\n \\\"\\\"\\\"Given a non-empty list of integers, return the sum of all of the odd elements that are in even positions.\\n \\n\\n Examples\\n solution([5, 8, 7, 1]) ==...
{ "split": "test", "index": 121, "task_id": "HumanEval/121", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/122\", \"entry_point\": \"add_elements\", \"prompt\": \"\\ndef add_elements(arr, k):\\n \\\"\\\"\\\"\\n Given a non-empty array of integers arr and an integer k, return\\n the sum of the elements with at most two digits from the first k elements...
{ "split": "test", "index": 122, "task_id": "HumanEval/122", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/123\", \"entry_point\": \"get_odd_collatz\", \"prompt\": \"\\ndef get_odd_collatz(n):\\n \\\"\\\"\\\"\\n Given a positive integer n, return a sorted list that has the odd numbers in collatz sequence.\\n\\n The Collatz conjecture is a conjecture ...
{ "split": "test", "index": 123, "task_id": "HumanEval/123", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/124\", \"entry_point\": \"valid_date\", \"prompt\": \"\\ndef valid_date(date):\\n \\\"\\\"\\\"You have to write a function which validates a given date string and\\n returns True if the date is valid otherwise False.\\n The date is valid if all ...
{ "split": "test", "index": 124, "task_id": "HumanEval/124", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/125\", \"entry_point\": \"split_words\", \"prompt\": \"\\ndef split_words(txt):\\n '''\\n Given a string of words, return a list of words split on whitespace, if no whitespaces exists in the text you\\n should split on commas ',' if no commas ex...
{ "split": "test", "index": 125, "task_id": "HumanEval/125", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/126\", \"entry_point\": \"is_sorted\", \"prompt\": \"\\ndef is_sorted(lst):\\n '''\\n Given a list of numbers, return whether or not they are sorted\\n in ascending order. If list has more than 1 duplicate of the same\\n number, return False....
{ "split": "test", "index": 126, "task_id": "HumanEval/126", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/127\", \"entry_point\": \"intersection\", \"prompt\": \"\\ndef intersection(interval1, interval2):\\n \\\"\\\"\\\"You are given two intervals,\\n where each interval is a pair of integers. For example, interval = (start, end) = (1, 2).\\n The gi...
{ "split": "test", "index": 127, "task_id": "HumanEval/127", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/128\", \"entry_point\": \"prod_signs\", \"prompt\": \"\\ndef prod_signs(arr):\\n \\\"\\\"\\\"\\n You are given an array arr of integers and you need to return\\n sum of magnitudes of integers multiplied by product of all signs\\n of each numb...
{ "split": "test", "index": 128, "task_id": "HumanEval/128", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/129\", \"entry_point\": \"minPath\", \"prompt\": \"\\ndef minPath(grid, k):\\n \\\"\\\"\\\"\\n Given a grid with N rows and N columns (N >= 2) and a positive integer k, \\n each cell of the grid contains a value. Every integer in the range [1, N...
{ "split": "test", "index": 129, "task_id": "HumanEval/129", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/130\", \"entry_point\": \"tri\", \"prompt\": \"\\ndef tri(n):\\n \\\"\\\"\\\"Everyone knows Fibonacci sequence, it was studied deeply by mathematicians in \\n the last couple centuries. However, what people don't know is Tribonacci sequence.\\n ...
{ "split": "test", "index": 130, "task_id": "HumanEval/130", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/131\", \"entry_point\": \"digits\", \"prompt\": \"\\ndef digits(n):\\n \\\"\\\"\\\"Given a positive integer n, return the product of the odd digits.\\n Return 0 if all digits are even.\\n For example:\\n digits(1) == 1\\n digits(4) == 0\...
{ "split": "test", "index": 131, "task_id": "HumanEval/131", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/132\", \"entry_point\": \"is_nested\", \"prompt\": \"\\ndef is_nested(string):\\n '''\\n Create a function that takes a string as input which contains only square brackets.\\n The function should return True if and only if there is a valid subse...
{ "split": "test", "index": 132, "task_id": "HumanEval/132", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/133\", \"entry_point\": \"sum_squares\", \"prompt\": \"\\n\\ndef sum_squares(lst):\\n \\\"\\\"\\\"You are given a list of numbers.\\n You need to return the sum of squared numbers in the given list,\\n round each element in the list to the upper...
{ "split": "test", "index": 133, "task_id": "HumanEval/133", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/134\", \"entry_point\": \"check_if_last_char_is_a_letter\", \"prompt\": \"\\ndef check_if_last_char_is_a_letter(txt):\\n '''\\n Create a function that returns True if the last character\\n of a given string is an alphabetical character and is no...
{ "split": "test", "index": 134, "task_id": "HumanEval/134", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/135\", \"entry_point\": \"can_arrange\", \"prompt\": \"\\ndef can_arrange(arr):\\n \\\"\\\"\\\"Create a function which returns the largest index of an element which\\n is not greater than or equal to the element immediately preceding it. If\\n n...
{ "split": "test", "index": 135, "task_id": "HumanEval/135", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/136\", \"entry_point\": \"largest_smallest_integers\", \"prompt\": \"\\ndef largest_smallest_integers(lst):\\n '''\\n Create a function that returns a tuple (a, b), where 'a' is\\n the largest of negative integers, and 'b' is the smallest\\n ...
{ "split": "test", "index": 136, "task_id": "HumanEval/136", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/137\", \"entry_point\": \"compare_one\", \"prompt\": \"\\ndef compare_one(a, b):\\n \\\"\\\"\\\"\\n Create a function that takes integers, floats, or strings representing\\n real numbers, and returns the larger variable in its given variable typ...
{ "split": "test", "index": 137, "task_id": "HumanEval/137", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/138\", \"entry_point\": \"is_equal_to_sum_even\", \"prompt\": \"\\ndef is_equal_to_sum_even(n):\\n \\\"\\\"\\\"Evaluate whether the given number n can be written as the sum of exactly 4 positive even numbers\\n Example\\n is_equal_to_sum_even(4)...
{ "split": "test", "index": 138, "task_id": "HumanEval/138", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/139\", \"entry_point\": \"special_factorial\", \"prompt\": \"\\ndef special_factorial(n):\\n \\\"\\\"\\\"The Brazilian factorial is defined as:\\n brazilian_factorial(n) = n! * (n-1)! * (n-2)! * ... * 1!\\n where n > 0\\n\\n For example:\\n ...
{ "split": "test", "index": 139, "task_id": "HumanEval/139", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/140\", \"entry_point\": \"fix_spaces\", \"prompt\": \"\\ndef fix_spaces(text):\\n \\\"\\\"\\\"\\n Given a string text, replace all spaces in it with underscores, \\n and if a string has more than 2 consecutive spaces, \\n then replace all con...
{ "split": "test", "index": 140, "task_id": "HumanEval/140", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/141\", \"entry_point\": \"file_name_check\", \"prompt\": \"\\ndef file_name_check(file_name):\\n \\\"\\\"\\\"Create a function which takes a string representing a file's name, and returns\\n 'Yes' if the the file's name is valid, and returns 'No' o...
{ "split": "test", "index": 141, "task_id": "HumanEval/141", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/142\", \"entry_point\": \"sum_squares\", \"prompt\": \"\\n\\n\\ndef sum_squares(lst):\\n \\\"\\\"\\\"\\\"\\n This function will take a list of integers. For all entries in the list, the function shall square the integer entry if its index is a \\n ...
{ "split": "test", "index": 142, "task_id": "HumanEval/142", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/143\", \"entry_point\": \"words_in_sentence\", \"prompt\": \"\\ndef words_in_sentence(sentence):\\n \\\"\\\"\\\"\\n You are given a string representing a sentence,\\n the sentence contains some words separated by a space,\\n and you have to r...
{ "split": "test", "index": 143, "task_id": "HumanEval/143", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/144\", \"entry_point\": \"simplify\", \"prompt\": \"\\ndef simplify(x, n):\\n \\\"\\\"\\\"Your task is to implement a function that will simplify the expression\\n x * n. The function returns True if x * n evaluates to a whole number and False\\n ...
{ "split": "test", "index": 144, "task_id": "HumanEval/144", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/145\", \"entry_point\": \"order_by_points\", \"prompt\": \"\\ndef order_by_points(nums):\\n \\\"\\\"\\\"\\n Write a function which sorts the given list of integers\\n in ascending order according to the sum of their digits.\\n Note: if there ...
{ "split": "test", "index": 145, "task_id": "HumanEval/145", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/146\", \"entry_point\": \"specialFilter\", \"prompt\": \"\\ndef specialFilter(nums):\\n \\\"\\\"\\\"Write a function that takes an array of numbers as input and returns \\n the number of elements in the array that are greater than 10 and both \\n ...
{ "split": "test", "index": 146, "task_id": "HumanEval/146", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/147\", \"entry_point\": \"get_max_triples\", \"prompt\": \"\\ndef get_max_triples(n):\\n \\\"\\\"\\\"\\n You are given a positive integer n. You have to create an integer array a of length n.\\n For each i (1 \\u2264 i \\u2264 n), the value ...
{ "split": "test", "index": 147, "task_id": "HumanEval/147", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/148\", \"entry_point\": \"bf\", \"prompt\": \"\\ndef bf(planet1, planet2):\\n '''\\n There are eight planets in our solar system: the closerst to the Sun \\n is Mercury, the next one is Venus, then Earth, Mars, Jupiter, Saturn, \\n Uranus, Ne...
{ "split": "test", "index": 148, "task_id": "HumanEval/148", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/149\", \"entry_point\": \"sorted_list_sum\", \"prompt\": \"\\ndef sorted_list_sum(lst):\\n \\\"\\\"\\\"Write a function that accepts a list of strings as a parameter,\\n deletes the strings that have odd lengths from it,\\n and returns the resul...
{ "split": "test", "index": 149, "task_id": "HumanEval/149", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/150\", \"entry_point\": \"x_or_y\", \"prompt\": \"\\ndef x_or_y(n, x, y):\\n \\\"\\\"\\\"A simple program which should return the value of x if n is \\n a prime number and should return the value of y otherwise.\\n\\n Examples:\\n for x_or_y(...
{ "split": "test", "index": 150, "task_id": "HumanEval/150", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/151\", \"entry_point\": \"double_the_difference\", \"prompt\": \"\\ndef double_the_difference(lst):\\n '''\\n Given a list of numbers, return the sum of squares of the numbers\\n in the list that are odd. Ignore numbers that are negative or not ...
{ "split": "test", "index": 151, "task_id": "HumanEval/151", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/152\", \"entry_point\": \"compare\", \"prompt\": \"\\ndef compare(game,guess):\\n \\\"\\\"\\\"I think we all remember that feeling when the result of some long-awaited\\n event is finally known. The feelings and thoughts you have at that moment are...
{ "split": "test", "index": 152, "task_id": "HumanEval/152", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/153\", \"entry_point\": \"Strongest_Extension\", \"prompt\": \"\\ndef Strongest_Extension(class_name, extensions):\\n \\\"\\\"\\\"You will be given the name of a class (a string) and a list of extensions.\\n The extensions are to be used to load ad...
{ "split": "test", "index": 153, "task_id": "HumanEval/153", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/154\", \"entry_point\": \"cycpattern_check\", \"prompt\": \"\\ndef cycpattern_check(a , b):\\n \\\"\\\"\\\"You are given 2 words. You need to return True if the second word or any of its rotations is a substring in the first word\\n cycpattern_chec...
{ "split": "test", "index": 154, "task_id": "HumanEval/154", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/155\", \"entry_point\": \"even_odd_count\", \"prompt\": \"\\ndef even_odd_count(num):\\n \\\"\\\"\\\"Given an integer. return a tuple that has the number of even and odd digits respectively.\\n\\n Example:\\n even_odd_count(-12) ==> (1, 1)\...
{ "split": "test", "index": 155, "task_id": "HumanEval/155", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/156\", \"entry_point\": \"int_to_mini_roman\", \"prompt\": \"\\ndef int_to_mini_roman(number):\\n \\\"\\\"\\\"\\n Given a positive integer, obtain its roman numeral equivalent as a string,\\n and return it in lowercase.\\n Restrictions: 1 <= ...
{ "split": "test", "index": 156, "task_id": "HumanEval/156", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/157\", \"entry_point\": \"right_angle_triangle\", \"prompt\": \"\\ndef right_angle_triangle(a, b, c):\\n '''\\n Given the lengths of the three sides of a triangle. Return True if the three\\n sides form a right-angled triangle, False otherwise.\...
{ "split": "test", "index": 157, "task_id": "HumanEval/157", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/158\", \"entry_point\": \"find_max\", \"prompt\": \"\\ndef find_max(words):\\n \\\"\\\"\\\"Write a function that accepts a list of strings.\\n The list contains different words. Return the word with maximum number\\n of unique characters. If mul...
{ "split": "test", "index": 158, "task_id": "HumanEval/158", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/159\", \"entry_point\": \"eat\", \"prompt\": \"\\ndef eat(number, need, remaining):\\n \\\"\\\"\\\"\\n You're a hungry rabbit, and you already have eaten a certain number of carrots,\\n but now you need to eat more carrots to complete the day's ...
{ "split": "test", "index": 159, "task_id": "HumanEval/159", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/160\", \"entry_point\": \"do_algebra\", \"prompt\": \"\\ndef do_algebra(operator, operand):\\n \\\"\\\"\\\"\\n Given two lists operator, and operand. The first list has basic algebra operations, and \\n the second list is a list of integers. Use...
{ "split": "test", "index": 160, "task_id": "HumanEval/160", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/161\", \"entry_point\": \"solve\", \"prompt\": \"\\ndef solve(s):\\n \\\"\\\"\\\"You are given a string s.\\n if s[i] is a letter, reverse its case from lower to upper or vise versa, \\n otherwise keep it as it is.\\n If the string contains n...
{ "split": "test", "index": 161, "task_id": "HumanEval/161", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/162\", \"entry_point\": \"string_to_md5\", \"prompt\": \"\\ndef string_to_md5(text):\\n \\\"\\\"\\\"\\n Given a string 'text', return its md5 hash equivalent string.\\n If 'text' is an empty string, return None.\\n\\n >>> string_to_md5('Hello...
{ "split": "test", "index": 162, "task_id": "HumanEval/162", "dataset": "evalplus/humanevalplus" }
evalplus/humanevalplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
Code
{ "style": "rule", "ground_truth": "{\"task_id\": \"HumanEval/163\", \"entry_point\": \"generate_integers\", \"prompt\": \"\\ndef generate_integers(a, b):\\n \\\"\\\"\\\"\\n Given two positive integers a and b, return the even digits between a\\n and b, in ascending order.\\n\\n For example:\\n gener...
{ "split": "test", "index": 163, "task_id": "HumanEval/163", "dataset": "evalplus/humanevalplus" }
evalplus/mbppplus
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and 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" }