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/759\", \"entry_point\": \"is_decimal\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check whether a given string is a decimal number with a precision of 2.\\nassert is_decimal('123.11')==True\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef is_decim... | {
"split": "test",
"index": 336,
"task_id": "Mbpp/759",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/760\", \"entry_point\": \"unique_Element\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to check whether a list of numbers contains only one distinct element or not.\\nassert unique_Element([1,1,1]) == True\\n\\\"\\\"\\\"\\n\", \"canonical_solution\"... | {
"split": "test",
"index": 337,
"task_id": "Mbpp/760",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/762\", \"entry_point\": \"check_monthnumber_number\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check whether the given month number contains 30 days or not. Months are given as number from 1 to 12.\\nassert check_monthnumber_number(6)==True\\n\\\"\\\"... | {
"split": "test",
"index": 338,
"task_id": "Mbpp/762",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/763\", \"entry_point\": \"find_min_diff\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the minimum difference between any two elements in a given array. \\nassert find_min_diff((1,5,3,19,18,25),6) == 1\\n\\\"\\\"\\\"\\n\", \"canonical_solutio... | {
"split": "test",
"index": 339,
"task_id": "Mbpp/763",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/764\", \"entry_point\": \"number_ctr\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to count number of digits in a given string.\\nassert number_ctr('program2bedone') == 1\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef number_ctr(s):\\n ret... | {
"split": "test",
"index": 340,
"task_id": "Mbpp/764",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/765\", \"entry_point\": \"is_polite\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find nth polite number. geeksforgeeks.org/n-th-polite-number/\\nassert is_polite(7) == 11\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nimport math \\ndef is_polite(n)... | {
"split": "test",
"index": 341,
"task_id": "Mbpp/765",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/766\", \"entry_point\": \"pair_wise\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to return a list of all pairs of consecutive items in a given list.\\nassert pair_wise([1,1,2,3,3,4,4,5])==[(1, 1), (1, 2), (2, 3), (3, 3), (3, 4), (4, 4), (4, 5)]\\n\\\"\\\"... | {
"split": "test",
"index": 342,
"task_id": "Mbpp/766",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/767\", \"entry_point\": \"get_pairs_count\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to count the number of pairs whose sum is equal to \\u2018sum\\u2019. The funtion gets as input a list of numbers and the sum,\\nassert get_pairs_count([1,1,1,1]... | {
"split": "test",
"index": 343,
"task_id": "Mbpp/767",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/769\", \"entry_point\": \"Diff\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to get the difference between two lists.\\nassert (Diff([10, 15, 20, 25, 30, 35, 40], [25, 40, 35])) == [10, 20, 30, 15]\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nd... | {
"split": "test",
"index": 344,
"task_id": "Mbpp/769",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/770\", \"entry_point\": \"odd_num_sum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the sum of fourth power of first n odd natural numbers.\\nassert odd_num_sum(2) == 82\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef odd_num_sum(n) : ... | {
"split": "test",
"index": 345,
"task_id": "Mbpp/770",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/771\", \"entry_point\": \"check_expression\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check if the given expression is balanced or not. \\nassert check_expression(\\\"{()}[{}]\\\") == True\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nfrom collec... | {
"split": "test",
"index": 346,
"task_id": "Mbpp/771",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/772\", \"entry_point\": \"remove_length\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to remove all the words with k length in the given string.\\nassert remove_length('The person is most value tet', 3) == 'person is most value'\\n\\\"\\\"\\\"\\n\", \"cano... | {
"split": "test",
"index": 347,
"task_id": "Mbpp/772",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/773\", \"entry_point\": \"occurance_substring\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the occurrence and position of the substrings within a string. Return None if there is no match.\\nassert occurance_substring('python programming, python la... | {
"split": "test",
"index": 348,
"task_id": "Mbpp/773",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/775\", \"entry_point\": \"odd_position\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to check whether every odd index contains odd numbers of a given list.\\nassert odd_position([2,1,4,3,6,7,6,3]) == True\\n\\\"\\\"\\\"\\n\", \"canonical_solution\":... | {
"split": "test",
"index": 349,
"task_id": "Mbpp/775",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/777\", \"entry_point\": \"find_sum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the sum of non-repeated elements in a given list.\\nassert find_sum([1,2,3,1,1,4,5,6]) == 21\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef find_sum(arr)... | {
"split": "test",
"index": 350,
"task_id": "Mbpp/777",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/778\", \"entry_point\": \"pack_consecutive_duplicates\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to pack consecutive duplicates of a given list elements into sublists.\\nassert pack_consecutive_duplicates([0, 0, 1, 2, 3, 4, 4, 5, 6, 6, 6, 7, 8, 9, 4, 4]... | {
"split": "test",
"index": 351,
"task_id": "Mbpp/778",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/780\", \"entry_point\": \"find_combinations\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the combinations of sums with tuples in the given tuple list. \\nassert find_combinations([(2, 4), (6, 7), (5, 1), (6, 10)]) == [(8, 11), (7, 5), (8, 14), (11... | {
"split": "test",
"index": 352,
"task_id": "Mbpp/780",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/781\", \"entry_point\": \"count_divisors\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to check whether the count of divisors is even. \\nassert count_divisors(10)\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nimport math \\ndef count_divisors(n... | {
"split": "test",
"index": 353,
"task_id": "Mbpp/781",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/782\", \"entry_point\": \"odd_length_sum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the sum of all odd length subarrays. \\nassert odd_length_sum([1,2,4]) == 14\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef odd_length_sum(arr):\\n... | {
"split": "test",
"index": 354,
"task_id": "Mbpp/782",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/784\", \"entry_point\": \"mul_even_odd\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find the product of first even and odd number of a given list.\\nassert mul_even_odd([1,3,5,7,4,1,6,8])==4\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef mul_eve... | {
"split": "test",
"index": 355,
"task_id": "Mbpp/784",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/785\", \"entry_point\": \"tuple_str_int\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to convert tuple string to integer tuple.\\nassert tuple_str_int(\\\"(7, 8, 9)\\\") == (7, 8, 9)\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef tuple_str_int(test_... | {
"split": "test",
"index": 356,
"task_id": "Mbpp/785",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/786\", \"entry_point\": \"right_insertion\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to locate the right insertion point for a specified value in sorted order.\\nassert right_insertion([1,2,4,5],6)==4\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nim... | {
"split": "test",
"index": 357,
"task_id": "Mbpp/786",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/787\", \"entry_point\": \"text_match_three\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that matches a string that has an a followed by three 'b'.\\nassert not text_match_three(\\\"ac\\\")\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nimport re\\ndef ... | {
"split": "test",
"index": 358,
"task_id": "Mbpp/787",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/788\", \"entry_point\": \"new_tuple\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to create a new tuple from the given string and list.\\nassert new_tuple([\\\"WEB\\\", \\\"is\\\"], \\\"best\\\") == ('WEB', 'is', 'best')\\n\\\"\\\"\\\"\\n\", \"canonical_so... | {
"split": "test",
"index": 359,
"task_id": "Mbpp/788",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/790\", \"entry_point\": \"even_position\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to check whether every even index contains even numbers of a given list.\\nassert even_position([3,2,1]) == False\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\... | {
"split": "test",
"index": 360,
"task_id": "Mbpp/790",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/791\", \"entry_point\": \"remove_nested\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to remove tuples from the given tuple.\\nassert remove_nested((1, 5, 7, (4, 6), 10)) == (1, 5, 7, 10)\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef remove_nested(... | {
"split": "test",
"index": 361,
"task_id": "Mbpp/791",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/792\", \"entry_point\": \"count_list\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to count the number of lists in a given number of lists.\\nassert count_list([[1, 3], [5, 7], [9, 11], [13, 15, 17]]) == 4\\n\\\"\\\"\\\"\\n\", \"canonical_solution\"... | {
"split": "test",
"index": 362,
"task_id": "Mbpp/792",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/793\", \"entry_point\": \"last\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the last position of an element in a sorted array.\\nassert last([1,2,3],1) == 0\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef last(arr,x):\\n return len... | {
"split": "test",
"index": 363,
"task_id": "Mbpp/793",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/794\", \"entry_point\": \"text_starta_endb\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that matches a string that has an 'a' followed by anything, ending in 'b'.\\nassert text_starta_endb(\\\"aabbbb\\\")\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\n... | {
"split": "test",
"index": 364,
"task_id": "Mbpp/794",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/796\", \"entry_point\": \"return_sum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite function to find the sum of all items in the given dictionary.\\nassert return_sum({'a': 100, 'b':200, 'c':300}) == 600\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef return_sum... | {
"split": "test",
"index": 365,
"task_id": "Mbpp/796",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/797\", \"entry_point\": \"sum_in_range\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the sum of all odd natural numbers within the range l and r.\\nassert sum_in_range(2,5) == 8\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef sum_odd(n... | {
"split": "test",
"index": 366,
"task_id": "Mbpp/797",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/798\", \"entry_point\": \"_sum\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the sum of an array.\\nassert _sum([1, 2, 3]) == 6\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef _sum(arr): \\n return sum(arr)\\n\", \"base_input\": [[... | {
"split": "test",
"index": 367,
"task_id": "Mbpp/798",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/799\", \"entry_point\": \"left_rotate\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to that rotate left bits by d bits a given number. We assume that the number is 32 bit.\\nassert left_rotate(16,2) == 64\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\nd... | {
"split": "test",
"index": 368,
"task_id": "Mbpp/799",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/800\", \"entry_point\": \"remove_all_spaces\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to remove all whitespaces from a string.\\nassert remove_all_spaces('python program')==('pythonprogram')\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef remove... | {
"split": "test",
"index": 369,
"task_id": "Mbpp/800",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/801\", \"entry_point\": \"test_three_equal\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to count the number of equal numbers from three given integers.\\nassert test_three_equal(1,1,1) == 3\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef test... | {
"split": "test",
"index": 370,
"task_id": "Mbpp/801",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/803\", \"entry_point\": \"is_perfect_square\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check whether the given number is a perfect square or not. \\nassert not is_perfect_square(10)\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef is_perfect_squ... | {
"split": "test",
"index": 371,
"task_id": "Mbpp/803",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/804\", \"entry_point\": \"is_product_even\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check whether the product of numbers in a list is even or not.\\nassert is_product_even([1,2,3])\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef is_product_eve... | {
"split": "test",
"index": 372,
"task_id": "Mbpp/804",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/805\", \"entry_point\": \"max_sum_list\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function that returns the list in a list of lists whose sum of elements is the highest.\\nassert max_sum_list([[1,2,3], [4,5,6], [10,11,12], [7,8,9]])==[10, 11, 12]\\n\\\"\\\"\\\"\... | {
"split": "test",
"index": 373,
"task_id": "Mbpp/805",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/806\", \"entry_point\": \"max_run_uppercase\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to find maximum run of uppercase characters in the given string.\\nassert max_run_uppercase('GeMKSForGERksISBESt') == 5\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \... | {
"split": "test",
"index": 374,
"task_id": "Mbpp/806",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/807\", \"entry_point\": \"first_odd\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a python function to find the first odd number in a given list of numbers.\\nassert first_odd([1,3,5]) == 1\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef first_odd(nums):\\n fi... | {
"split": "test",
"index": 375,
"task_id": "Mbpp/807",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/808\", \"entry_point\": \"check_K\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check if the given tuples contain the k or not.\\nassert check_K((10, 4, 5, 6, 8), 6) == True\\n\\\"\\\"\\\"\\n\", \"canonical_solution\": \"\\ndef check_K(test_tup, K):\\n ... | {
"split": "test",
"index": 376,
"task_id": "Mbpp/808",
"dataset": "evalplus/mbppplus"
} |
evalplus/mbppplus | [
{
"role": "system",
"content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with... | Code | {
"style": "rule",
"ground_truth": "{\"task_id\": \"Mbpp/809\", \"entry_point\": \"check_smaller\", \"prompt\": \"\\\"\\\"\\\"\\nWrite a function to check if each element of second tuple is smaller than its corresponding element in the first tuple.\\nassert check_smaller((1, 2, 3), (2, 3, 4)) == False\\n\\\"\\\"\\\... | {
"split": "test",
"index": 377,
"task_id": "Mbpp/809",
"dataset": "evalplus/mbppplus"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.