Full benchmark source
MBPP: every task.
500 tasks · test · source IDs 11–510 (training and validation excluded)
500 of 500 tasks · mbpp
mbpp-100Python · Write a function to find the next smallest palindrome of a specified number. Source prompt examples: assert next_smalle…
Original task
Write a function to find the next smallest palindrome of a specified number. Source prompt examples: assert next_smallest_palindrome(99)==101 assert next_smallest_palindrome(1221)==1331 assert next_smallest_palindrome(120)==121
- Source ID
- 100
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-101Python · Write a function to find the kth element in the given array. Source prompt examples: assert kth_element([12,3,5,7,19], …
Original task
Write a function to find the kth element in the given array. Source prompt examples: assert kth_element([12,3,5,7,19], 5, 2) == 3 assert kth_element([17,24,8,23], 4, 3) == 8 assert kth_element([16,21,25,36,4], 5, 4) == 36
- Source ID
- 101
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-102Python · Write a function to convert snake case string to camel case string. Source prompt examples: assert snake_to_camel('pyth…
Original task
Write a function to convert snake case string to camel case string. Source prompt examples: assert snake_to_camel('python_program')=='PythonProgram' assert snake_to_camel('python_language')==('PythonLanguage') assert snake_to_camel('programming_language')==('ProgrammingLanguage')
- Source ID
- 102
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-103Python · Write a function to find eulerian number a(n, m). Source prompt examples: assert eulerian_num(3, 1) == 4 assert euleria…
Original task
Write a function to find eulerian number a(n, m). Source prompt examples: assert eulerian_num(3, 1) == 4 assert eulerian_num(4, 1) == 11 assert eulerian_num(5, 3) == 26
- Source ID
- 103
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-104Python · Write a function to sort each sublist of strings in a given list of lists using lambda function. Source prompt examples…
Original task
Write a function to sort each sublist of strings in a given list of lists using lambda function. Source prompt examples: assert sort_sublists((["green", "orange"], ["black", "white"], ["white", "black", "orange"]))==[['green', 'orange'], ['black', 'white'], ['black', 'orange', 'white']] assert sort_sublists(([" red ","green" ],["blue "," black"],[" orange","brown"]))==[[' red ', 'green'], [' black', 'blue '], [' orange', 'brown']] assert sort_sublists((["zilver","gold"], ["magnesium","aluminium"], ["steel", "bronze"]))==[['gold', 'zilver'],['aluminium', 'magnesium'], ['bronze', 'steel']]
- Source ID
- 104
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-105Python · Write a python function to count true booleans in the given list. Source prompt examples: assert count([True,False,True…
Original task
Write a python function to count true booleans in the given list. Source prompt examples: assert count([True,False,True]) == 2 assert count([False,False]) == 0 assert count([True,True,True]) == 3
- Source ID
- 105
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-106Python · Write a function to add the given list to the given tuples. Source prompt examples: assert add_lists([5, 6, 7], (9, 10)…
Original task
Write a function to add the given list to the given tuples. Source prompt examples: assert add_lists([5, 6, 7], (9, 10)) == (9, 10, 5, 6, 7) assert add_lists([6, 7, 8], (10, 11)) == (10, 11, 6, 7, 8) assert add_lists([7, 8, 9], (11, 12)) == (11, 12, 7, 8, 9)
- Source ID
- 106
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-107Python · Write a python function to count hexadecimal numbers for a given range. Source prompt examples: assert count_Hexadecima…
Original task
Write a python function to count hexadecimal numbers for a given range. Source prompt examples: assert count_Hexadecimal(10,15) == 6 assert count_Hexadecimal(2,4) == 0 assert count_Hexadecimal(15,16) == 1
- Source ID
- 107
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-108Python · Write a function to merge multiple sorted inputs into a single sorted iterator using heap queue algorithm. Source promp…
Original task
Write a function to merge multiple sorted inputs into a single sorted iterator using heap queue algorithm. Source prompt examples: assert merge_sorted_list([25, 24, 15, 4, 5, 29, 110],[19, 20, 11, 56, 25, 233, 154],[24, 26, 54, 48])==[4, 5, 11, 15, 19, 20, 24, 24, 25, 25, 26, 29, 48, 54, 56, 110, 154, 233] assert merge_sorted_list([1, 3, 5, 6, 8, 9], [2, 5, 7, 11], [1, 4, 7, 8, 12])==[1, 1, 2, 3, 4, 5, 5, 6, 7, 7, 8, 8, 9, 11, 12] assert merge_sorted_list([18, 14, 10, 9, 8, 7, 9, 3, 2, 4, 1],[25, 35, 22, 85, 14, 65, 75, 25, 58],[12, 74, 9, 50, 61, 41])==[1, 2, 3, 4, 7, 8, 9, 9, 9, 10, 12, 14, 14, 18, 22, 25, 25, 35, 41, 50, 58, 61, 65, 74, 75, 85]
- Source ID
- 108
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-109Python · Write a python function to find the count of rotations of a binary string with odd value. Source prompt examples: asser…
Original task
Write a python function to find the count of rotations of a binary string with odd value. Source prompt examples: assert odd_Equivalent("011001",6) == 3 assert odd_Equivalent("11011",5) == 4 assert odd_Equivalent("1010",4) == 2
- Source ID
- 109
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-11Python · Write a python function to remove first and last occurrence of a given character from the string. Source prompt example…
Original task
Write a python function to remove first and last occurrence of a given character from the string. Source prompt examples: assert remove_Occ("hello","l") == "heo" assert remove_Occ("abcda","a") == "bcd" assert remove_Occ("PHP","P") == "H"
- Source ID
- 11
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-110Python · Write a function to extract the ranges that are missing from the given list with the given start range and end range val…
Original task
Write a function to extract the ranges that are missing from the given list with the given start range and end range values. Source prompt examples: assert extract_missing([(6, 9), (15, 34), (48, 70)], 2, 100) == [(2, 6), (9, 100), (9, 15), (34, 100), (34, 48), (70, 100)] assert extract_missing([(7, 2), (15, 19), (38, 50)], 5, 60) == [(5, 7), (2, 60), (2, 15), (19, 60), (19, 38), (50, 60)] assert extract_missing([(7, 2), (15, 19), (38, 50)], 1, 52) == [(1, 7), (2, 52), (2, 15), (19, 52), (19, 38), (50, 52)]
- Source ID
- 110
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-111Python · Write a function to find common elements in given nested lists. * list item * list item * list item * list item Source …
Original task
Write a function to find common elements in given nested lists. * list item * list item * list item * list item Source prompt examples: assert common_in_nested_lists([[12, 18, 23, 25, 45], [7, 12, 18, 24, 28], [1, 5, 8, 12, 15, 16, 18]])==[18, 12] assert common_in_nested_lists([[12, 5, 23, 25, 45], [7, 11, 5, 23, 28], [1, 5, 8, 18, 23, 16]])==[5,23] assert common_in_nested_lists([[2, 3,4, 1], [4, 5], [6,4, 8],[4, 5], [6, 8,4]])==[4]
- Source ID
- 111
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-112Python · Write a python function to find the perimeter of a cylinder. Source prompt examples: assert perimeter(2,4) == 12 assert…
Original task
Write a python function to find the perimeter of a cylinder. Source prompt examples: assert perimeter(2,4) == 12 assert perimeter(1,2) == 6 assert perimeter(3,1) == 8
- Source ID
- 112
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-113Python · Write a function to check if a string represents an integer or not. Source prompt examples: assert check_integer("pytho…
Original task
Write a function to check if a string represents an integer or not. Source prompt examples: assert check_integer("python")==False assert check_integer("1")==True assert check_integer("12345")==True
- Source ID
- 113
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-114Python · Write a function to assign frequency to each tuple in the given tuple list. Source prompt examples: assert assign_freq(…
Original task
Write a function to assign frequency to each tuple in the given tuple list. Source prompt examples: assert assign_freq([(6, 5, 8), (2, 7), (6, 5, 8), (6, 5, 8), (9, ), (2, 7)] ) == '[(6, 5, 8, 3), (2, 7, 2), (9, 1)]' assert assign_freq([(4, 2, 4), (7, 1), (4, 8), (4, 2, 4), (9, 2), (7, 1)] ) == '[(4, 2, 4, 2), (7, 1, 2), (4, 8, 1), (9, 2, 1)]' assert assign_freq([(11, 13, 10), (17, 21), (4, 2, 3), (17, 21), (9, 2), (4, 2, 3)] ) == '[(11, 13, 10, 1), (17, 21, 2), (4, 2, 3, 2), (9, 2, 1)]'
- Source ID
- 114
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-115Python · Write a function to check whether all dictionaries in a list are empty or not. Source prompt examples: assert empty_dit…
Original task
Write a function to check whether all dictionaries in a list are empty or not. Source prompt examples: assert empty_dit([{},{},{}])==True assert empty_dit([{1,2},{},{}])==False assert empty_dit({})==True
- Source ID
- 115
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-116Python · Write a function to convert a given tuple of positive integers into an integer. Source prompt examples: assert tuple_to…
Original task
Write a function to convert a given tuple of positive integers into an integer. Source prompt examples: assert tuple_to_int((1,2,3))==123 assert tuple_to_int((4,5,6))==456 assert tuple_to_int((5,6,7))==567
- Source ID
- 116
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-117Python · Write a function to convert all possible convertible elements in the list to float. Source prompt examples: assert list…
Original task
Write a function to convert all possible convertible elements in the list to float. Source prompt examples: assert list_to_float( [("3", "4"), ("1", "26.45"), ("7.32", "8"), ("4", "8")] ) == '[(3.0, 4.0), (1.0, 26.45), (7.32, 8.0), (4.0, 8.0)]' assert list_to_float( [("4", "4"), ("2", "27"), ("4.12", "9"), ("7", "11")] ) == '[(4.0, 4.0), (2.0, 27.0), (4.12, 9.0), (7.0, 11.0)]' assert list_to_float( [("6", "78"), ("5", "26.45"), ("1.33", "4"), ("82", "13")] ) == '[(6.0, 78.0), (5.0, 26.45), (1.33, 4.0), (82.0, 13.0)]'
- Source ID
- 117
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-118Python · [link text](https:// [link text](https:// [link text](https://)))write a function to convert a string to a list. Source…
Original task
[link text](https:// [link text](https:// [link text](https://)))write a function to convert a string to a list. Source prompt examples: assert string_to_list("python programming")==['python','programming'] assert string_to_list("lists tuples strings")==['lists','tuples','strings'] assert string_to_list("write a program")==['write','a','program']
- Source ID
- 118
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-119Python · Write a python function to find the element that appears only once in a sorted array. Source prompt examples: assert se…
Original task
Write a python function to find the element that appears only once in a sorted array. Source prompt examples: assert search([1,1,2,2,3],5) == 3 assert search([1,1,3,3,4,4,5,5,7,7,8],11) == 8 assert search([1,2,2,3,3,4,4],7) == 1
- Source ID
- 119
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-12Python · Write a function to sort a given matrix in ascending order according to the sum of its rows. Source prompt examples: as…
Original task
Write a function to sort a given matrix in ascending order according to the sum of its rows. Source prompt examples: assert sort_matrix([[1, 2, 3], [2, 4, 5], [1, 1, 1]])==[[1, 1, 1], [1, 2, 3], [2, 4, 5]] assert sort_matrix([[1, 2, 3], [-2, 4, -5], [1, -1, 1]])==[[-2, 4, -5], [1, -1, 1], [1, 2, 3]] assert sort_matrix([[5,8,9],[6,4,3],[2,1,4]])==[[2, 1, 4], [6, 4, 3], [5, 8, 9]]
- Source ID
- 12
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-120Python · Write a function to find the maximum product from the pairs of tuples within a given list. Source prompt examples: asse…
Original task
Write a function to find the maximum product from the pairs of tuples within a given list. Source prompt examples: assert max_product_tuple([(2, 7), (2, 6), (1, 8), (4, 9)] )==36 assert max_product_tuple([(10,20), (15,2), (5,10)] )==200 assert max_product_tuple([(11,44), (10,15), (20,5), (12, 9)] )==484
- Source ID
- 120
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-121Python · Write a function to find the triplet with sum of the given array Source prompt examples: assert check_triplet([2, 7, 4,…
Original task
Write a function to find the triplet with sum of the given array Source prompt examples: assert check_triplet([2, 7, 4, 0, 9, 5, 1, 3], 8, 6, 0) == True assert check_triplet([1, 4, 5, 6, 7, 8, 5, 9], 8, 6, 0) == False assert check_triplet([10, 4, 2, 3, 5], 5, 15, 0) == True
- Source ID
- 121
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-122Python · Write a function to find n’th smart number. Source prompt examples: assert smartNumber(1) == 30 assert smartNumber(50) …
Original task
Write a function to find n’th smart number. Source prompt examples: assert smartNumber(1) == 30 assert smartNumber(50) == 273 assert smartNumber(1000) == 2664
- Source ID
- 122
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-123Python · Write a function to sum all amicable numbers from 1 to a specified number. Source prompt examples: assert amicable_numb…
Original task
Write a function to sum all amicable numbers from 1 to a specified number. Source prompt examples: assert amicable_numbers_sum(999)==504 assert amicable_numbers_sum(9999)==31626 assert amicable_numbers_sum(99)==0
- Source ID
- 123
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-124Python · Write a function to get the angle of a complex number. Source prompt examples: assert angle_complex(0,1j)==1.5707963267…
Original task
Write a function to get the angle of a complex number. Source prompt examples: assert angle_complex(0,1j)==1.5707963267948966 assert angle_complex(2,1j)==0.4636476090008061 assert angle_complex(0,2j)==1.5707963267948966
- Source ID
- 124
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-125Python · Write a function to find the maximum difference between the number of 0s and number of 1s in any sub-string of the given…
Original task
Write a function to find the maximum difference between the number of 0s and number of 1s in any sub-string of the given binary string. Source prompt examples: assert find_length("11000010001", 11) == 6 assert find_length("10111", 5) == 1 assert find_length("11011101100101", 14) == 2
- Source ID
- 125
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-126Python · Write a python function to find the sum of common divisors of two given numbers. Source prompt examples: assert sum(10,…
Original task
Write a python function to find the sum of common divisors of two given numbers. Source prompt examples: assert sum(10,15) == 6 assert sum(100,150) == 93 assert sum(4,6) == 3
- Source ID
- 126
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-127Python · Write a function to multiply two integers without using the * operator in python. Source prompt examples: assert multip…
Original task
Write a function to multiply two integers without using the * operator in python. Source prompt examples: assert multiply_int(10,20)==200 assert multiply_int(5,10)==50 assert multiply_int(4,8)==32
- Source ID
- 127
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-128Python · Write a function to shortlist words that are longer than n from a given list of words. Source prompt examples: assert l…
Original task
Write a function to shortlist words that are longer than n from a given list of words. Source prompt examples: assert long_words(3,"python is a programming language")==['python','programming','language'] assert long_words(2,"writing a program")==['writing','program'] assert long_words(5,"sorting list")==['sorting']
- Source ID
- 128
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-129Python · Write a function to calculate magic square. Source prompt examples: assert magic_square_test([[7, 12, 1, 14], [2, 13, 8…
Original task
Write a function to calculate magic square. Source prompt examples: assert magic_square_test([[7, 12, 1, 14], [2, 13, 8, 11], [16, 3, 10, 5], [9, 6, 15, 4]])==True assert magic_square_test([[2, 7, 6], [9, 5, 1], [4, 3, 8]])==True assert magic_square_test([[2, 7, 6], [9, 5, 1], [4, 3, 7]])==False
- Source ID
- 129
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-13Python · Write a function to count the most common words in a dictionary. Source prompt examples: assert count_common(['red','gr…
Original task
Write a function to count the most common words in a dictionary. Source prompt examples: assert count_common(['red','green','black','pink','black','white','black','eyes','white','black','orange','pink','pink','red','red','white','orange','white',"black",'pink','green','green','pink','green','pink','white','orange',"orange",'red']) == [('pink', 6), ('black', 5), ('white', 5), ('red', 4)] assert count_common(['one', 'two', 'three', 'four', 'five', 'one', 'two', 'one', 'three', 'one']) == [('one', 4), ('two', 2), ('three', 2), ('four', 1)] assert count_common(['Facebook', 'Apple', 'Amazon', 'Netflix', 'Google', 'Apple', 'Netflix', 'Amazon']) == [('Apple', 2), ('Amazon', 2), ('Netflix', 2), ('Facebook', 1)]
- Source ID
- 13
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-130Python · Write a function to find the item with maximum frequency in a given list. Source prompt examples: assert max_occurrence…
Original task
Write a function to find the item with maximum frequency in a given list. Source prompt examples: assert max_occurrences([2,3,8,4,7,9,8,2,6,5,1,6,1,2,3,2,4,6,9,1,2])==(2, 5) assert max_occurrences([2,3,8,4,7,9,8,7,9,15,14,10,12,13,16,16,18])==(8, 2) assert max_occurrences([10,20,20,30,40,90,80,50,30,20,50,10])==(20, 3)
- Source ID
- 130
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-131Python · Write a python function to reverse only the vowels of a given string. Source prompt examples: assert reverse_vowels("Py…
Original task
Write a python function to reverse only the vowels of a given string. Source prompt examples: assert reverse_vowels("Python") == "Python" assert reverse_vowels("USA") == "ASU" assert reverse_vowels("ab") == "ab"
- Source ID
- 131
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-132Python · Write a function to convert tuple to a string. Source prompt examples: assert tup_string(('e', 'x', 'e', 'r', 'c', 'i',…
Original task
Write a function to convert tuple to a string. Source prompt examples: assert tup_string(('e', 'x', 'e', 'r', 'c', 'i', 's', 'e', 's'))==("exercises") assert tup_string(('p','y','t','h','o','n'))==("python") assert tup_string(('p','r','o','g','r','a','m'))==("program")
- Source ID
- 132
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-133Python · Write a function to calculate the sum of the negative numbers of a given list of numbers using lambda function. Source …
Original task
Write a function to calculate the sum of the negative numbers of a given list of numbers using lambda function. Source prompt examples: assert sum_negativenum([2, 4, -6, -9, 11, -12, 14, -5, 17])==-32 assert sum_negativenum([10,15,-14,13,-18,12,-20])==-52 assert sum_negativenum([19, -65, 57, 39, 152,-639, 121, 44, 90, -190])==-894
- Source ID
- 133
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-134Python · Write a python function to check whether the last element of given array is even or odd after performing an operation p …
Original task
Write a python function to check whether the last element of given array is even or odd after performing an operation p times. Source prompt examples: assert check_last([5,7,10],3,1) == "ODD" assert check_last([2,3],2,3) == "EVEN" assert check_last([1,2,3],3,1) == "ODD"
- Source ID
- 134
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-135Python · Write a function to find the nth hexagonal number. Source prompt examples: assert hexagonal_num(10) == 190 assert hexag…
Original task
Write a function to find the nth hexagonal number. Source prompt examples: assert hexagonal_num(10) == 190 assert hexagonal_num(5) == 45 assert hexagonal_num(7) == 91
- Source ID
- 135
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-136Python · Write a function to calculate electricity bill. Source prompt examples: assert cal_electbill(75)==246.25 assert cal_ele…
Original task
Write a function to calculate electricity bill. Source prompt examples: assert cal_electbill(75)==246.25 assert cal_electbill(265)==1442.75 assert cal_electbill(100)==327.5
- Source ID
- 136
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-137Python · Write a function to find the ration of zeroes in an array of integers. Source prompt examples: assert zero_count([0, 1,…
Original task
Write a function to find the ration of zeroes in an array of integers. Source prompt examples: assert zero_count([0, 1, 2, -1, -5, 6, 0, -3, -2, 3, 4, 6, 8])==0.15 assert zero_count([2, 1, 2, -1, -5, 6, 4, -3, -2, 3, 4, 6, 8])==0.00 assert zero_count([2, 4, -6, -9, 11, -12, 14, -5, 17])==0.00
- Source ID
- 137
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-138Python · Write a python function to check whether the given number can be represented as sum of non-zero powers of 2 or not. Sou…
Original task
Write a python function to check whether the given number can be represented as sum of non-zero powers of 2 or not. Source prompt examples: assert is_Sum_Of_Powers_Of_Two(10) == True assert is_Sum_Of_Powers_Of_Two(7) == False assert is_Sum_Of_Powers_Of_Two(14) == True
- Source ID
- 138
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-139Python · Write a function to find the circumference of a circle. Source prompt examples: assert circle_circumference(10)==62.830…
Original task
Write a function to find the circumference of a circle. Source prompt examples: assert circle_circumference(10)==62.830000000000005 assert circle_circumference(5)==31.415000000000003 assert circle_circumference(4)==25.132
- Source ID
- 139
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-14Python · Write a python function to find the volume of a triangular prism. Source prompt examples: assert find_Volume(10,8,6) ==…
Original task
Write a python function to find the volume of a triangular prism. Source prompt examples: assert find_Volume(10,8,6) == 240 assert find_Volume(3,2,2) == 6 assert find_Volume(1,2,1) == 1
- Source ID
- 14
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-140Python · Write a function to extract elements that occur singly in the given tuple list. Source prompt examples: assert extract_…
Original task
Write a function to extract elements that occur singly in the given tuple list. Source prompt examples: assert extract_singly([(3, 4, 5), (4, 5, 7), (1, 4)]) == [3, 4, 5, 7, 1] assert extract_singly([(1, 2, 3), (4, 2, 3), (7, 8)]) == [1, 2, 3, 4, 7, 8] assert extract_singly([(7, 8, 9), (10, 11, 12), (10, 11)]) == [7, 8, 9, 10, 11, 12]
- Source ID
- 140
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-141Python · Write a function to sort a list of elements using pancake sort. Source prompt examples: assert pancake_sort([15, 79, 25…
Original task
Write a function to sort a list of elements using pancake sort. Source prompt examples: assert pancake_sort([15, 79, 25, 38, 69]) == [15, 25, 38, 69, 79] assert pancake_sort([98, 12, 54, 36, 85]) == [12, 36, 54, 85, 98] assert pancake_sort([41, 42, 32, 12, 23]) == [12, 23, 32, 41, 42]
- Source ID
- 141
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-142Python · Write a function to count the same pair in three given lists. Source prompt examples: assert count_samepair([1,2,3,4,5,…
Original task
Write a function to count the same pair in three given lists. Source prompt examples: assert count_samepair([1,2,3,4,5,6,7,8],[2,2,3,1,2,6,7,9],[2,1,3,1,2,6,7,9])==3 assert count_samepair([1,2,3,4,5,6,7,8],[2,2,3,1,2,6,7,8],[2,1,3,1,2,6,7,8])==4 assert count_samepair([1,2,3,4,2,6,7,8],[2,2,3,1,2,6,7,8],[2,1,3,1,2,6,7,8])==5
- Source ID
- 142
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-143Python · Write a function to find number of lists present in the given tuple. Source prompt examples: assert find_lists(([1, 2, …
Original task
Write a function to find number of lists present in the given tuple. Source prompt examples: assert find_lists(([1, 2, 3, 4], [5, 6, 7, 8])) == 2 assert find_lists(([1, 2], [3, 4], [5, 6])) == 3 assert find_lists(([9, 8, 7, 6, 5, 4, 3, 2, 1])) == 1
- Source ID
- 143
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-144Python · Write a python function to find the sum of absolute differences in all pairs of the given array. Source prompt examples…
Original task
Write a python function to find the sum of absolute differences in all pairs of the given array. Source prompt examples: assert sum_Pairs([1,8,9,15,16],5) == 74 assert sum_Pairs([1,2,3,4],4) == 10 assert sum_Pairs([1,2,3,4,5,7,9,11,14],9) == 188
- Source ID
- 144
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-145Python · Write a python function to find the maximum difference between any two elements in a given array. Source prompt example…
Original task
Write a python function to find the maximum difference between any two elements in a given array. Source prompt examples: assert max_Abs_Diff((2,1,5,3),4) == 4 assert max_Abs_Diff((9,3,2,5,1),5) == 8 assert max_Abs_Diff((3,2,1),3) == 2
- Source ID
- 145
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-146Python · Write a function to find the ascii value of total characters in a string. Source prompt examples: assert ascii_value_st…
Original task
Write a function to find the ascii value of total characters in a string. Source prompt examples: assert ascii_value_string("python")==112 assert ascii_value_string("Program")==80 assert ascii_value_string("Language")==76
- Source ID
- 146
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-147Python · Write a function to find the maximum total path sum in the given triangle. Source prompt examples: assert max_path_sum(…
Original task
Write a function to find the maximum total path sum in the given triangle. Source prompt examples: assert max_path_sum([[1, 0, 0], [4, 8, 0], [1, 5, 3]], 2, 2) == 14 assert max_path_sum([[13, 0, 0], [7, 4, 0], [2, 4, 6]], 2, 2) == 24 assert max_path_sum([[2, 0, 0], [11, 18, 0], [21, 25, 33]], 2, 2) == 53
- Source ID
- 147
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-148Python · Write a function to divide a number into two parts such that the sum of digits is maximum. Source prompt examples: asse…
Original task
Write a function to divide a number into two parts such that the sum of digits is maximum. Source prompt examples: assert sum_digits_twoparts(35)==17 assert sum_digits_twoparts(7)==7 assert sum_digits_twoparts(100)==19
- Source ID
- 148
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-149Python · Write a function to find the longest subsequence such that the difference between adjacents is one for the given array. …
Original task
Write a function to find the longest subsequence such that the difference between adjacents is one for the given array. Source prompt examples: assert longest_subseq_with_diff_one([1, 2, 3, 4, 5, 3, 2], 7) == 6 assert longest_subseq_with_diff_one([10, 9, 4, 5, 4, 8, 6], 7) == 3 assert longest_subseq_with_diff_one([1, 2, 3, 2, 3, 7, 2, 1], 8) == 7
- Source ID
- 149
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-15Python · Write a function to split a string at lowercase letters. Source prompt examples: assert split_lowerstring("AbCd")==['bC…
Original task
Write a function to split a string at lowercase letters. Source prompt examples: assert split_lowerstring("AbCd")==['bC','d'] assert split_lowerstring("Python")==['y', 't', 'h', 'o', 'n'] assert split_lowerstring("Programming")==['r', 'o', 'g', 'r', 'a', 'm', 'm', 'i', 'n', 'g']
- Source ID
- 15
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-150Python · Write a python function to find whether the given number is present in the infinite sequence or not. Source prompt exam…
Original task
Write a python function to find whether the given number is present in the infinite sequence or not. Source prompt examples: assert does_Contain_B(1,7,3) == True assert does_Contain_B(1,-3,5) == False assert does_Contain_B(3,2,5) == False
- Source ID
- 150
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-151Python · Write a python function to check whether the given number is co-prime or not. Source prompt examples: assert is_coprime…
Original task
Write a python function to check whether the given number is co-prime or not. Source prompt examples: assert is_coprime(17,13) == True assert is_coprime(15,21) == False assert is_coprime(25,45) == False
- Source ID
- 151
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-152Python · Write a function to sort the given array by using merge sort. Source prompt examples: assert merge_sort([3, 4, 2, 6, 5,…
Original task
Write a function to sort the given array by using merge sort. Source prompt examples: assert merge_sort([3, 4, 2, 6, 5, 7, 1, 9]) == [1, 2, 3, 4, 5, 6, 7, 9] assert merge_sort([7, 25, 45, 78, 11, 33, 19]) == [7, 11, 19, 25, 33, 45, 78] assert merge_sort([3, 1, 4, 9, 8]) == [1, 3, 4, 8, 9]
- Source ID
- 152
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-153Python · Write a function to find the vertex of a parabola. Source prompt examples: assert parabola_vertex(5,3,2)==(-0.3, 1.55) …
Original task
Write a function to find the vertex of a parabola. Source prompt examples: assert parabola_vertex(5,3,2)==(-0.3, 1.55) assert parabola_vertex(9,8,4)==(-0.4444444444444444, 2.2222222222222223) assert parabola_vertex(2,4,6)==(-1.0, 4.0)
- Source ID
- 153
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-154Python · Write a function to extract every specified element from a given two dimensional list. Source prompt examples: assert s…
Original task
Write a function to extract every specified element from a given two dimensional list. Source prompt examples: assert specified_element([[1, 2, 3, 2], [4, 5, 6, 2], [7, 1, 9, 5]],0)==[1, 4, 7] assert specified_element([[1, 2, 3, 2], [4, 5, 6, 2], [7, 1, 9, 5]],2)==[3, 6, 9] assert specified_element([[1, 2, 3, 2], [4, 5, 6, 2], [7, 1, 9, 5]],3)==[2,2,5]
- Source ID
- 154
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-155Python · Write a python function to toggle all even bits of a given number. Source prompt examples: assert even_bit_toggle_numbe…
Original task
Write a python function to toggle all even bits of a given number. Source prompt examples: assert even_bit_toggle_number(10) == 0 assert even_bit_toggle_number(20) == 30 assert even_bit_toggle_number(30) == 20
- Source ID
- 155
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-156Python · Write a function to convert a tuple of string values to a tuple of integer values. Source prompt examples: assert tuple…
Original task
Write a function to convert a tuple of string values to a tuple of integer values. Source prompt examples: assert tuple_int_str((('333', '33'), ('1416', '55')))==((333, 33), (1416, 55)) assert tuple_int_str((('999', '99'), ('1000', '500')))==((999, 99), (1000, 500)) assert tuple_int_str((('666', '66'), ('1500', '555')))==((666, 66), (1500, 555))
- Source ID
- 156
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-157Python · Write a function to reflect the run-length encoding from a list. Source prompt examples: assert encode_list([1,1,2,3,4,…
Original task
Write a function to reflect the run-length encoding from a list. Source prompt examples: assert encode_list([1,1,2,3,4,4.3,5,1])==[[2, 1], [1, 2], [1, 3], [1, 4], [1, 4.3], [1, 5], [1, 1]] assert encode_list('automatically')==[[1, 'a'], [1, 'u'], [1, 't'], [1, 'o'], [1, 'm'], [1, 'a'], [1, 't'], [1, 'i'], [1, 'c'], [1, 'a'], [2, 'l'], [1, 'y']] assert encode_list('python')==[[1, 'p'], [1, 'y'], [1, 't'], [1, 'h'], [1, 'o'], [1, 'n']]
- Source ID
- 157
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-158Python · Write a python function to find k number of operations required to make all elements equal. Source prompt examples: ass…
Original task
Write a python function to find k number of operations required to make all elements equal. Source prompt examples: assert min_Ops([2,2,2,2],4,3) == 0 assert min_Ops([4,2,6,8],4,3) == -1 assert min_Ops([21,33,9,45,63],5,6) == 24
- Source ID
- 158
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-159Python · Write a function to print the season for the given month and day. Source prompt examples: assert month_season('January'…
Original task
Write a function to print the season for the given month and day. Source prompt examples: assert month_season('January',4)==('winter') assert month_season('October',28)==('autumn') assert month_season('June',6)==('spring')
- Source ID
- 159
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-16Python · Write a function to find sequences of lowercase letters joined with an underscore. Source prompt examples: assert text_…
Original task
Write a function to find sequences of lowercase letters joined with an underscore. Source prompt examples: assert text_lowercase_underscore("aab_cbbbc")==('Found a match!') assert text_lowercase_underscore("aab_Abbbc")==('Not matched!') assert text_lowercase_underscore("Aaab_abbbc")==('Not matched!')
- Source ID
- 16
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-160Python · Write a function to find x and y that satisfies ax + by = n. Source prompt examples: assert solution(2, 3, 7) == ('x = …
Original task
Write a function to find x and y that satisfies ax + by = n. Source prompt examples: assert solution(2, 3, 7) == ('x = ', 2, ', y = ', 1) assert solution(4, 2, 7) == 'No solution' assert solution(1, 13, 17) == ('x = ', 4, ', y = ', 1)
- Source ID
- 160
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-161Python · Write a function to remove all elements from a given list present in another list. Source prompt examples: assert remov…
Original task
Write a function to remove all elements from a given list present in another list. Source prompt examples: assert remove_elements([1,2,3,4,5,6,7,8,9,10],[2,4,6,8])==[1, 3, 5, 7, 9, 10] assert remove_elements([1, 2, 3, 4, 5, 6, 7, 8, 9, 10],[1, 3, 5, 7])==[2, 4, 6, 8, 9, 10] assert remove_elements([1, 2, 3, 4, 5, 6, 7, 8, 9, 10],[5,7])==[1, 2, 3, 4, 6, 8, 9, 10]
- Source ID
- 161
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-162Python · Write a function to calculate the sum of the positive integers of n+(n-2)+(n-4)... (until n-x =< 0). Source prompt exam…
Original task
Write a function to calculate the sum of the positive integers of n+(n-2)+(n-4)... (until n-x =< 0). Source prompt examples: assert sum_series(6)==12 assert sum_series(10)==30 assert sum_series(9)==25
- Source ID
- 162
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-163Python · Write a function to calculate the area of a regular polygon. Source prompt examples: assert area_polygon(4,20)==400.000…
Original task
Write a function to calculate the area of a regular polygon. Source prompt examples: assert area_polygon(4,20)==400.00000000000006 assert area_polygon(10,15)==1731.1969896610804 assert area_polygon(9,7)==302.90938549487214
- Source ID
- 163
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-164Python · Write a python function to check whether the sum of divisors are same or not. Source prompt examples: assert areEquival…
Original task
Write a python function to check whether the sum of divisors are same or not. Source prompt examples: assert areEquivalent(36,57) == False assert areEquivalent(2,4) == False assert areEquivalent(23,47) == True
- Source ID
- 164
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-165Python · Write a python function to count characters at same position in a given string (lower and uppercase characters) as in en…
Original task
Write a python function to count characters at same position in a given string (lower and uppercase characters) as in english alphabet. Source prompt examples: assert count_char_position("xbcefg") == 2 assert count_char_position("ABcED") == 3 assert count_char_position("AbgdeF") == 5
- Source ID
- 165
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-166Python · Write a python function to count the pairs with xor as an even number. Source prompt examples: assert find_even_Pair([5…
Original task
Write a python function to count the pairs with xor as an even number. Source prompt examples: assert find_even_Pair([5,4,7,2,1],5) == 4 assert find_even_Pair([7,2,8,1,0,5,11],7) == 9 assert find_even_Pair([1,2,3],3) == 1
- Source ID
- 166
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-167Python · Write a python function to find smallest power of 2 greater than or equal to n. Source prompt examples: assert next_Pow…
Original task
Write a python function to find smallest power of 2 greater than or equal to n. Source prompt examples: assert next_Power_Of_2(0) == 1 assert next_Power_Of_2(5) == 8 assert next_Power_Of_2(17) == 32
- Source ID
- 167
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-168Python · Write a python function to find the frequency of a number in a given array. Source prompt examples: assert frequency([1…
Original task
Write a python function to find the frequency of a number in a given array. Source prompt examples: assert frequency([1,2,3],4) == 0 assert frequency([1,2,2,3,3,3,4],3) == 3 assert frequency([0,1,2,3,1,2],1) == 2
- Source ID
- 168
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-169Python · Write a function to calculate the nth pell number. Source prompt examples: assert get_pell(4) == 12 assert get_pell(7) …
Original task
Write a function to calculate the nth pell number. Source prompt examples: assert get_pell(4) == 12 assert get_pell(7) == 169 assert get_pell(8) == 408
- Source ID
- 169
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-17Python · Write a function to find the perimeter of a square. Source prompt examples: assert square_perimeter(10)==40 assert squa…
Original task
Write a function to find the perimeter of a square. Source prompt examples: assert square_perimeter(10)==40 assert square_perimeter(5)==20 assert square_perimeter(4)==16
- Source ID
- 17
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-170Python · Write a function to find sum of the numbers in a list between the indices of a specified range. Source prompt examples:…
Original task
Write a function to find sum of the numbers in a list between the indices of a specified range. Source prompt examples: assert sum_range_list( [2,1,5,6,8,3,4,9,10,11,8,12],8,10)==29 assert sum_range_list( [2,1,5,6,8,3,4,9,10,11,8,12],5,7)==16 assert sum_range_list( [2,1,5,6,8,3,4,9,10,11,8,12],7,10)==38
- Source ID
- 170
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-171Python · Write a function to find the perimeter of a pentagon. Source prompt examples: assert perimeter_pentagon(5)==25 assert p…
Original task
Write a function to find the perimeter of a pentagon. Source prompt examples: assert perimeter_pentagon(5)==25 assert perimeter_pentagon(10)==50 assert perimeter_pentagon(15)==75
- Source ID
- 171
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-172Python · Write a function to find the occurence of characters 'std' in the given string 1. list item 1. list item 1. list item 2.…
Original task
Write a function to find the occurence of characters 'std' in the given string 1. list item 1. list item 1. list item 2. list item 2. list item 2. list item Source prompt examples: assert count_occurance("letstdlenstdporstd") == 3 assert count_occurance("truststdsolensporsd") == 1 assert count_occurance("makestdsostdworthit") == 2
- Source ID
- 172
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-173Python · Write a function to remove everything except alphanumeric characters from a string. Source prompt examples: assert remo…
Original task
Write a function to remove everything except alphanumeric characters from a string. Source prompt examples: assert remove_splchar('python @#&^%$*program123')==('pythonprogram123') assert remove_splchar('python %^$@!^&*() programming24%$^^() language')==('pythonprogramming24language') assert remove_splchar('python ^%&^()(+_)(_^&67) program')==('python67program')
- Source ID
- 173
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-174Python · Write a function to group a sequence of key-value pairs into a dictionary of lists. Source prompt examples: assert grou…
Original task
Write a function to group a sequence of key-value pairs into a dictionary of lists. Source prompt examples: assert group_keyvalue([('yellow', 1), ('blue', 2), ('yellow', 3), ('blue', 4), ('red', 1)])=={'yellow': [1, 3], 'blue': [2, 4], 'red': [1]} assert group_keyvalue([('python', 1), ('python', 2), ('python', 3), ('python', 4), ('python', 5)])=={'python': [1,2,3,4,5]} assert group_keyvalue([('yellow',100), ('blue', 200), ('yellow', 300), ('blue', 400), ('red', 100)])=={'yellow': [100, 300], 'blue': [200, 400], 'red': [100]}
- Source ID
- 174
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-175Python · Write a function to verify validity of a string of parentheses. Source prompt examples: assert is_valid_parenthese("(){…
Original task
Write a function to verify validity of a string of parentheses. Source prompt examples: assert is_valid_parenthese("(){}[]")==True assert is_valid_parenthese("()[{)}")==False assert is_valid_parenthese("()")==True
- Source ID
- 175
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-176Python · Write a function to find the perimeter of a triangle. Source prompt examples: assert perimeter_triangle(10,20,30)==60 a…
Original task
Write a function to find the perimeter of a triangle. Source prompt examples: assert perimeter_triangle(10,20,30)==60 assert perimeter_triangle(3,4,5)==12 assert perimeter_triangle(25,35,45)==105
- Source ID
- 176
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-177Python · Write a python function to find two distinct numbers such that their lcm lies within the given range. Source prompt exa…
Original task
Write a python function to find two distinct numbers such that their lcm lies within the given range. Source prompt examples: assert answer(3,8) == (3,6) assert answer(2,6) == (2,4) assert answer(1,3) == (1,2)
- Source ID
- 177
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-178Python · Write a function to search some literals strings in a string. Source prompt examples: assert string_literals(['language…
Original task
Write a function to search some literals strings in a string. Source prompt examples: assert string_literals(['language'],'python language')==('Matched!') assert string_literals(['program'],'python language')==('Not Matched!') assert string_literals(['python'],'programming language')==('Not Matched!')
- Source ID
- 178
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-179Python · Write a function to find if the given number is a keith number or not. Source prompt examples: assert is_num_keith(14) …
Original task
Write a function to find if the given number is a keith number or not. Source prompt examples: assert is_num_keith(14) == True assert is_num_keith(12) == False assert is_num_keith(197) == True
- Source ID
- 179
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-18Python · Write a function to remove characters from the first string which are present in the second string. Source prompt examp…
Original task
Write a function to remove characters from the first string which are present in the second string. Source prompt examples: assert remove_dirty_chars("probasscurve", "pros") == 'bacuve' assert remove_dirty_chars("digitalindia", "talent") == 'digiidi' assert remove_dirty_chars("exoticmiles", "toxic") == 'emles'
- Source ID
- 18
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-180Python · Write a function to calculate distance between two points using latitude and longitude. Source prompt examples: assert …
Original task
Write a function to calculate distance between two points using latitude and longitude. Source prompt examples: assert distance_lat_long(23.5,67.5,25.5,69.5)==12179.372041317429 assert distance_lat_long(10.5,20.5,30.5,40.5)==6069.397933300514 assert distance_lat_long(10,20,30,40)==6783.751974994595
- Source ID
- 180
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-181Python · Write a function to find the longest common prefix in the given set of strings. Source prompt examples: assert common_p…
Original task
Write a function to find the longest common prefix in the given set of strings. Source prompt examples: assert common_prefix(["tablets", "tables", "taxi", "tamarind"], 4) == 'ta' assert common_prefix(["apples", "ape", "april"], 3) == 'ap' assert common_prefix(["teens", "teenager", "teenmar"], 3) == 'teen'
- Source ID
- 181
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-182Python · Write a function to find uppercase, lowercase, special character and numeric values using regex. Source prompt examples…
Original task
Write a function to find uppercase, lowercase, special character and numeric values using regex. Source prompt examples: assert find_character("ThisIsGeeksforGeeks") == (['T', 'I', 'G', 'G'], ['h', 'i', 's', 's', 'e', 'e', 'k', 's', 'f', 'o', 'r', 'e', 'e', 'k', 's'], [], []) assert find_character("Hithere2") == (['H'], ['i', 't', 'h', 'e', 'r', 'e'], ['2'], []) assert find_character("HeyFolks32") == (['H', 'F'], ['e', 'y', 'o', 'l', 'k', 's'], ['3', '2'], [])
- Source ID
- 182
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-183Python · Write a function to count all the distinct pairs having a difference of k in any array. Source prompt examples: assert …
Original task
Write a function to count all the distinct pairs having a difference of k in any array. Source prompt examples: assert count_pairs([1, 5, 3, 4, 2], 5, 3) == 2 assert count_pairs([8, 12, 16, 4, 0, 20], 6, 4) == 5 assert count_pairs([2, 4, 1, 3, 4], 5, 2) == 3
- Source ID
- 183
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-184Python · Write a function to find all the values in a list that are greater than a specified number. Source prompt examples: ass…
Original task
Write a function to find all the values in a list that are greater than a specified number. Source prompt examples: assert greater_specificnum([220, 330, 500],200)==True assert greater_specificnum([12, 17, 21],20)==False assert greater_specificnum([1,2,3,4],10)==False
- Source ID
- 184
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-185Python · Write a function to find the focus of a parabola. Source prompt examples: assert parabola_focus(5,3,2)==(-0.3, 1.6) ass…
Original task
Write a function to find the focus of a parabola. Source prompt examples: assert parabola_focus(5,3,2)==(-0.3, 1.6) assert parabola_focus(9,8,4)==(-0.4444444444444444, 2.25) assert parabola_focus(2,4,6)==(-1.0, 4.125)
- Source ID
- 185
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-186Python · Write a function to search some literals strings in a string by using regex. Source prompt examples: assert check_liter…
Original task
Write a function to search some literals strings in a string by using regex. Source prompt examples: assert check_literals('The quick brown fox jumps over the lazy dog.',['fox']) == 'Matched!' assert check_literals('The quick brown fox jumps over the lazy dog.',['horse']) == 'Not Matched!' assert check_literals('The quick brown fox jumps over the lazy dog.',['lazy']) == 'Matched!'
- Source ID
- 186
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-187Python · Write a function to find the longest common subsequence for the given two sequences. Source prompt examples: assert lon…
Original task
Write a function to find the longest common subsequence for the given two sequences. Source prompt examples: assert longest_common_subsequence("AGGTAB" , "GXTXAYB", 6, 7) == 4 assert longest_common_subsequence("ABCDGH" , "AEDFHR", 6, 6) == 3 assert longest_common_subsequence("AXYT" , "AYZX", 4, 4) == 2
- Source ID
- 187
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-188Python · Write a python function to check whether the given number can be represented by product of two squares or not. Source p…
Original task
Write a python function to check whether the given number can be represented by product of two squares or not. Source prompt examples: assert prod_Square(25) == False assert prod_Square(30) == False assert prod_Square(16) == True
- Source ID
- 188
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-189Python · Write a python function to find the first missing positive number. Source prompt examples: assert first_Missing_Positiv…
Original task
Write a python function to find the first missing positive number. Source prompt examples: assert first_Missing_Positive([1,2,3,-1,5],5) == 4 assert first_Missing_Positive([0,-1,-2,1,5,8],6) == 2 assert first_Missing_Positive([0,1,2,5,-8],5) == 3
- Source ID
- 189
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-19Python · Write a function to find whether a given array of integers contains any duplicate element. Source prompt examples: asse…
Original task
Write a function to find whether a given array of integers contains any duplicate element. Source prompt examples: assert test_duplicate(([1,2,3,4,5]))==False assert test_duplicate(([1,2,3,4, 4]))==True assert test_duplicate([1,1,2,2,3,3,4,4,5])==True
- Source ID
- 19
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-190Python · Write a python function to count the number of integral co-ordinates that lie inside a square. Source prompt examples: …
Original task
Write a python function to count the number of integral co-ordinates that lie inside a square. Source prompt examples: assert count_Intgral_Points(1,1,4,4) == 4 assert count_Intgral_Points(1,2,1,2) == 1 assert count_Intgral_Points(4,2,6,4) == 1
- Source ID
- 190
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-191Python · Write a function to check whether the given month name contains 30 days or not. Source prompt examples: assert check_mo…
Original task
Write a function to check whether the given month name contains 30 days or not. Source prompt examples: assert check_monthnumber("February")==False assert check_monthnumber("June")==True assert check_monthnumber("April")==True
- Source ID
- 191
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-192Python · Write a python function to check whether a string has atleast one letter and one number. Source prompt examples: assert…
Original task
Write a python function to check whether a string has atleast one letter and one number. Source prompt examples: assert check_String('thishasboth29') == True assert check_String('python') == False assert check_String ('string') == False
- Source ID
- 192
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-193Python · Write a function to remove the duplicates from the given tuple. Source prompt examples: assert remove_tuple((1, 3, 5, 2…
Original task
Write a function to remove the duplicates from the given tuple. Source prompt examples: assert remove_tuple((1, 3, 5, 2, 3, 5, 1, 1, 3)) == (1, 2, 3, 5) assert remove_tuple((2, 3, 4, 4, 5, 6, 6, 7, 8, 8)) == (2, 3, 4, 5, 6, 7, 8) assert remove_tuple((11, 12, 13, 11, 11, 12, 14, 13)) == (11, 12, 13, 14)
- Source ID
- 193
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-194Python · Write a python function to convert octal number to decimal number. Source prompt examples: assert octal_To_Decimal(25) …
Original task
Write a python function to convert octal number to decimal number. Source prompt examples: assert octal_To_Decimal(25) == 21 assert octal_To_Decimal(30) == 24 assert octal_To_Decimal(40) == 32
- Source ID
- 194
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-195Python · Write a python function to find the first position of an element in a sorted array. Source prompt examples: assert firs…
Original task
Write a python function to find the first position of an element in a sorted array. Source prompt examples: assert first([1,2,3,4,5,6,6],6,6) == 5 assert first([1,2,2,2,3,2,2,4,2],2,9) == 1 assert first([1,2,3],1,3) == 0
- Source ID
- 195
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-196Python · Write a function to remove all the tuples with length k. Source prompt examples: assert remove_tuples([(4, 5), (4, ), (…
Original task
Write a function to remove all the tuples with length k. Source prompt examples: assert remove_tuples([(4, 5), (4, ), (8, 6, 7), (1, ), (3, 4, 6, 7)] , 1) == [(4, 5), (8, 6, 7), (3, 4, 6, 7)] assert remove_tuples([(4, 5), (4,5), (6, 7), (1, 2, 3), (3, 4, 6, 7)] ,2) == [(1, 2, 3), (3, 4, 6, 7)] assert remove_tuples([(1, 4, 4), (4, 3), (8, 6, 7), (1, ), (3, 6, 7)] , 3) == [(4, 3), (1,)]
- Source ID
- 196
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-197Python · Write a function to perform the exponentiation of the given two tuples. Source prompt examples: assert find_exponentio(…
Original task
Write a function to perform the exponentiation of the given two tuples. Source prompt examples: assert find_exponentio((10, 4, 5, 6), (5, 6, 7, 5)) == (100000, 4096, 78125, 7776) assert find_exponentio((11, 5, 6, 7), (6, 7, 8, 6)) == (1771561, 78125, 1679616, 117649) assert find_exponentio((12, 6, 7, 8), (7, 8, 9, 7)) == (35831808, 1679616, 40353607, 2097152)
- Source ID
- 197
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-198Python · Write a function to find the largest triangle that can be inscribed in an ellipse. Source prompt examples: assert large…
Original task
Write a function to find the largest triangle that can be inscribed in an ellipse. Source prompt examples: assert largest_triangle(4,2)==10.392304845413264 assert largest_triangle(5,7)==4.639421805988064 assert largest_triangle(9,1)==105.2220865598093
- Source ID
- 198
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-199Python · Write a python function to find highest power of 2 less than or equal to given number. Source prompt examples: assert h…
Original task
Write a python function to find highest power of 2 less than or equal to given number. Source prompt examples: assert highest_Power_of_2(10) == 8 assert highest_Power_of_2(19) == 16 assert highest_Power_of_2(32) == 32
- Source ID
- 199
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-20Python · Write a function to check if the given number is woodball or not. Source prompt examples: assert is_woodall(383) == Tru…
Original task
Write a function to check if the given number is woodball or not. Source prompt examples: assert is_woodall(383) == True assert is_woodall(254) == False assert is_woodall(200) == False
- Source ID
- 20
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-200Python · Write a function to find all index positions of the maximum values in a given list. Source prompt examples: assert posi…
Original task
Write a function to find all index positions of the maximum values in a given list. Source prompt examples: assert position_max([12,33,23,10,67,89,45,667,23,12,11,10,54])==[7] assert position_max([1,2,2,2,4,4,4,5,5,5,5])==[7,8,9,10] assert position_max([2,1,5,6,8,3,4,9,10,11,8,12])==[11]
- Source ID
- 200
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-201Python · Write a python function to check whether the elements in a list are same or not. Source prompt examples: assert chkList…
Original task
Write a python function to check whether the elements in a list are same or not. Source prompt examples: assert chkList(['one','one','one']) == True assert chkList(['one','Two','Three']) == False assert chkList(['bigdata','python','Django']) == False
- Source ID
- 201
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-202Python · Write a function to remove even characters in a string. Source prompt examples: assert remove_even("python")==("pto") a…
Original task
Write a function to remove even characters in a string. Source prompt examples: assert remove_even("python")==("pto") assert remove_even("program")==("porm") assert remove_even("language")==("lnug")
- Source ID
- 202
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-203Python · Write a python function to find the hamming distance between given two integers. Source prompt examples: assert hamming…
Original task
Write a python function to find the hamming distance between given two integers. Source prompt examples: assert hamming_Distance(4,8) == 2 assert hamming_Distance(2,4) == 2 assert hamming_Distance(1,2) == 2
- Source ID
- 203
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-204Python · Write a python function to count the occurrence of a given character in a string. Source prompt examples: assert count(…
Original task
Write a python function to count the occurrence of a given character in a string. Source prompt examples: assert count("abcc","c") == 2 assert count("ababca","a") == 3 assert count("mnmm0pm","m") == 4
- Source ID
- 204
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-205Python · Write a function to find the inversions of tuple elements in the given tuple list. Source prompt examples: assert inver…
Original task
Write a function to find the inversions of tuple elements in the given tuple list. Source prompt examples: assert inversion_elements((7, 8, 9, 1, 10, 7)) == (-8, -9, -10, -2, -11, -8) assert inversion_elements((2, 4, 5, 6, 1, 7)) == (-3, -5, -6, -7, -2, -8) assert inversion_elements((8, 9, 11, 14, 12, 13)) == (-9, -10, -12, -15, -13, -14)
- Source ID
- 205
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-206Python · Write a function to perform the adjacent element concatenation in the given tuples. Source prompt examples: assert conc…
Original task
Write a function to perform the adjacent element concatenation in the given tuples. Source prompt examples: assert concatenate_elements(("DSP ", "IS ", "BEST ", "FOR ", "ALL ", "UTS")) == ('DSP IS ', 'IS BEST ', 'BEST FOR ', 'FOR ALL ', 'ALL UTS') assert concatenate_elements(("RES ", "IS ", "BEST ", "FOR ", "ALL ", "QESR")) == ('RES IS ', 'IS BEST ', 'BEST FOR ', 'FOR ALL ', 'ALL QESR') assert concatenate_elements(("MSAM", "IS ", "BEST ", "FOR ", "ALL ", "SKD")) == ('MSAMIS ', 'IS BEST ', 'BEST FOR ', 'FOR ALL ', 'ALL SKD')
- Source ID
- 206
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-207Python · Write a function to count the longest repeating subsequences such that the two subsequences don’t have same string chara…
Original task
Write a function to count the longest repeating subsequences such that the two subsequences don’t have same string characters at same positions. Source prompt examples: assert find_longest_repeating_subseq("AABEBCDD") == 3 assert find_longest_repeating_subseq("aabb") == 2 assert find_longest_repeating_subseq("aab") == 1
- Source ID
- 207
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-208Python · Write a function to check the given decimal with a precision of 2 by using regex. Source prompt examples: assert is_dec…
Original task
Write a function to check the given decimal with a precision of 2 by using regex. Source prompt examples: assert is_decimal('123.11') == True assert is_decimal('0.21') == True assert is_decimal('123.1214') == False
- Source ID
- 208
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-209Python · Write a function to delete the smallest element from the given heap and then insert a new item. Source prompt examples:…
Original task
Write a function to delete the smallest element from the given heap and then insert a new item. Source prompt examples: assert heap_replace( [25, 44, 68, 21, 39, 23, 89],21)==[21, 25, 23, 44, 39, 68, 89] assert heap_replace([25, 44, 68, 21, 39, 23, 89],110)== [23, 25, 68, 44, 39, 110, 89] assert heap_replace([25, 44, 68, 21, 39, 23, 89],500)==[23, 25, 68, 44, 39, 500, 89]
- Source ID
- 209
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-21Python · Write a function to find m number of multiples of n. Source prompt examples: assert multiples_of_num(4,3)== [3,6,9,12] …
Original task
Write a function to find m number of multiples of n. Source prompt examples: assert multiples_of_num(4,3)== [3,6,9,12] assert multiples_of_num(2,5)== [5,10] assert multiples_of_num(9,2)== [2,4,6,8,10,12,14,16,18]
- Source ID
- 21
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-210Python · Write a function to check that the given string contains only a certain set of characters(in this case a-z, a-z and 0-9)…
Original task
Write a function to check that the given string contains only a certain set of characters(in this case a-z, a-z and 0-9) by using regex. Source prompt examples: assert is_allowed_specific_char("ABCDEFabcdef123450") == True assert is_allowed_specific_char("*&%@#!}{") == False assert is_allowed_specific_char("HELLOhowareyou98765") == True
- Source ID
- 210
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-211Python · Write a python function to count numbers whose oth and nth bits are set. Source prompt examples: assert count_Num(2) ==…
Original task
Write a python function to count numbers whose oth and nth bits are set. Source prompt examples: assert count_Num(2) == 1 assert count_Num(3) == 2 assert count_Num(1) == 1
- Source ID
- 211
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-212Python · Write a python function to find the sum of fourth power of n natural numbers. Source prompt examples: assert fourth_Pow…
Original task
Write a python function to find the sum of fourth power of n natural numbers. Source prompt examples: assert fourth_Power_Sum(2) == 17 assert fourth_Power_Sum(4) == 354 assert fourth_Power_Sum(6) == 2275
- Source ID
- 212
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-213Python · Write a function to perform the concatenation of two string tuples. Source prompt examples: assert concatenate_strings(…
Original task
Write a function to perform the concatenation of two string tuples. Source prompt examples: assert concatenate_strings(("Manjeet", "Nikhil", "Akshat"), (" Singh", " Meherwal", " Garg")) == ('Manjeet Singh', 'Nikhil Meherwal', 'Akshat Garg') assert concatenate_strings(("Shaik", "Ayesha", "Sanya"), (" Dawood", " Begum", " Singh")) == ('Shaik Dawood', 'Ayesha Begum', 'Sanya Singh') assert concatenate_strings(("Harpreet", "Priyanka", "Muskan"), ("Kour", " Agarwal", "Sethi")) == ('HarpreetKour', 'Priyanka Agarwal', 'MuskanSethi')
- Source ID
- 213
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-214Python · Write a function to convert radians to degrees. Source prompt examples: assert degree_radian(90)==5156.620156177409 ass…
Original task
Write a function to convert radians to degrees. Source prompt examples: assert degree_radian(90)==5156.620156177409 assert degree_radian(60)==3437.746770784939 assert degree_radian(120)==6875.493541569878
- Source ID
- 214
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-215Python · Write a function to decode a run-length encoded given list. Source prompt examples: assert decode_list([[2, 1], 2, 3, […
Original task
Write a function to decode a run-length encoded given list. Source prompt examples: assert decode_list([[2, 1], 2, 3, [2, 4], 5,1])==[1,1,2,3,4,4,5,1] assert decode_list(['a', 'u', 't', 'o', 'm', 'a', 't', 'i', 'c', 'a', [2, 'l'], 'y'])==['a', 'u', 't', 'o', 'm', 'a', 't', 'i', 'c', 'a', 'l', 'l', 'y'] assert decode_list(['p', 'y', 't', 'h', 'o', 'n'])==['p', 'y', 't', 'h', 'o', 'n']
- Source ID
- 215
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-216Python · Write a function to check if a nested list is a subset of another nested list. Source prompt examples: assert check_sub…
Original task
Write a function to check if a nested list is a subset of another nested list. Source prompt examples: assert check_subset_list([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14],[[12, 18, 23, 25, 45], [7, 11, 19, 24, 28], [1, 5, 8, 18, 15, 16]])==False assert check_subset_list([[2, 3, 1], [4, 5], [6, 8]],[[4, 5], [6, 8]])==True assert check_subset_list([['a', 'b'], ['e'], ['c', 'd']],[['g']])==False
- Source ID
- 216
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-217Python · Write a python function to find the first repeated character in a given string. Source prompt examples: assert first_Re…
Original task
Write a python function to find the first repeated character in a given string. Source prompt examples: assert first_Repeated_Char("Google") == "o" assert first_Repeated_Char("data") == "a" assert first_Repeated_Char("python") == '\0'
- Source ID
- 217
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-218Python · Write a python function to find the minimum operations required to make two numbers equal. Source prompt examples: asse…
Original task
Write a python function to find the minimum operations required to make two numbers equal. Source prompt examples: assert min_Operations(2,4) == 1 assert min_Operations(4,10) == 4 assert min_Operations(1,4) == 3
- Source ID
- 218
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-219Python · Write a function to extract maximum and minimum k elements in the given tuple. Source prompt examples: assert extract_m…
Original task
Write a function to extract maximum and minimum k elements in the given tuple. Source prompt examples: assert extract_min_max((5, 20, 3, 7, 6, 8), 2) == (3, 5, 8, 20) assert extract_min_max((4, 5, 6, 1, 2, 7), 3) == (1, 2, 4, 5, 6, 7) assert extract_min_max((2, 3, 4, 8, 9, 11, 7), 4) == (2, 3, 4, 7, 8, 9, 11)
- Source ID
- 219
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-22Python · Write a function to find the first duplicate element in a given array of integers. Source prompt examples: assert find_…
Original task
Write a function to find the first duplicate element in a given array of integers. Source prompt examples: assert find_first_duplicate(([1, 2, 3, 4, 4, 5]))==4 assert find_first_duplicate([1, 2, 3, 4])==-1 assert find_first_duplicate([1, 1, 2, 3, 3, 2, 2])==1
- Source ID
- 22
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-220Python · Write a function to replace maximum n occurrences of spaces, commas, or dots with a colon. Source prompt examples: asse…
Original task
Write a function to replace maximum n occurrences of spaces, commas, or dots with a colon. Source prompt examples: assert replace_max_specialchar('Python language, Programming language.',2)==('Python:language: Programming language.') assert replace_max_specialchar('a b c,d e f',3)==('a:b:c:d e f') assert replace_max_specialchar('ram reshma,ram rahim',1)==('ram:reshma,ram rahim')
- Source ID
- 220
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-221Python · Write a python function to find the first even number in a given list of numbers. Source prompt examples: assert first_…
Original task
Write a python function to find the first even number in a given list of numbers. Source prompt examples: assert first_even ([1, 3, 5, 7, 4, 1, 6, 8]) == 4 assert first_even([2, 3, 4]) == 2 assert first_even([5, 6, 7]) == 6
- Source ID
- 221
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-222Python · Write a function to check if all the elements in tuple have same data type or not. Source prompt examples: assert check…
Original task
Write a function to check if all the elements in tuple have same data type or not. Source prompt examples: assert check_type((5, 6, 7, 3, 5, 6) ) == True assert check_type((1, 2, "4") ) == False assert check_type((3, 2, 1, 4, 5) ) == True
- Source ID
- 222
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-223Python · Write a function to check for majority element in the given sorted array. Source prompt examples: assert is_majority([1…
Original task
Write a function to check for majority element in the given sorted array. Source prompt examples: assert is_majority([1, 2, 3, 3, 3, 3, 10], 7, 3) == True assert is_majority([1, 1, 2, 4, 4, 4, 6, 6], 8, 4) == False assert is_majority([1, 1, 1, 2, 2], 5, 1) == True
- Source ID
- 223
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-224Python · Write a python function to count set bits of a given number. Source prompt examples: assert count_Set_Bits(2) == 1 asse…
Original task
Write a python function to count set bits of a given number. Source prompt examples: assert count_Set_Bits(2) == 1 assert count_Set_Bits(4) == 1 assert count_Set_Bits(6) == 2
- Source ID
- 224
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-225Python · Write a python function to find the minimum element in a sorted and rotated array. Source prompt examples: assert find_…
Original task
Write a python function to find the minimum element in a sorted and rotated array. Source prompt examples: assert find_Min([1,2,3,4,5],0,4) == 1 assert find_Min([4,6,8],0,2) == 4 assert find_Min([2,3,5,7,9],0,4) == 2
- Source ID
- 225
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-226Python · Write a python function to remove the characters which have odd index values of a given string. Source prompt examples:…
Original task
Write a python function to remove the characters which have odd index values of a given string. Source prompt examples: assert odd_values_string('abcdef') == 'ace' assert odd_values_string('python') == 'pto' assert odd_values_string('data') == 'dt'
- Source ID
- 226
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-227Python · Write a function to find minimum of three numbers. Source prompt examples: assert min_of_three(10,20,0)==0 assert min_o…
Original task
Write a function to find minimum of three numbers. Source prompt examples: assert min_of_three(10,20,0)==0 assert min_of_three(19,15,18)==15 assert min_of_three(-10,-20,-30)==-30
- Source ID
- 227
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-228Python · Write a python function to check whether all the bits are unset in the given range or not. Source prompt examples: asse…
Original task
Write a python function to check whether all the bits are unset in the given range or not. Source prompt examples: assert all_Bits_Set_In_The_Given_Range(4,1,2) == True assert all_Bits_Set_In_The_Given_Range(17,2,4) == True assert all_Bits_Set_In_The_Given_Range(39,4,6) == False
- Source ID
- 228
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-229Python · Write a function to re-arrange the elements of the given array so that all negative elements appear before positive ones…
Original task
Write a function to re-arrange the elements of the given array so that all negative elements appear before positive ones. Source prompt examples: assert re_arrange_array([-1, 2, -3, 4, 5, 6, -7, 8, 9], 9) == [-1, -3, -7, 4, 5, 6, 2, 8, 9] assert re_arrange_array([12, -14, -26, 13, 15], 5) == [-14, -26, 12, 13, 15] assert re_arrange_array([10, 24, 36, -42, -39, -78, 85], 7) == [-42, -39, -78, 10, 24, 36, 85]
- Source ID
- 229
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-23Python · Write a python function to find the maximum sum of elements of list in a list of lists. Source prompt examples: assert …
Original task
Write a python function to find the maximum sum of elements of list in a list of lists. Source prompt examples: assert maximum_Sum([[1,2,3],[4,5,6],[10,11,12],[7,8,9]]) == 33 assert maximum_Sum([[0,1,1],[1,1,2],[3,2,1]]) == 6 assert maximum_Sum([[0,1,3],[1,2,1],[9,8,2],[0,1,0],[6,4,8]]) == 19
- Source ID
- 23
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-230Python · Write a function to replace blank spaces with any character in a string. Source prompt examples: assert replace_blank("…
Original task
Write a function to replace blank spaces with any character in a string. Source prompt examples: assert replace_blank("hello people",'@')==("hello@people") assert replace_blank("python program language",'$')==("python$program$language") assert replace_blank("blank space","-")==("blank-space")
- Source ID
- 230
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-231Python · Write a function to find the maximum sum in the given right triangle of numbers. Source prompt examples: assert max_sum…
Original task
Write a function to find the maximum sum in the given right triangle of numbers. Source prompt examples: assert max_sum([[1], [2,1], [3,3,2]], 3) == 6 assert max_sum([[1], [1, 2], [4, 1, 12]], 3) == 15 assert max_sum([[2], [3,2], [13,23,12]], 3) == 28
- Source ID
- 231
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-232Python · Write a function to get the n largest items from a dataset. Source prompt examples: assert larg_nnum([10, 20, 50, 70, 9…
Original task
Write a function to get the n largest items from a dataset. Source prompt examples: assert larg_nnum([10, 20, 50, 70, 90, 20, 50, 40, 60, 80, 100],2)==[100,90] assert larg_nnum([10, 20, 50, 70, 90, 20, 50, 40, 60, 80, 100],5)==[100,90,80,70,60] assert larg_nnum([10, 20, 50, 70, 90, 20, 50, 40, 60, 80, 100],3)==[100,90,80]
- Source ID
- 232
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-233Python · Write a function to find the lateral surface area of a cylinder. Source prompt examples: assert lateralsuface_cylinder(…
Original task
Write a function to find the lateral surface area of a cylinder. Source prompt examples: assert lateralsuface_cylinder(10,5)==314.15000000000003 assert lateralsuface_cylinder(4,5)==125.66000000000001 assert lateralsuface_cylinder(4,10)==251.32000000000002
- Source ID
- 233
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-234Python · Write a function to find the volume of a cube. Source prompt examples: assert volume_cube(3)==27 assert volume_cube(2)=…
Original task
Write a function to find the volume of a cube. Source prompt examples: assert volume_cube(3)==27 assert volume_cube(2)==8 assert volume_cube(5)==125
- Source ID
- 234
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-235Python · Write a python function to set all even bits of a given number. Source prompt examples: assert even_bit_set_number(10) …
Original task
Write a python function to set all even bits of a given number. Source prompt examples: assert even_bit_set_number(10) == 10 assert even_bit_set_number(20) == 30 assert even_bit_set_number(30) == 30
- Source ID
- 235
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-236Python · Write a python function to count the maximum number of equilateral triangles that can be formed within a given equilater…
Original task
Write a python function to count the maximum number of equilateral triangles that can be formed within a given equilateral triangle. Source prompt examples: assert No_of_Triangle(4,2) == 7 assert No_of_Triangle(4,3) == 3 assert No_of_Triangle(1,3) == -1
- Source ID
- 236
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-237Python · Write a function to check the occurrences of records which occur similar times in the given tuples. Source prompt examp…
Original task
Write a function to check the occurrences of records which occur similar times in the given tuples. Source prompt examples: assert check_occurences([(3, 1), (1, 3), (2, 5), (5, 2), (6, 3)] ) == {(1, 3): 2, (2, 5): 2, (3, 6): 1} assert check_occurences([(4, 2), (2, 4), (3, 6), (6, 3), (7, 4)] ) == {(2, 4): 2, (3, 6): 2, (4, 7): 1} assert check_occurences([(13, 2), (11, 23), (12, 25), (25, 12), (16, 23)] ) == {(2, 13): 1, (11, 23): 1, (12, 25): 2, (16, 23): 1}
- Source ID
- 237
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-238Python · Write a python function to count number of non-empty substrings of a given string. Source prompt examples: assert numbe…
Original task
Write a python function to count number of non-empty substrings of a given string. Source prompt examples: assert number_of_substrings("abc") == 6 assert number_of_substrings("abcd") == 10 assert number_of_substrings("abcde") == 15
- Source ID
- 238
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-239Python · Write a function to find the number of possible sequences of length n such that each of the next element is greater than…
Original task
Write a function to find the number of possible sequences of length n such that each of the next element is greater than or equal to twice of the previous element but less than or equal to m. Source prompt examples: assert get_total_number_of_sequences(10, 4) == 4 assert get_total_number_of_sequences(5, 2) == 6 assert get_total_number_of_sequences(16, 3) == 84
- Source ID
- 239
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-24Python · Write a function to convert the given binary number to its decimal equivalent. Source prompt examples: assert binary_to…
Original task
Write a function to convert the given binary number to its decimal equivalent. Source prompt examples: assert binary_to_decimal(100) == 4 assert binary_to_decimal(1011) == 11 assert binary_to_decimal(1101101) == 109
- Source ID
- 24
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-240Python · Write a function to replace the last element of the list with another list. Source prompt examples: assert replace_list…
Original task
Write a function to replace the last element of the list with another list. Source prompt examples: assert replace_list([1, 3, 5, 7, 9, 10],[2, 4, 6, 8])==[1, 3, 5, 7, 9, 2, 4, 6, 8] assert replace_list([1,2,3,4,5],[5,6,7,8])==[1,2,3,4,5,6,7,8] assert replace_list(["red","blue","green"],["yellow"])==["red","blue","yellow"]
- Source ID
- 240
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-241Python · Write a function to generate a 3d array having each element as '*'. Source prompt examples: assert array_3d(6,4,3)==[[[…
Original task
Write a function to generate a 3d array having each element as '*'. Source prompt examples: assert array_3d(6,4,3)==[[['*', '*', '*', '*', '*', '*'], ['*', '*', '*', '*', '*', '*'], ['*', '*', '*', '*', '*', '*'], ['*', '*', '*', '*', '*', '*']], [['*', '*', '*', '*', '*', '*'], ['*', '*', '*', '*', '*', '*'], ['*', '*', '*', '*', '*', '*'], ['*', '*', '*', '*', '*', '*']], [['*', '*', '*', '*', '*', '*'], ['*', '*', '*', '*', '*', '*'], ['*', '*', '*', '*', '*', '*'], ['*', '*', '*', '*', '*', '*']]] assert array_3d(5,3,4)==[[['*', '*', '*', '*', '*'], ['*', '*', '*', '*','*'], ['*', '*', '*', '*', '*']], [['*', '*', '*', '*', '*'],['*', '*', '*', '*', '*'], ['*', '*', '*', '*', '*']], [['*', '*', '*', '*', '*'], ['*', '*', '*', '*', '*'], ['*', '*', '*', '*', '*']], [['*', '*', '*', '*', '*'], ['*', '*', '*', '*', '*'], ['*', '*', '*', '*', '*']]] assert array_3d(1,2,3)==[[['*'],['*']],[['*'],['*']],[['*'],['*']]]
- Source ID
- 241
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-242Python · Write a function to count total characters in a string. Source prompt examples: assert count_charac("python programming…
Original task
Write a function to count total characters in a string. Source prompt examples: assert count_charac("python programming")==18 assert count_charac("language")==8 assert count_charac("words")==5
- Source ID
- 242
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-243Python · Write a function to sort the given list based on the occurrence of first element of tuples. Source prompt examples: ass…
Original task
Write a function to sort the given list based on the occurrence of first element of tuples. Source prompt examples: assert sort_on_occurence([(1, 'Jake'), (2, 'Bob'), (1, 'Cara')]) == [(1, 'Jake', 'Cara', 2), (2, 'Bob', 1)] assert sort_on_occurence([('b', 'ball'), ('a', 'arm'), ('b', 'b'), ('a', 'ant')]) == [('b', 'ball', 'b', 2), ('a', 'arm', 'ant', 2)] assert sort_on_occurence([(2, 'Mark'), (3, 'Maze'), (2, 'Sara')]) == [(2, 'Mark', 'Sara', 2), (3, 'Maze', 1)]
- Source ID
- 243
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-244Python · Write a python function to find the next perfect square greater than a given number. Source prompt examples: assert nex…
Original task
Write a python function to find the next perfect square greater than a given number. Source prompt examples: assert next_Perfect_Square(35) == 36 assert next_Perfect_Square(6) == 9 assert next_Perfect_Square(9) == 16
- Source ID
- 244
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-245Python · Write a function to find the maximum sum of bi-tonic sub-sequence for the given array. Source prompt examples: assert m…
Original task
Write a function to find the maximum sum of bi-tonic sub-sequence for the given array. Source prompt examples: assert max_sum([1, 15, 51, 45, 33, 100, 12, 18, 9], 9) == 194 assert max_sum([80, 60, 30, 40, 20, 10], 6) == 210 assert max_sum([2, 3 ,14, 16, 21, 23, 29, 30], 8) == 138
- Source ID
- 245
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-246Python · Write a function for computing square roots using the babylonian method. Source prompt examples: assert babylonian_squa…
Original task
Write a function for computing square roots using the babylonian method. Source prompt examples: assert babylonian_squareroot(10)==3.162277660168379 assert babylonian_squareroot(2)==1.414213562373095 assert babylonian_squareroot(9)==3.0
- Source ID
- 246
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-247Python · Write a function to find the longest palindromic subsequence in the given string. Source prompt examples: assert lps("T…
Original task
Write a function to find the longest palindromic subsequence in the given string. Source prompt examples: assert lps("TENS FOR TENS") == 5 assert lps("CARDIO FOR CARDS") == 7 assert lps("PART OF THE JOURNEY IS PART") == 9
- Source ID
- 247
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-248Python · Write a function to calculate the harmonic sum of n-1. Source prompt examples: assert harmonic_sum(7) == 2.592857142857…
Original task
Write a function to calculate the harmonic sum of n-1. Source prompt examples: assert harmonic_sum(7) == 2.5928571428571425 assert harmonic_sum(4) == 2.083333333333333 assert harmonic_sum(19) == 3.547739657143682
- Source ID
- 248
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-249Python · Write a function to find the intersection of two arrays using lambda function. Source prompt examples: assert intersect…
Original task
Write a function to find the intersection of two arrays using lambda function. Source prompt examples: assert intersection_array([1, 2, 3, 5, 7, 8, 9, 10],[1, 2, 4, 8, 9])==[1, 2, 8, 9] assert intersection_array([1, 2, 3, 5, 7, 8, 9, 10],[3,5,7,9])==[3,5,7,9] assert intersection_array([1, 2, 3, 5, 7, 8, 9, 10],[10,20,30,40])==[10]
- Source ID
- 249
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-25Python · Write a python function to find the product of non-repeated elements in a given array. Source prompt examples: assert f…
Original task
Write a python function to find the product of non-repeated elements in a given array. Source prompt examples: assert find_Product([1,1,2,3],4) == 6 assert find_Product([1,2,3,1,1],5) == 6 assert find_Product([1,1,4,5,6],5) == 120
- Source ID
- 25
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-250Python · Write a python function to count the occcurences of an element in a tuple. Source prompt examples: assert count_X((10, …
Original task
Write a python function to count the occcurences of an element in a tuple. Source prompt examples: assert count_X((10, 8, 5, 2, 10, 15, 10, 8, 5, 8, 8, 2),4) == 0 assert count_X((10, 8, 5, 2, 10, 15, 10, 8, 5, 8, 8, 2),10) == 3 assert count_X((10, 8, 5, 2, 10, 15, 10, 8, 5, 8, 8, 2),8) == 4
- Source ID
- 250
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-251Python · Write a function to insert an element before each element of a list. Source prompt examples: assert insert_element(['Re…
Original task
Write a function to insert an element before each element of a list. Source prompt examples: assert insert_element(['Red', 'Green', 'Black'] ,'c')==['c', 'Red', 'c', 'Green', 'c', 'Black'] assert insert_element(['python', 'java'] ,'program')==['program', 'python', 'program', 'java'] assert insert_element(['happy', 'sad'] ,'laugh')==['laugh', 'happy', 'laugh', 'sad']
- Source ID
- 251
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-252Python · Write a python function to convert complex numbers to polar coordinates. Source prompt examples: assert convert(1) == (…
Original task
Write a python function to convert complex numbers to polar coordinates. Source prompt examples: assert convert(1) == (1.0, 0.0) assert convert(4) == (4.0,0.0) assert convert(5) == (5.0,0.0)
- Source ID
- 252
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-253Python · Write a python function to count integers from a given list. Source prompt examples: assert count_integer([1,2,'abc',1.…
Original task
Write a python function to count integers from a given list. Source prompt examples: assert count_integer([1,2,'abc',1.2]) == 2 assert count_integer([1,2,3]) == 3 assert count_integer([1,1.2,4,5.1]) == 2
- Source ID
- 253
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-254Python · Write a function to find all words starting with 'a' or 'e' in a given string. Source prompt examples: assert words_ae(…
Original task
Write a function to find all words starting with 'a' or 'e' in a given string. Source prompt examples: assert words_ae("python programe")==['ame'] assert words_ae("python programe language")==['ame','anguage'] assert words_ae("assert statement")==['assert', 'atement']
- Source ID
- 254
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-255Python · Write a function to choose specified number of colours from three different colours and generate all the combinations wi…
Original task
Write a function to choose specified number of colours from three different colours and generate all the combinations with repetitions. Source prompt examples: assert combinations_colors( ["Red","Green","Blue"],1)==[('Red',), ('Green',), ('Blue',)] assert combinations_colors( ["Red","Green","Blue"],2)==[('Red', 'Red'), ('Red', 'Green'), ('Red', 'Blue'), ('Green', 'Green'), ('Green', 'Blue'), ('Blue', 'Blue')] assert combinations_colors( ["Red","Green","Blue"],3)==[('Red', 'Red', 'Red'), ('Red', 'Red', 'Green'), ('Red', 'Red', 'Blue'), ('Red', 'Green', 'Green'), ('Red', 'Green', 'Blue'), ('Red', 'Blue', 'Blue'), ('Green', 'Green', 'Green'), ('Green', 'Green', 'Blue'), ('Green', 'Blue', 'Blue'), ('Blue', 'Blue', 'Blue')]
- Source ID
- 255
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-256Python · Write a python function to count the number of prime numbers less than a given non-negative number. Source prompt examp…
Original task
Write a python function to count the number of prime numbers less than a given non-negative number. Source prompt examples: assert count_Primes_nums(5) == 2 assert count_Primes_nums(10) == 4 assert count_Primes_nums(100) == 25
- Source ID
- 256
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-257Python · Write a function to swap two numbers. Source prompt examples: assert swap_numbers(10,20)==(20,10) assert swap_numbers(1…
Original task
Write a function to swap two numbers. Source prompt examples: assert swap_numbers(10,20)==(20,10) assert swap_numbers(15,17)==(17,15) assert swap_numbers(100,200)==(200,100)
- Source ID
- 257
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-258Python · Write a function to find number of odd elements in the given list using lambda function. Source prompt examples: assert…
Original task
Write a function to find number of odd elements in the given list using lambda function. Source prompt examples: assert count_odd([1, 2, 3, 5, 7, 8, 10])==4 assert count_odd([10,15,14,13,-18,12,-20])==2 assert count_odd([1, 2, 4, 8, 9])==2
- Source ID
- 258
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-259Python · Write a function to maximize the given two tuples. Source prompt examples: assert maximize_elements(((1, 3), (4, 5), (2…
Original task
Write a function to maximize the given two tuples. Source prompt examples: assert maximize_elements(((1, 3), (4, 5), (2, 9), (1, 10)), ((6, 7), (3, 9), (1, 1), (7, 3))) == ((6, 7), (4, 9), (2, 9), (7, 10)) assert maximize_elements(((2, 4), (5, 6), (3, 10), (2, 11)), ((7, 8), (4, 10), (2, 2), (8, 4))) == ((7, 8), (5, 10), (3, 10), (8, 11)) assert maximize_elements(((3, 5), (6, 7), (4, 11), (3, 12)), ((8, 9), (5, 11), (3, 3), (9, 5))) == ((8, 9), (6, 11), (4, 11), (9, 12))
- Source ID
- 259
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-26Python · Write a function to check if the given tuple list has all k elements. Source prompt examples: assert check_k_elements([…
Original task
Write a function to check if the given tuple list has all k elements. Source prompt examples: assert check_k_elements([(4, 4), (4, 4, 4), (4, 4), (4, 4, 4, 4), (4, )], 4) == True assert check_k_elements([(7, 7, 7), (7, 7)], 7) == True assert check_k_elements([(9, 9), (9, 9, 9, 9)], 7) == False
- Source ID
- 26
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-260Python · Write a function to find the nth newman–shanks–williams prime number. Source prompt examples: assert newman_prime(3) ==…
Original task
Write a function to find the nth newman–shanks–williams prime number. Source prompt examples: assert newman_prime(3) == 7 assert newman_prime(4) == 17 assert newman_prime(5) == 41
- Source ID
- 260
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-261Python · Write a function to perform mathematical division operation across the given tuples. Source prompt examples: assert div…
Original task
Write a function to perform mathematical division operation across the given tuples. Source prompt examples: assert division_elements((10, 4, 6, 9),(5, 2, 3, 3)) == (2, 2, 2, 3) assert division_elements((12, 6, 8, 16),(6, 3, 4, 4)) == (2, 2, 2, 4) assert division_elements((20, 14, 36, 18),(5, 7, 6, 9)) == (4, 2, 6, 2)
- Source ID
- 261
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-262Python · Write a function to split a given list into two parts where the length of the first part of the list is given. Source p…
Original task
Write a function to split a given list into two parts where the length of the first part of the list is given. Source prompt examples: assert split_two_parts([1,1,2,3,4,4,5,1],3)==([1, 1, 2], [3, 4, 4, 5, 1]) assert split_two_parts(['a', 'b', 'c', 'd'],2)==(['a', 'b'], ['c', 'd']) assert split_two_parts(['p', 'y', 't', 'h', 'o', 'n'],4)==(['p', 'y', 't', 'h'], ['o', 'n'])
- Source ID
- 262
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-263Python · Write a function to merge two dictionaries. Source prompt examples: assert merge_dict({'a': 100, 'b': 200},{'x': 300, '…
Original task
Write a function to merge two dictionaries. Source prompt examples: assert merge_dict({'a': 100, 'b': 200},{'x': 300, 'y': 200})=={'x': 300, 'y': 200, 'a': 100, 'b': 200} assert merge_dict({'a':900,'b':900,'d':900},{'a':900,'b':900,'d':900})=={'a':900,'b':900,'d':900,'a':900,'b':900,'d':900} assert merge_dict({'a':10,'b':20},{'x':30,'y':40})=={'x':30,'y':40,'a':10,'b':20}
- Source ID
- 263
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-264Python · Write a function to calculate a dog's age in dog's years. Source prompt examples: assert dog_age(12)==61 assert dog_age…
Original task
Write a function to calculate a dog's age in dog's years. Source prompt examples: assert dog_age(12)==61 assert dog_age(15)==73 assert dog_age(24)==109
- Source ID
- 264
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-265Python · Write a function to split a list for every nth element. Source prompt examples: assert list_split(['a', 'b', 'c', 'd', …
Original task
Write a function to split a list for every nth element. Source prompt examples: assert list_split(['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n'],3)==[['a', 'd', 'g', 'j', 'm'], ['b', 'e', 'h', 'k', 'n'], ['c', 'f', 'i', 'l']] assert list_split([1,2,3,4,5,6,7,8,9,10,11,12,13,14],3)==[[1,4,7,10,13], [2,5,8,11,14], [3,6,9,12]] assert list_split(['python','java','C','C++','DBMS','SQL'],2)==[['python', 'C', 'DBMS'], ['java', 'C++', 'SQL']]
- Source ID
- 265
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-266Python · Write a function to find the lateral surface area of a cube. Source prompt examples: assert lateralsurface_cube(5)==100…
Original task
Write a function to find the lateral surface area of a cube. Source prompt examples: assert lateralsurface_cube(5)==100 assert lateralsurface_cube(9)==324 assert lateralsurface_cube(10)==400
- Source ID
- 266
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-267Python · Write a python function to find the sum of squares of first n odd natural numbers. Source prompt examples: assert squar…
Original task
Write a python function to find the sum of squares of first n odd natural numbers. Source prompt examples: assert square_Sum(2) == 10 assert square_Sum(3) == 35 assert square_Sum(4) == 84
- Source ID
- 267
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-268Python · Write a function to find the n'th star number. Source prompt examples: assert find_star_num(3) == 37 assert find_star_n…
Original task
Write a function to find the n'th star number. Source prompt examples: assert find_star_num(3) == 37 assert find_star_num(4) == 73 assert find_star_num(5) == 121
- Source ID
- 268
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-269Python · Write a function to find the ascii value of a character. Source prompt examples: assert ascii_value('A')==65 assert asc…
Original task
Write a function to find the ascii value of a character. Source prompt examples: assert ascii_value('A')==65 assert ascii_value('R')==82 assert ascii_value('S')==83
- Source ID
- 269
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-27Python · Write a python function to remove all digits from a list of strings. Source prompt examples: assert remove(['4words', '…
Original task
Write a python function to remove all digits from a list of strings. Source prompt examples: assert remove(['4words', '3letters', '4digits']) == ['words', 'letters', 'digits'] assert remove(['28Jan','12Jan','11Jan']) == ['Jan','Jan','Jan'] assert remove(['wonder1','wonder2','wonder3']) == ['wonder','wonder','wonder']
- Source ID
- 27
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-270Python · Write a python function to find the sum of even numbers at even positions. Source prompt examples: assert sum_even_and_…
Original task
Write a python function to find the sum of even numbers at even positions. Source prompt examples: assert sum_even_and_even_index([5, 6, 12, 1, 18, 8],6) == 30 assert sum_even_and_even_index([3, 20, 17, 9, 2, 10, 18, 13, 6, 18],10) == 26 assert sum_even_and_even_index([5, 6, 12, 1],4) == 12
- Source ID
- 270
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-271Python · Write a python function to find the sum of fifth power of first n even natural numbers. Source prompt examples: assert …
Original task
Write a python function to find the sum of fifth power of first n even natural numbers. Source prompt examples: assert even_Power_Sum(2) == 1056 assert even_Power_Sum(3) == 8832 assert even_Power_Sum(1) == 32
- Source ID
- 271
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-272Python · Write a function to perfom the rear element extraction from list of tuples records. Source prompt examples: assert rear…
Original task
Write a function to perfom the rear element extraction from list of tuples records. Source prompt examples: assert rear_extract([(1, 'Rash', 21), (2, 'Varsha', 20), (3, 'Kil', 19)]) == [21, 20, 19] assert rear_extract([(1, 'Sai', 36), (2, 'Ayesha', 25), (3, 'Salman', 45)]) == [36, 25, 45] assert rear_extract([(1, 'Sudeep', 14), (2, 'Vandana', 36), (3, 'Dawood', 56)]) == [14, 36, 56]
- Source ID
- 272
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-273Python · Write a function to substract the contents of one tuple with corresponding index of other tuple. Source prompt examples…
Original task
Write a function to substract the contents of one tuple with corresponding index of other tuple. Source prompt examples: assert substract_elements((10, 4, 5), (2, 5, 18)) == (8, -1, -13) assert substract_elements((11, 2, 3), (24, 45 ,16)) == (-13, -43, -13) assert substract_elements((7, 18, 9), (10, 11, 12)) == (-3, 7, -3)
- Source ID
- 273
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-274Python · Write a python function to find sum of even index binomial coefficients. Source prompt examples: assert even_binomial_C…
Original task
Write a python function to find sum of even index binomial coefficients. Source prompt examples: assert even_binomial_Coeff_Sum(4) == 8 assert even_binomial_Coeff_Sum(6) == 32 assert even_binomial_Coeff_Sum(2) == 2
- Source ID
- 274
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-275Python · Write a python function to find the position of the last removed element from the given array. Source prompt examples: …
Original task
Write a python function to find the position of the last removed element from the given array. Source prompt examples: assert get_Position([2,5,4],3,2) == 2 assert get_Position([4,3],2,2) == 2 assert get_Position([1,2,3,4],4,1) == 4
- Source ID
- 275
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-276Python · Write a function to find the volume of a cylinder. Source prompt examples: assert volume_cylinder(10,5)==1570.750000000…
Original task
Write a function to find the volume of a cylinder. Source prompt examples: assert volume_cylinder(10,5)==1570.7500000000002 assert volume_cylinder(4,5)==251.32000000000002 assert volume_cylinder(4,10)==502.64000000000004
- Source ID
- 276
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-277Python · Write a function to filter a dictionary based on values. Source prompt examples: assert dict_filter({'Cierra Vega': 175…
Original task
Write a function to filter a dictionary based on values. Source prompt examples: assert dict_filter({'Cierra Vega': 175, 'Alden Cantrell': 180, 'Kierra Gentry': 165, 'Pierre Cox': 190},170)=={'Cierra Vega': 175, 'Alden Cantrell': 180, 'Pierre Cox': 190} assert dict_filter({'Cierra Vega': 175, 'Alden Cantrell': 180, 'Kierra Gentry': 165, 'Pierre Cox': 190},180)=={ 'Alden Cantrell': 180, 'Pierre Cox': 190} assert dict_filter({'Cierra Vega': 175, 'Alden Cantrell': 180, 'Kierra Gentry': 165, 'Pierre Cox': 190},190)=={ 'Pierre Cox': 190}
- Source ID
- 277
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-278Python · Write a function to find the element count that occurs before the record in the given tuple. Source prompt examples: as…
Original task
Write a function to find the element count that occurs before the record in the given tuple. Source prompt examples: assert count_first_elements((1, 5, 7, (4, 6), 10) ) == 3 assert count_first_elements((2, 9, (5, 7), 11) ) == 2 assert count_first_elements((11, 15, 5, 8, (2, 3), 8) ) == 4
- Source ID
- 278
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-279Python · Write a function to find the nth decagonal number. Source prompt examples: assert is_num_decagonal(3) == 27 assert is_n…
Original task
Write a function to find the nth decagonal number. Source prompt examples: assert is_num_decagonal(3) == 27 assert is_num_decagonal(7) == 175 assert is_num_decagonal(10) == 370
- Source ID
- 279
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-28Python · Write a python function to find binomial co-efficient. Source prompt examples: assert binomial_Coeff(5,2) == 10 assert …
Original task
Write a python function to find binomial co-efficient. Source prompt examples: assert binomial_Coeff(5,2) == 10 assert binomial_Coeff(4,3) == 4 assert binomial_Coeff(3,2) == 3
- Source ID
- 28
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-280Python · Write a function to search an element in the given array by using sequential search. Source prompt examples: assert seq…
Original task
Write a function to search an element in the given array by using sequential search. Source prompt examples: assert sequential_search([11,23,58,31,56,77,43,12,65,19],31) == (True, 3) assert sequential_search([12, 32, 45, 62, 35, 47, 44, 61],61) == (True, 7) assert sequential_search([9, 10, 17, 19, 22, 39, 48, 56],48) == (True, 6)
- Source ID
- 280
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-281Python · Write a python function to check if the elements of a given list are unique or not. Source prompt examples: assert all_…
Original task
Write a python function to check if the elements of a given list are unique or not. Source prompt examples: assert all_unique([1,2,3]) == True assert all_unique([1,2,1,2]) == False assert all_unique([1,2,3,4,5]) == True
- Source ID
- 281
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-282Python · Write a function to substaract two lists using map and lambda function. Source prompt examples: assert sub_list([1, 2, …
Original task
Write a function to substaract two lists using map and lambda function. Source prompt examples: assert sub_list([1, 2, 3],[4,5,6])==[-3,-3,-3] assert sub_list([1,2],[3,4])==[-2,-2] assert sub_list([90,120],[50,70])==[40,50]
- Source ID
- 282
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-283Python · Write a python function to check whether the frequency of each digit is less than or equal to the digit itself. Source …
Original task
Write a python function to check whether the frequency of each digit is less than or equal to the digit itself. Source prompt examples: assert validate(1234) == True assert validate(51241) == False assert validate(321) == True
- Source ID
- 283
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-284Python · Write a function to check whether all items of a list are equal to a given string. Source prompt examples: assert check…
Original task
Write a function to check whether all items of a list are equal to a given string. Source prompt examples: assert check_element(["green", "orange", "black", "white"],'blue')==False assert check_element([1,2,3,4],7)==False assert check_element(["green", "green", "green", "green"],'green')==True
- Source ID
- 284
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-285Python · Write a function that matches a string that has an a followed by two to three 'b'. Source prompt examples: assert text_…
Original task
Write a function that matches a string that has an a followed by two to three 'b'. Source prompt examples: assert text_match_two_three("ac")==('Not matched!') assert text_match_two_three("dc")==('Not matched!') assert text_match_two_three("abbbba")==('Found a match!')
- Source ID
- 285
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-286Python · Write a function to find the largest sum of contiguous array in the modified array which is formed by repeating the give…
Original task
Write a function to find the largest sum of contiguous array in the modified array which is formed by repeating the given array k times. Source prompt examples: assert max_sub_array_sum_repeated([10, 20, -30, -1], 4, 3) == 30 assert max_sub_array_sum_repeated([-1, 10, 20], 3, 2) == 59 assert max_sub_array_sum_repeated([-1, -2, -3], 3, 3) == -1
- Source ID
- 286
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-287Python · Write a python function to find the sum of squares of first n even natural numbers. Source prompt examples: assert squa…
Original task
Write a python function to find the sum of squares of first n even natural numbers. Source prompt examples: assert square_Sum(2) == 20 assert square_Sum(3) == 56 assert square_Sum(4) == 120
- Source ID
- 287
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-288Python · Write a function to count array elements having modular inverse under given prime number p equal to itself. Source prom…
Original task
Write a function to count array elements having modular inverse under given prime number p equal to itself. Source prompt examples: assert modular_inverse([ 1, 6, 4, 5 ], 4, 7) == 2 assert modular_inverse([1, 3, 8, 12, 12], 5, 13) == 3 assert modular_inverse([2, 3, 4, 5], 4, 6) == 1
- Source ID
- 288
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-289Python · Write a python function to calculate the number of odd days in a given year. Source prompt examples: assert odd_Days(10…
Original task
Write a python function to calculate the number of odd days in a given year. Source prompt examples: assert odd_Days(100) == 5 assert odd_Days(50) ==6 assert odd_Days(75) == 2
- Source ID
- 289
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-29Python · Write a python function to find the element occurring odd number of times. Source prompt examples: assert get_Odd_Occur…
Original task
Write a python function to find the element occurring odd number of times. Source prompt examples: assert get_Odd_Occurrence([1,2,3,1,2,3,1],7) == 1 assert get_Odd_Occurrence([1,2,3,2,3,1,3],7) == 3 assert get_Odd_Occurrence([2,3,5,4,5,2,4,3,5,2,4,4,2],13) == 5
- Source ID
- 29
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-290Python · Write a function to find the list of lists with maximum length. Source prompt examples: assert max_length([[0], [1, 3],…
Original task
Write a function to find the list of lists with maximum length. Source prompt examples: assert max_length([[0], [1, 3], [5, 7], [9, 11], [13, 15, 17]])==(3, [13, 15, 17]) assert max_length([[1], [5, 7], [10, 12, 14,15]])==(4, [10, 12, 14,15]) assert max_length([[5], [15,20,25]])==(3, [15,20,25])
- Source ID
- 290
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-291Python · Write a function to find out the number of ways of painting the fence such that at most 2 adjacent posts have the same c…
Original task
Write a function to find out the number of ways of painting the fence such that at most 2 adjacent posts have the same color for the given fence with n posts and k colors. Source prompt examples: assert count_no_of_ways(2, 4) == 16 assert count_no_of_ways(3, 2) == 6 assert count_no_of_ways(4, 4) == 228
- Source ID
- 291
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-292Python · Write a python function to find quotient of two numbers. Source prompt examples: assert find(10,3) == 3 assert find(4,2…
Original task
Write a python function to find quotient of two numbers. Source prompt examples: assert find(10,3) == 3 assert find(4,2) == 2 assert find(20,5) == 4
- Source ID
- 292
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-293Python · Write a function to find the third side of a right angled triangle. Source prompt examples: assert otherside_rightangle…
Original task
Write a function to find the third side of a right angled triangle. Source prompt examples: assert otherside_rightangle(7,8)==10.63014581273465 assert otherside_rightangle(3,4)==5 assert otherside_rightangle(7,15)==16.55294535724685
- Source ID
- 293
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-294Python · Write a function to find the maximum value in a given heterogeneous list. Source prompt examples: assert max_val(['Pyth…
Original task
Write a function to find the maximum value in a given heterogeneous list. Source prompt examples: assert max_val(['Python', 3, 2, 4, 5, 'version'])==5 assert max_val(['Python', 15, 20, 25])==25 assert max_val(['Python', 30, 20, 40, 50, 'version'])==50
- Source ID
- 294
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-295Python · Write a function to return the sum of all divisors of a number. Source prompt examples: assert sum_div(8)==7 assert sum…
Original task
Write a function to return the sum of all divisors of a number. Source prompt examples: assert sum_div(8)==7 assert sum_div(12)==16 assert sum_div(7)==1
- Source ID
- 295
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-296Python · Write a python function to count inversions in an array. Source prompt examples: assert get_Inv_Count([1,20,6,4,5],5) =…
Original task
Write a python function to count inversions in an array. Source prompt examples: assert get_Inv_Count([1,20,6,4,5],5) == 5 assert get_Inv_Count([1,2,1],3) == 1 assert get_Inv_Count([1,2,5,6,1],5) == 3
- Source ID
- 296
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-297Python · Write a function to flatten a given nested list structure. Source prompt examples: assert flatten_list([0, 10, [20, 30]…
Original task
Write a function to flatten a given nested list structure. Source prompt examples: assert flatten_list([0, 10, [20, 30], 40, 50, [60, 70, 80], [90, 100, 110, 120]])==[0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120] assert flatten_list([[10, 20], [40], [30, 56, 25], [10, 20], [33], [40]])==[10, 20, 40, 30, 56, 25, 10, 20, 33, 40] assert flatten_list([[1,2,3], [4,5,6], [10,11,12], [7,8,9]])==[1, 2, 3, 4, 5, 6, 10, 11, 12, 7, 8, 9]
- Source ID
- 297
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-298Python · Write a function to find the nested list elements which are present in another list. Source prompt examples: assert int…
Original task
Write a function to find the nested list elements which are present in another list. Source prompt examples: assert intersection_nested_lists( [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14],[[12, 18, 23, 25, 45], [7, 11, 19, 24, 28], [1, 5, 8, 18, 15, 16]])==[[12], [7, 11], [1, 5, 8]] assert intersection_nested_lists([[2, 3, 1], [4, 5], [6, 8]], [[4, 5], [6, 8]])==[[], []] assert intersection_nested_lists(['john','amal','joel','george'],[['john'],['jack','john','mary'],['howard','john'],['jude']])==[['john'], ['john'], ['john'], []]
- Source ID
- 298
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-299Python · Write a function to calculate the maximum aggregate from the list of tuples. Source prompt examples: assert max_aggrega…
Original task
Write a function to calculate the maximum aggregate from the list of tuples. Source prompt examples: assert max_aggregate([('Juan Whelan',90),('Sabah Colley',88),('Peter Nichols',7),('Juan Whelan',122),('Sabah Colley',84)])==('Juan Whelan', 212) assert max_aggregate([('Juan Whelan',50),('Sabah Colley',48),('Peter Nichols',37),('Juan Whelan',22),('Sabah Colley',14)])==('Juan Whelan', 72) assert max_aggregate([('Juan Whelan',10),('Sabah Colley',20),('Peter Nichols',30),('Juan Whelan',40),('Sabah Colley',50)])==('Sabah Colley', 70)
- Source ID
- 299
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-30Python · Write a python function to count all the substrings starting and ending with same characters. Source prompt examples: a…
Original task
Write a python function to count all the substrings starting and ending with same characters. Source prompt examples: assert count_Substring_With_Equal_Ends("abc") == 3 assert count_Substring_With_Equal_Ends("abcda") == 6 assert count_Substring_With_Equal_Ends("ab") == 2
- Source ID
- 30
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-300Python · Write a function to find the count of all binary sequences of length 2n such that sum of first n bits is same as sum of …
Original task
Write a function to find the count of all binary sequences of length 2n such that sum of first n bits is same as sum of last n bits. Source prompt examples: assert count_binary_seq(1) == 2.0 assert count_binary_seq(2) == 6.0 assert count_binary_seq(3) == 20.0
- Source ID
- 300
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-301Python · Write a function to find the depth of a dictionary. Source prompt examples: assert dict_depth({'a':1, 'b': {'c': {'d': …
Original task
Write a function to find the depth of a dictionary. Source prompt examples: assert dict_depth({'a':1, 'b': {'c': {'d': {}}}})==4 assert dict_depth({'a':1, 'b': {'c':'python'}})==2 assert dict_depth({1: 'Sun', 2: {3: {4:'Mon'}}})==3
- Source ID
- 301
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-302Python · Write a python function to find the most significant bit number which is also a set bit. Source prompt examples: assert…
Original task
Write a python function to find the most significant bit number which is also a set bit. Source prompt examples: assert set_Bit_Number(6) == 4 assert set_Bit_Number(10) == 8 assert set_Bit_Number(18) == 16
- Source ID
- 302
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-303Python · Write a python function to check whether the count of inversion of two types are same or not. Source prompt examples: a…
Original task
Write a python function to check whether the count of inversion of two types are same or not. Source prompt examples: assert solve([1,0,2],3) == True assert solve([1,2,0],3) == False assert solve([1,2,1],3) == True
- Source ID
- 303
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-304Python · Write a python function to find element at a given index after number of rotations. Source prompt examples: assert find…
Original task
Write a python function to find element at a given index after number of rotations. Source prompt examples: assert find_Element([1,2,3,4,5],[[0,2],[0,3]],2,1) == 3 assert find_Element([1,2,3,4],[[0,1],[0,2]],1,2) == 3 assert find_Element([1,2,3,4,5,6],[[0,1],[0,2]],1,1) == 1
- Source ID
- 304
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-305Python · Write a function to match two words from a list of words starting with letter 'p'. Source prompt examples: assert start…
Original task
Write a function to match two words from a list of words starting with letter 'p'. Source prompt examples: assert start_withp(["Python PHP", "Java JavaScript", "c c++"])==('Python', 'PHP') assert start_withp(["Python Programming","Java Programming"])==('Python','Programming') assert start_withp(["Pqrst Pqr","qrstuv"])==('Pqrst','Pqr')
- Source ID
- 305
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-306Python · Write a function to find the maximum sum of increasing subsequence from prefix till ith index and also including a given…
Original task
Write a function to find the maximum sum of increasing subsequence from prefix till ith index and also including a given kth element which is after i, i.e., k > i . Source prompt examples: assert max_sum_increasing_subseq([1, 101, 2, 3, 100, 4, 5 ], 7, 4, 6) == 11 assert max_sum_increasing_subseq([1, 101, 2, 3, 100, 4, 5 ], 7, 2, 5) == 7 assert max_sum_increasing_subseq([11, 15, 19, 21, 26, 28, 31], 7, 2, 4) == 71
- Source ID
- 306
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-307Python · Write a function to get a colon of a tuple. Source prompt examples: assert colon_tuplex(("HELLO", 5, [], True) ,2,50)==…
Original task
Write a function to get a colon of a tuple. Source prompt examples: assert colon_tuplex(("HELLO", 5, [], True) ,2,50)==("HELLO", 5, [50], True) assert colon_tuplex(("HELLO", 5, [], True) ,2,100)==(("HELLO", 5, [100],True)) assert colon_tuplex(("HELLO", 5, [], True) ,2,500)==("HELLO", 5, [500], True)
- Source ID
- 307
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-308Python · Write a function to find the specified number of largest products from two given lists. Source prompt examples: assert …
Original task
Write a function to find the specified number of largest products from two given lists. Source prompt examples: assert large_product([1, 2, 3, 4, 5, 6],[3, 6, 8, 9, 10, 6],3)==[60, 54, 50] assert large_product([1, 2, 3, 4, 5, 6],[3, 6, 8, 9, 10, 6],4)==[60, 54, 50, 48] assert large_product([1, 2, 3, 4, 5, 6],[3, 6, 8, 9, 10, 6],5)==[60, 54, 50, 48, 45]
- Source ID
- 308
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-309Python · Write a python function to find the maximum of two numbers. Source prompt examples: assert maximum(5,10) == 10 assert m…
Original task
Write a python function to find the maximum of two numbers. Source prompt examples: assert maximum(5,10) == 10 assert maximum(-1,-2) == -1 assert maximum(9,7) == 9
- Source ID
- 309
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-31Python · Write a function to find the top k integers that occur most frequently from given lists of sorted and distinct integers …
Original task
Write a function to find the top k integers that occur most frequently from given lists of sorted and distinct integers using heap queue algorithm. Source prompt examples: assert func([[1, 2, 6], [1, 3, 4, 5, 7, 8], [1, 3, 5, 6, 8, 9], [2, 5, 7, 11], [1, 4, 7, 8, 12]],3)==[5, 7, 1] assert func([[1, 2, 6], [1, 3, 4, 5, 7, 8], [1, 3, 5, 6, 8, 9], [2, 5, 7, 11], [1, 4, 7, 8, 12]],1)==[1] assert func([[1, 2, 6], [1, 3, 4, 5, 7, 8], [1, 3, 5, 6, 8, 9], [2, 5, 7, 11], [1, 4, 7, 8, 12]],5)==[6, 5, 7, 8, 1]
- Source ID
- 31
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-310Python · Write a function to convert a given string to a tuple. Source prompt examples: assert string_to_tuple("python 3.0")==('…
Original task
Write a function to convert a given string to a tuple. Source prompt examples: assert string_to_tuple("python 3.0")==('p', 'y', 't', 'h', 'o', 'n', '3', '.', '0') assert string_to_tuple("item1")==('i', 't', 'e', 'm', '1') assert string_to_tuple("15.10")==('1', '5', '.', '1', '0')
- Source ID
- 310
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-311Python · Write a python function to set the left most unset bit. Source prompt examples: assert set_left_most_unset_bit(10) == 1…
Original task
Write a python function to set the left most unset bit. Source prompt examples: assert set_left_most_unset_bit(10) == 14 assert set_left_most_unset_bit(12) == 14 assert set_left_most_unset_bit(15) == 15
- Source ID
- 311
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-312Python · Write a function to find the volume of a cone. Source prompt examples: assert volume_cone(5,12)==314.15926535897927 ass…
Original task
Write a function to find the volume of a cone. Source prompt examples: assert volume_cone(5,12)==314.15926535897927 assert volume_cone(10,15)==1570.7963267948965 assert volume_cone(19,17)==6426.651371693521
- Source ID
- 312
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-313Python · Write a python function to print positive numbers in a list. Source prompt examples: assert pos_nos([-1,-2,1,2]) == 1,2…
Original task
Write a python function to print positive numbers in a list. Source prompt examples: assert pos_nos([-1,-2,1,2]) == 1,2 assert pos_nos([3,4,-5]) == 3,4 assert pos_nos([-2,-3,1]) == 1
- Source ID
- 313
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-314Python · Write a function to find out the maximum sum such that no two chosen numbers are adjacent for the given rectangular grid…
Original task
Write a function to find out the maximum sum such that no two chosen numbers are adjacent for the given rectangular grid of dimension 2 x n. Source prompt examples: assert max_sum_rectangular_grid([ [1, 4, 5], [2, 0, 0 ] ], 3) == 7 assert max_sum_rectangular_grid([ [ 1, 2, 3, 4, 5], [ 6, 7, 8, 9, 10] ], 5) == 24 assert max_sum_rectangular_grid([ [7, 9, 11, 15, 19], [21, 25, 28, 31, 32] ], 5) == 81
- Source ID
- 314
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-315Python · Write a python function to find the first maximum length of even word. Source prompt examples: assert find_Max_Len_Even…
Original task
Write a python function to find the first maximum length of even word. Source prompt examples: assert find_Max_Len_Even("python language") == "language" assert find_Max_Len_Even("maximum even length") == "length" assert find_Max_Len_Even("eve") == "-1"
- Source ID
- 315
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-316Python · Write a function to find the index of the last occurrence of a given number in a sorted array. Source prompt examples: …
Original task
Write a function to find the index of the last occurrence of a given number in a sorted array. Source prompt examples: assert find_last_occurrence([2, 5, 5, 5, 6, 6, 8, 9, 9, 9], 5) == 3 assert find_last_occurrence([2, 3, 5, 8, 6, 6, 8, 9, 9, 9], 9) == 9 assert find_last_occurrence([2, 2, 1, 5, 6, 6, 6, 9, 9, 9], 6) == 6
- Source ID
- 316
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-317Python · Write a function to reflect the modified run-length encoding from a list. Source prompt examples: assert modified_encod…
Original task
Write a function to reflect the modified run-length encoding from a list. Source prompt examples: assert modified_encode([1,1,2,3,4,4,5,1])==[[2, 1], 2, 3, [2, 4], 5, 1] assert modified_encode('automatically')==['a', 'u', 't', 'o', 'm', 'a', 't', 'i', 'c', 'a', [2, 'l'], 'y'] assert modified_encode('python')==['p', 'y', 't', 'h', 'o', 'n']
- Source ID
- 317
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-318Python · Write a python function to find the maximum volume of a cuboid with given sum of sides. Source prompt examples: assert …
Original task
Write a python function to find the maximum volume of a cuboid with given sum of sides. Source prompt examples: assert max_volume(8) == 18 assert max_volume(4) == 2 assert max_volume(1) == 0
- Source ID
- 318
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-319Python · Write a function to find all five characters long word in the given string by using regex. Source prompt examples: asse…
Original task
Write a function to find all five characters long word in the given string by using regex. Source prompt examples: assert find_long_word('Please move back to strem') == ['strem'] assert find_long_word('4K Ultra HD streaming player') == ['Ultra'] assert find_long_word('Streaming Media Player') == ['Media']
- Source ID
- 319
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-32Python · Write a python function to find the largest prime factor of a given number. Source prompt examples: assert max_Prime_Fa…
Original task
Write a python function to find the largest prime factor of a given number. Source prompt examples: assert max_Prime_Factors(15) == 5 assert max_Prime_Factors(6) == 3 assert max_Prime_Factors(2) == 2
- Source ID
- 32
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-320Python · Write a function to calculate the difference between the squared sum of first n natural numbers and the sum of squared f…
Original task
Write a function to calculate the difference between the squared sum of first n natural numbers and the sum of squared first n natural numbers. Source prompt examples: assert sum_difference(12)==5434 assert sum_difference(20)==41230 assert sum_difference(54)==2151270
- Source ID
- 320
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-321Python · Write a function to find the demlo number for the given number. Source prompt examples: assert find_demlo("111111") == …
Original task
Write a function to find the demlo number for the given number. Source prompt examples: assert find_demlo("111111") == '12345654321' assert find_demlo("1111") == '1234321' assert find_demlo("13333122222") == '123456789101110987654321'
- Source ID
- 321
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-322Python · Write a function to find all index positions of the minimum values in a given list. Source prompt examples: assert posi…
Original task
Write a function to find all index positions of the minimum values in a given list. Source prompt examples: assert position_min([12,33,23,10,67,89,45,667,23,12,11,10,54])==[3,11] assert position_min([1,2,2,2,4,4,4,5,5,5,5])==[0] assert position_min([2,1,5,6,8,3,4,9,10,11,8,12])==[1]
- Source ID
- 322
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-323Python · Write a function to re-arrange the given array in alternating positive and negative items. Source prompt examples: asse…
Original task
Write a function to re-arrange the given array in alternating positive and negative items. Source prompt examples: assert re_arrange([-5, -2, 5, 2, 4, 7, 1, 8, 0, -8], 10) == [-5, 5, -2, 2, -8, 4, 7, 1, 8, 0] assert re_arrange([1, 2, 3, -4, -1, 4], 6) == [-4, 1, -1, 2, 3, 4] assert re_arrange([4, 7, 9, 77, -4, 5, -3, -9], 8) == [-4, 4, -3, 7, -9, 9, 77, 5]
- Source ID
- 323
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-324Python · Write a function to extract the sum of alternate chains of tuples. Source prompt examples: assert sum_of_alternates((5,…
Original task
Write a function to extract the sum of alternate chains of tuples. Source prompt examples: assert sum_of_alternates((5, 6, 3, 6, 10, 34)) == (46, 18) assert sum_of_alternates((1, 2, 3, 4, 5)) == (6, 9) assert sum_of_alternates((6, 7, 8, 9, 4, 5)) == (21, 18)
- Source ID
- 324
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-325Python · Write a python function to find the minimum number of squares whose sum is equal to a given number. Source prompt examp…
Original task
Write a python function to find the minimum number of squares whose sum is equal to a given number. Source prompt examples: assert get_Min_Squares(6) == 3 assert get_Min_Squares(2) == 2 assert get_Min_Squares(4) == 1
- Source ID
- 325
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-326Python · Write a function to get the word with most number of occurrences in the given strings list. Source prompt examples: ass…
Original task
Write a function to get the word with most number of occurrences in the given strings list. Source prompt examples: assert most_occurrences(["UTS is best for RTF", "RTF love UTS", "UTS is best"] ) == 'UTS' assert most_occurrences(["Its been a great year", "this year is so worse", "this year is okay"] ) == 'year' assert most_occurrences(["Families can be reunited", "people can be reunited", "Tasks can be achieved "] ) == 'can'
- Source ID
- 326
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-327Python · Write a function to print check if the triangle is isosceles or not. Source prompt examples: assert check_isosceles(6,8…
Original task
Write a function to print check if the triangle is isosceles or not. Source prompt examples: assert check_isosceles(6,8,12)==False assert check_isosceles(6,6,12)==True assert check_isosceles(6,16,20)==False
- Source ID
- 327
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-328Python · Write a function to rotate a given list by specified number of items to the left direction. Source prompt examples: ass…
Original task
Write a function to rotate a given list by specified number of items to the left direction. Source prompt examples: assert rotate_left([1, 2, 3, 4, 5, 6, 7, 8, 9, 10],3,4)==[4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4] assert rotate_left([1, 2, 3, 4, 5, 6, 7, 8, 9, 10],2,2)==[3, 4, 5, 6, 7, 8, 9, 10, 1, 2] assert rotate_left([1, 2, 3, 4, 5, 6, 7, 8, 9, 10],5,2)==[6, 7, 8, 9, 10, 1, 2]
- Source ID
- 328
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-329Python · Write a python function to count negative numbers in a list. Source prompt examples: assert neg_count([-1,-2,3,-4,-5]) …
Original task
Write a python function to count negative numbers in a list. Source prompt examples: assert neg_count([-1,-2,3,-4,-5]) == 4 assert neg_count([1,2,3]) == 0 assert neg_count([1,2,-3,-10,20]) == 2
- Source ID
- 329
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-33Python · Write a python function to convert a decimal number to binary number. Source prompt examples: assert decimal_To_Binary(…
Original task
Write a python function to convert a decimal number to binary number. Source prompt examples: assert decimal_To_Binary(10) == 1010 assert decimal_To_Binary(1) == 1 assert decimal_To_Binary(20) == 10100
- Source ID
- 33
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-330Python · Write a function to find all three, four, five characters long words in the given string by using regex. Source prompt …
Original task
Write a function to find all three, four, five characters long words in the given string by using regex. Source prompt examples: assert find_char('For the four consumer complaints contact manager AKR reddy') == ['For', 'the', 'four', 'AKR', 'reddy'] assert find_char('Certain service are subject to change MSR') == ['are', 'MSR'] assert find_char('Third party legal desclaimers') == ['Third', 'party', 'legal']
- Source ID
- 330
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-331Python · Write a python function to count unset bits of a given number. Source prompt examples: assert count_unset_bits(2) == 1 …
Original task
Write a python function to count unset bits of a given number. Source prompt examples: assert count_unset_bits(2) == 1 assert count_unset_bits(4) == 2 assert count_unset_bits(6) == 1
- Source ID
- 331
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-332Python · Write a function to count character frequency of a given string. Source prompt examples: assert char_frequency('python'…
Original task
Write a function to count character frequency of a given string. Source prompt examples: assert char_frequency('python')=={'p': 1, 'y': 1, 't': 1, 'h': 1, 'o': 1, 'n': 1} assert char_frequency('program')=={'p': 1, 'r': 2, 'o': 1, 'g': 1, 'a': 1, 'm': 1} assert char_frequency('language')=={'l': 1, 'a': 2, 'n': 1, 'g': 2, 'u': 1, 'e': 1}
- Source ID
- 332
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-333Python · Write a python function to sort a list according to the second element in sublist. Source prompt examples: assert Sort(…
Original task
Write a python function to sort a list according to the second element in sublist. Source prompt examples: assert Sort([['a', 10], ['b', 5], ['c', 20], ['d', 15]]) == [['b', 5], ['a', 10], ['d', 15], ['c', 20]] assert Sort([['452', 10], ['256', 5], ['100', 20], ['135', 15]]) == [['256', 5], ['452', 10], ['135', 15], ['100', 20]] assert Sort([['rishi', 10], ['akhil', 5], ['ramya', 20], ['gaur', 15]]) == [['akhil', 5], ['rishi', 10], ['gaur', 15], ['ramya', 20]]
- Source ID
- 333
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-334Python · Write a python function to check whether the triangle is valid or not if sides are given. Source prompt examples: asser…
Original task
Write a python function to check whether the triangle is valid or not if sides are given. Source prompt examples: assert check_Validity(1,2,3) == False assert check_Validity(2,3,5) == False assert check_Validity(7,10,5) == True
- Source ID
- 334
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-335Python · Write a function to find the sum of arithmetic progression. Source prompt examples: assert ap_sum(1,5,2)==25 assert ap_…
Original task
Write a function to find the sum of arithmetic progression. Source prompt examples: assert ap_sum(1,5,2)==25 assert ap_sum(2,6,4)==72 assert ap_sum(1,4,5)==34
- Source ID
- 335
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-336Python · Write a function to check whether the given month name contains 28 days or not. Source prompt examples: assert check_mo…
Original task
Write a function to check whether the given month name contains 28 days or not. Source prompt examples: assert check_monthnum("February")==True assert check_monthnum("January")==False assert check_monthnum("March")==False
- Source ID
- 336
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-337Python · Write a function that matches a word at the end of a string, with optional punctuation. Source prompt examples: assert …
Original task
Write a function that matches a word at the end of a string, with optional punctuation. Source prompt examples: assert text_match_word("python.")==('Found a match!') assert text_match_word("python.")==('Found a match!') assert text_match_word(" lang .")==('Not matched!')
- Source ID
- 337
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-338Python · Write a python function to count the number of substrings with same first and last characters. Source prompt examples: …
Original task
Write a python function to count the number of substrings with same first and last characters. Source prompt examples: assert count_Substring_With_Equal_Ends('aba') == 4 assert count_Substring_With_Equal_Ends('abcab') == 7 assert count_Substring_With_Equal_Ends('abc') == 3
- Source ID
- 338
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-339Python · Write a python function to find the maximum occuring divisor in an interval. Source prompt examples: assert find_Diviso…
Original task
Write a python function to find the maximum occuring divisor in an interval. Source prompt examples: assert find_Divisor(2,2) == 2 assert find_Divisor(2,5) == 2 assert find_Divisor(5,10) == 2
- Source ID
- 339
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-34Python · Write a python function to find the missing number in a sorted array. Source prompt examples: assert find_missing([1,2,…
Original task
Write a python function to find the missing number in a sorted array. Source prompt examples: assert find_missing([1,2,3,5],4) == 4 assert find_missing([1,3,4,5],4) == 2 assert find_missing([1,2,3,5,6,7],5) == 4
- Source ID
- 34
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-340Python · Write a python function to find the sum of the three lowest positive numbers from a given list of numbers. Source promp…
Original task
Write a python function to find the sum of the three lowest positive numbers from a given list of numbers. Source prompt examples: assert sum_three_smallest_nums([10,20,30,40,50,60,7]) == 37 assert sum_three_smallest_nums([1,2,3,4,5]) == 6 assert sum_three_smallest_nums([0,1,2,3,4,5]) == 6
- Source ID
- 340
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-341Python · Write a function to convert the given set into ordered tuples. Source prompt examples: assert set_to_tuple({1, 2, 3, 4,…
Original task
Write a function to convert the given set into ordered tuples. Source prompt examples: assert set_to_tuple({1, 2, 3, 4, 5}) == (1, 2, 3, 4, 5) assert set_to_tuple({6, 7, 8, 9, 10, 11}) == (6, 7, 8, 9, 10, 11) assert set_to_tuple({12, 13, 14, 15, 16}) == (12, 13, 14, 15, 16)
- Source ID
- 341
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-342Python · Write a function to find the smallest range that includes at-least one element from each of the given arrays. Source pr…
Original task
Write a function to find the smallest range that includes at-least one element from each of the given arrays. Source prompt examples: assert find_minimum_range([[3, 6, 8, 10, 15], [1, 5, 12], [4, 8, 15, 16], [2, 6]]) == (4, 6) assert find_minimum_range([[ 2, 3, 4, 8, 10, 15 ], [1, 5, 12], [7, 8, 15, 16], [3, 6]]) == (4, 7) assert find_minimum_range([[4, 7, 9, 11, 16], [2, 6, 13], [5, 9, 16, 17], [3, 7]]) == (5, 7)
- Source ID
- 342
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-343Python · Write a function to calculate the number of digits and letters in a string. Source prompt examples: assert dig_let("pyt…
Original task
Write a function to calculate the number of digits and letters in a string. Source prompt examples: assert dig_let("python")==(6,0) assert dig_let("program")==(7,0) assert dig_let("python3.0")==(6,2)
- Source ID
- 343
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-344Python · Write a python function to find number of elements with odd factors in a given range. Source prompt examples: assert co…
Original task
Write a python function to find number of elements with odd factors in a given range. Source prompt examples: assert count_Odd_Squares(5,100) == 8 assert count_Odd_Squares(8,65) == 6 assert count_Odd_Squares(2,5) == 1
- Source ID
- 344
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-345Python · Write a function to find the difference between two consecutive numbers in a given list. Source prompt examples: assert…
Original task
Write a function to find the difference between two consecutive numbers in a given list. Source prompt examples: assert diff_consecutivenums([1, 1, 3, 4, 4, 5, 6, 7])==[0, 2, 1, 0, 1, 1, 1] assert diff_consecutivenums([4, 5, 8, 9, 6, 10])==[1, 3, 1, -3, 4] assert diff_consecutivenums([0, 1, 2, 3, 4, 4, 4, 4, 5, 7])==[1, 1, 1, 1, 0, 0, 0, 1, 2]
- Source ID
- 345
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-346Python · Write a function to find entringer number e(n, k). Source prompt examples: assert zigzag(4, 3) == 5 assert zigzag(4, 2)…
Original task
Write a function to find entringer number e(n, k). Source prompt examples: assert zigzag(4, 3) == 5 assert zigzag(4, 2) == 4 assert zigzag(3, 1) == 1
- Source ID
- 346
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-347Python · Write a python function to count the number of squares in a rectangle. Source prompt examples: assert count_Squares(4,3…
Original task
Write a python function to count the number of squares in a rectangle. Source prompt examples: assert count_Squares(4,3) == 20 assert count_Squares(1,2) == 2 assert count_Squares(2,2) == 5
- Source ID
- 347
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-348Python · Write a function to count sequences of given length having non-negative prefix sums that can be generated by given value…
Original task
Write a function to count sequences of given length having non-negative prefix sums that can be generated by given values. Source prompt examples: assert find_ways(4) == 2 assert find_ways(6) == 5 assert find_ways(8) == 14
- Source ID
- 348
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-349Python · Write a python function to check whether the given string is a binary string or not. Source prompt examples: assert che…
Original task
Write a python function to check whether the given string is a binary string or not. Source prompt examples: assert check("01010101010") == "Yes" assert check("name0") == "No" assert check("101") == "Yes"
- Source ID
- 349
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-35Python · Write a function to find the n-th rectangular number. Source prompt examples: assert find_rect_num(4) == 20 assert find…
Original task
Write a function to find the n-th rectangular number. Source prompt examples: assert find_rect_num(4) == 20 assert find_rect_num(5) == 30 assert find_rect_num(6) == 42
- Source ID
- 35
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-350Python · Write a python function to minimize the length of the string by removing occurrence of only one character. Source promp…
Original task
Write a python function to minimize the length of the string by removing occurrence of only one character. Source prompt examples: assert minimum_Length("mnm") == 1 assert minimum_Length("abcda") == 3 assert minimum_Length("abcb") == 2
- Source ID
- 350
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-351Python · Write a python function to find the first element occurring k times in a given array. Source prompt examples: assert fi…
Original task
Write a python function to find the first element occurring k times in a given array. Source prompt examples: assert first_Element([0,1,2,3,4,5],6,1) == 0 assert first_Element([1,2,1,3,4],5,2) == 1 assert first_Element([2,3,4,3,5,7,1,2,3,5],10,2) == 2
- Source ID
- 351
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-352Python · Write a python function to check whether all the characters in a given string are unique. Source prompt examples: asser…
Original task
Write a python function to check whether all the characters in a given string are unique. Source prompt examples: assert unique_Characters('aba') == False assert unique_Characters('abc') == True assert unique_Characters('abab') == False
- Source ID
- 352
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-353Python · Write a function to remove a specified column from a given nested list. Source prompt examples: assert remove_column([[…
Original task
Write a function to remove a specified column from a given nested list. Source prompt examples: assert remove_column([[1, 2, 3], [2, 4, 5], [1, 1, 1]],0)==[[2, 3], [4, 5], [1, 1]] assert remove_column([[1, 2, 3], [-2, 4, -5], [1, -1, 1]],2)==[[1, 2], [-2, 4], [1, -1]] assert remove_column([[1, 3], [5, 7], [1, 3], [13, 15, 17], [5, 7], [9, 11]],0)==[[3], [7], [3], [15, 17], [7], [11]]
- Source ID
- 353
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-354Python · Write a function to find t-nth term of arithemetic progression. Source prompt examples: assert tn_ap(1,5,2)==9 assert t…
Original task
Write a function to find t-nth term of arithemetic progression. Source prompt examples: assert tn_ap(1,5,2)==9 assert tn_ap(2,6,4)==22 assert tn_ap(1,4,5)==16
- Source ID
- 354
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-355Python · Write a python function to count the number of rectangles in a circle of radius r. Source prompt examples: assert count…
Original task
Write a python function to count the number of rectangles in a circle of radius r. Source prompt examples: assert count_Rectangles(2) == 8 assert count_Rectangles(1) == 1 assert count_Rectangles(0) == 0
- Source ID
- 355
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-356Python · Write a function to find the third angle of a triangle using two angles. Source prompt examples: assert find_angle(47,8…
Original task
Write a function to find the third angle of a triangle using two angles. Source prompt examples: assert find_angle(47,89)==44 assert find_angle(45,95)==40 assert find_angle(50,40)==90
- Source ID
- 356
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-357Python · Write a function to find the maximum element of all the given tuple records. Source prompt examples: assert find_max([(…
Original task
Write a function to find the maximum element of all the given tuple records. Source prompt examples: assert find_max([(2, 4), (6, 7), (5, 1), (6, 10), (8, 7)]) == 10 assert find_max([(3, 5), (7, 8), (6, 2), (7, 11), (9, 8)]) == 11 assert find_max([(4, 6), (8, 9), (7, 3), (8, 12), (10, 9)]) == 12
- Source ID
- 357
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-358Python · Write a function to find modulo division of two lists using map and lambda function. Source prompt examples: assert mod…
Original task
Write a function to find modulo division of two lists using map and lambda function. Source prompt examples: assert moddiv_list([4,5,6],[1, 2, 3])==[0, 1, 0] assert moddiv_list([3,2],[1,4])==[0, 2] assert moddiv_list([90,120],[50,70])==[40, 50]
- Source ID
- 358
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-359Python · Write a python function to check whether one root of the quadratic equation is twice of the other or not. Source prompt…
Original task
Write a python function to check whether one root of the quadratic equation is twice of the other or not. Source prompt examples: assert Check_Solution(1,3,2) == "Yes" assert Check_Solution(1,2,3) == "No" assert Check_Solution(1,-5,6) == "No"
- Source ID
- 359
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-36Python · Write a python function to find the nth digit in the proper fraction of two given numbers. Source prompt examples: asse…
Original task
Write a python function to find the nth digit in the proper fraction of two given numbers. Source prompt examples: assert find_Nth_Digit(1,2,1) == 5 assert find_Nth_Digit(3,5,1) == 6 assert find_Nth_Digit(5,6,5) == 3
- Source ID
- 36
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-360Python · Write a function to find the n’th carol number. Source prompt examples: assert get_carol(2) == 7 assert get_carol(4) ==…
Original task
Write a function to find the n’th carol number. Source prompt examples: assert get_carol(2) == 7 assert get_carol(4) == 223 assert get_carol(5) == 959
- Source ID
- 360
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-361Python · Write a function to remove empty lists from a given list of lists. Source prompt examples: assert remove_empty([[], [],…
Original task
Write a function to remove empty lists from a given list of lists. Source prompt examples: assert remove_empty([[], [], [], 'Red', 'Green', [1,2], 'Blue', [], []])==['Red', 'Green', [1, 2], 'Blue'] assert remove_empty([[], [], [],[],[], 'Green', [1,2], 'Blue', [], []])==[ 'Green', [1, 2], 'Blue'] assert remove_empty([[], [], [], 'Python',[],[], 'programming', 'language',[],[],[], [], []])==['Python', 'programming', 'language']
- Source ID
- 361
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-362Python · Write a python function to find the item with maximum occurrences in a given list. Source prompt examples: assert max_o…
Original task
Write a python function to find the item with maximum occurrences in a given list. Source prompt examples: assert max_occurrences([1,2,3,1,2,3,12,4,2]) == 2 assert max_occurrences([1,2,6,7,0,1,0,1,0]) == 1,0 assert max_occurrences([1,2,3,1,2,4,1]) == 1
- Source ID
- 362
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-363Python · Write a function to add the k elements to each element in the tuple. Source prompt examples: assert add_K_element([(1, …
Original task
Write a function to add the k elements to each element in the tuple. Source prompt examples: assert add_K_element([(1, 3, 4), (2, 4, 6), (3, 8, 1)], 4) == [(5, 7, 8), (6, 8, 10), (7, 12, 5)] assert add_K_element([(1, 2, 3), (4, 5, 6), (7, 8, 9)], 8) == [(9, 10, 11), (12, 13, 14), (15, 16, 17)] assert add_K_element([(11, 12, 13), (14, 15, 16), (17, 18, 19)], 9) == [(20, 21, 22), (23, 24, 25), (26, 27, 28)]
- Source ID
- 363
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-364Python · Write a function to find the number of flips required to make the given binary string a sequence of alternate characters…
Original task
Write a function to find the number of flips required to make the given binary string a sequence of alternate characters. Source prompt examples: assert min_flip_to_make_string_alternate("0001010111") == 2 assert min_flip_to_make_string_alternate("001") == 1 assert min_flip_to_make_string_alternate("010111011") == 2
- Source ID
- 364
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-365Python · Write a python function to count the number of digits of a given number. Source prompt examples: assert count_Digit(123…
Original task
Write a python function to count the number of digits of a given number. Source prompt examples: assert count_Digit(12345) == 5 assert count_Digit(11223305) == 8 assert count_Digit(4123459) == 7
- Source ID
- 365
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-366Python · Write a python function to find the largest product of the pair of adjacent elements from a given list of integers. Sou…
Original task
Write a python function to find the largest product of the pair of adjacent elements from a given list of integers. Source prompt examples: assert adjacent_num_product([1,2,3,4,5,6]) == 30 assert adjacent_num_product([1,2,3,4,5]) == 20 assert adjacent_num_product([2,3]) == 6
- Source ID
- 366
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-367Python · Write a function to check if a binary tree is balanced or not. Source prompt examples: assert is_tree_balanced(root) ==…
Original task
Write a function to check if a binary tree is balanced or not. Source prompt examples: assert is_tree_balanced(root) == False assert is_tree_balanced(root1) == True assert is_tree_balanced(root2) == False
- Source ID
- 367
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-368Python · Write a function to repeat the given tuple n times. Source prompt examples: assert repeat_tuples((1, 3), 4) == ((1, 3),…
Original task
Write a function to repeat the given tuple n times. Source prompt examples: assert repeat_tuples((1, 3), 4) == ((1, 3), (1, 3), (1, 3), (1, 3)) assert repeat_tuples((1, 2), 3) == ((1, 2), (1, 2), (1, 2)) assert repeat_tuples((3, 4), 5) == ((3, 4), (3, 4), (3, 4), (3, 4), (3, 4))
- Source ID
- 368
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-369Python · Write a function to find the lateral surface area of cuboid Source prompt examples: assert lateralsurface_cuboid(8,5,6)…
Original task
Write a function to find the lateral surface area of cuboid Source prompt examples: assert lateralsurface_cuboid(8,5,6)==156 assert lateralsurface_cuboid(7,9,10)==320 assert lateralsurface_cuboid(10,20,30)==1800
- Source ID
- 369
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-37Python · Write a function to sort a given mixed list of integers and strings. Source prompt examples: assert sort_mixed_list([19…
Original task
Write a function to sort a given mixed list of integers and strings. Source prompt examples: assert sort_mixed_list([19,'red',12,'green','blue', 10,'white','green',1])==[1, 10, 12, 19, 'blue', 'green', 'green', 'red', 'white'] assert sort_mixed_list([19,'red',12,'green','blue', 10,'white','green',1])==[1, 10, 12, 19, 'blue', 'green', 'green', 'red', 'white'] assert sort_mixed_list([19,'red',12,'green','blue', 10,'white','green',1])==[1, 10, 12, 19, 'blue', 'green', 'green', 'red', 'white']
- Source ID
- 37
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-370Python · Write a function to sort a tuple by its float element. Source prompt examples: assert float_sort([('item1', '12.20'), (…
Original task
Write a function to sort a tuple by its float element. Source prompt examples: assert float_sort([('item1', '12.20'), ('item2', '15.10'), ('item3', '24.5')])==[('item3', '24.5'), ('item2', '15.10'), ('item1', '12.20')] assert float_sort([('item1', '15'), ('item2', '10'), ('item3', '20')])==[('item3', '20'), ('item1', '15'), ('item2', '10')] assert float_sort([('item1', '5'), ('item2', '10'), ('item3', '14')])==[('item3', '14'), ('item2', '10'), ('item1', '5')]
- Source ID
- 370
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-371Python · Write a function to find the smallest missing element in a sorted array. Source prompt examples: assert smallest_missin…
Original task
Write a function to find the smallest missing element in a sorted array. Source prompt examples: assert smallest_missing([0, 1, 2, 3, 4, 5, 6], 0, 6) == 7 assert smallest_missing([0, 1, 2, 6, 9, 11, 15], 0, 6) == 3 assert smallest_missing([1, 2, 3, 4, 6, 9, 11, 15], 0, 7) == 0
- Source ID
- 371
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-372Python · Write a function to sort a given list of elements in ascending order using heap queue algorithm. Source prompt examples…
Original task
Write a function to sort a given list of elements in ascending order using heap queue algorithm. Source prompt examples: assert heap_assending([18, 14, 10, 9, 8, 7, 9, 3, 2, 4, 1])==[1, 2, 3, 4, 7, 8, 9, 9, 10, 14, 18] assert heap_assending([25, 35, 22, 85, 14, 65, 75, 25, 58])==[14, 22, 25, 25, 35, 58, 65, 75, 85] assert heap_assending([1, 3, 5, 7, 9, 2, 4, 6, 8, 0])==[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
- Source ID
- 372
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-373Python · Write a function to find the volume of a cuboid. Source prompt examples: assert volume_cuboid(1,2,3)==6 assert volume_c…
Original task
Write a function to find the volume of a cuboid. Source prompt examples: assert volume_cuboid(1,2,3)==6 assert volume_cuboid(5,7,9)==315 assert volume_cuboid(10,15,21)==3150
- Source ID
- 373
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-374Python · Write a function to print all permutations of a given string including duplicates. Source prompt examples: assert permu…
Original task
Write a function to print all permutations of a given string including duplicates. Source prompt examples: assert permute_string('ab')==['ab', 'ba'] assert permute_string('abc')==['abc', 'bac', 'bca', 'acb', 'cab', 'cba'] assert permute_string('abcd')==['abcd', 'bacd', 'bcad', 'bcda', 'acbd', 'cabd', 'cbad', 'cbda', 'acdb', 'cadb', 'cdab', 'cdba', 'abdc', 'badc', 'bdac', 'bdca', 'adbc', 'dabc', 'dbac', 'dbca', 'adcb', 'dacb', 'dcab', 'dcba']
- Source ID
- 374
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-375Python · Write a function to round the given number to the nearest multiple of a specific number. Source prompt examples: assert…
Original task
Write a function to round the given number to the nearest multiple of a specific number. Source prompt examples: assert round_num(4722,10)==4720 assert round_num(1111,5)==1110 assert round_num(219,2)==218
- Source ID
- 375
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-376Python · Write a function to remove tuple elements that occur more than once and replace the duplicates with some custom value. …
Original task
Write a function to remove tuple elements that occur more than once and replace the duplicates with some custom value. Source prompt examples: assert remove_replica((1, 1, 4, 4, 4, 5, 5, 6, 7, 7)) == (1, 'MSP', 4, 'MSP', 'MSP', 5, 'MSP', 6, 7, 'MSP') assert remove_replica((2, 3, 4, 4, 5, 6, 6, 7, 8, 9, 9)) == (2, 3, 4, 'MSP', 5, 6, 'MSP', 7, 8, 9, 'MSP') assert remove_replica((2, 2, 5, 4, 5, 7, 5, 6, 7, 7)) == (2, 'MSP', 5, 4, 'MSP', 7, 'MSP', 6, 'MSP', 'MSP')
- Source ID
- 376
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-377Python · Write a python function to remove all occurrences of a character in a given string. Source prompt examples: assert remo…
Original task
Write a python function to remove all occurrences of a character in a given string. Source prompt examples: assert remove_Char("aba",'a') == "b" assert remove_Char("toggle",'g') == "tole" assert remove_Char("aabbc",'b') == "aac"
- Source ID
- 377
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-378Python · Write a python function to shift last element to first position in the given list. Source prompt examples: assert move_…
Original task
Write a python function to shift last element to first position in the given list. Source prompt examples: assert move_first([1,2,3,4]) == [4,1,2,3] assert move_first([0,1,2,3]) == [3,0,1,2] assert move_first([9,8,7,1]) == [1,9,8,7]
- Source ID
- 378
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-379Python · Write a function to find the surface area of a cuboid. Source prompt examples: assert surfacearea_cuboid(1,2,3)==22 ass…
Original task
Write a function to find the surface area of a cuboid. Source prompt examples: assert surfacearea_cuboid(1,2,3)==22 assert surfacearea_cuboid(5,7,9)==286 assert surfacearea_cuboid(10,15,21)==1350
- Source ID
- 379
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-38Python · Write a function to find the division of first even and odd number of a given list. Source prompt examples: assert div_…
Original task
Write a function to find the division of first even and odd number of a given list. Source prompt examples: assert div_even_odd([1,3,5,7,4,1,6,8])==4 assert div_even_odd([1,2,3,4,5,6,7,8,9,10])==2 assert div_even_odd([1,5,7,9,10])==10
- Source ID
- 38
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-380Python · Write a function to generate a two-dimensional array. Source prompt examples: assert multi_list(3,4)==[[0, 0, 0, 0], [0…
Original task
Write a function to generate a two-dimensional array. Source prompt examples: assert multi_list(3,4)==[[0, 0, 0, 0], [0, 1, 2, 3], [0, 2, 4, 6]] assert multi_list(5,7)==[[0, 0, 0, 0, 0, 0, 0], [0, 1, 2, 3, 4, 5, 6], [0, 2, 4, 6, 8, 10, 12], [0, 3, 6, 9, 12, 15, 18], [0, 4, 8, 12, 16, 20, 24]] assert multi_list(10,15)==[[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28], [0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42], [0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56], [0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70], [0, 6, 12, 18, 24, 30, 36, 42, 48, 54, 60, 66, 72, 78, 84], [0, 7, 14, 21, 28, 35, 42, 49, 56, 63, 70, 77, 84, 91, 98], [0, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112], [0, 9, 18, 27, 36, 45, 54, 63, 72, 81, 90, 99, 108, 117, 126]]
- Source ID
- 380
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-381Python · Write a function to sort a list of lists by a given index of the inner list. Source prompt examples: assert index_on_in…
Original task
Write a function to sort a list of lists by a given index of the inner list. Source prompt examples: assert index_on_inner_list([('Greyson Fulton', 98, 99), ('Brady Kent', 97, 96), ('Wyatt Knott', 91, 94), ('Beau Turnbull', 94, 98)] ,0)==[('Beau Turnbull', 94, 98), ('Brady Kent', 97, 96), ('Greyson Fulton', 98, 99), ('Wyatt Knott', 91, 94)] assert index_on_inner_list([('Greyson Fulton', 98, 99), ('Brady Kent', 97, 96), ('Wyatt Knott', 91, 94), ('Beau Turnbull', 94, 98)] ,1)==[('Wyatt Knott', 91, 94), ('Beau Turnbull', 94, 98), ('Brady Kent', 97, 96), ('Greyson Fulton', 98, 99)] assert index_on_inner_list([('Greyson Fulton', 98, 99), ('Brady Kent', 97, 96), ('Wyatt Knott', 91, 94), ('Beau Turnbull', 94, 98)] ,2)==[('Wyatt Knott', 91, 94), ('Brady Kent', 97, 96), ('Beau Turnbull', 94, 98), ('Greyson Fulton', 98, 99)]
- Source ID
- 381
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-382Python · Write a function to find the number of rotations in a circularly sorted array. Source prompt examples: assert find_rota…
Original task
Write a function to find the number of rotations in a circularly sorted array. Source prompt examples: assert find_rotation_count([8, 9, 10, 1, 2, 3, 4, 5, 6, 7]) == 3 assert find_rotation_count([8, 9, 10,2, 5, 6]) == 3 assert find_rotation_count([2, 5, 6, 8, 9, 10]) == 0
- Source ID
- 382
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-383Python · Write a python function to toggle all odd bits of a given number. Source prompt examples: assert even_bit_toggle_number…
Original task
Write a python function to toggle all odd bits of a given number. Source prompt examples: assert even_bit_toggle_number(10) == 15 assert even_bit_toggle_number(20) == 1 assert even_bit_toggle_number(30) == 11
- Source ID
- 383
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-384Python · Write a python function to find the frequency of the smallest value in a given array. Source prompt examples: assert fr…
Original task
Write a python function to find the frequency of the smallest value in a given array. Source prompt examples: assert frequency_Of_Smallest(5,[1,2,3,4,3]) == 1 assert frequency_Of_Smallest(7,[3,1,2,5,6,2,3]) == 1 assert frequency_Of_Smallest(7,[3,3,6,3,7,4,9]) == 3
- Source ID
- 384
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-385Python · Write a function to find the n'th perrin number using recursion. Source prompt examples: assert get_perrin(9) == 12 ass…
Original task
Write a function to find the n'th perrin number using recursion. Source prompt examples: assert get_perrin(9) == 12 assert get_perrin(4) == 2 assert get_perrin(6) == 5
- Source ID
- 385
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-386Python · Write a function to find out the minimum no of swaps required for bracket balancing in the given string. Source prompt …
Original task
Write a function to find out the minimum no of swaps required for bracket balancing in the given string. Source prompt examples: assert swap_count("[]][][") == 2 assert swap_count("[[][]]") == 0 assert swap_count("[[][]]][") == 1
- Source ID
- 386
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-387Python · Write a python function to check whether the hexadecimal number is even or odd. Source prompt examples: assert even_or_…
Original task
Write a python function to check whether the hexadecimal number is even or odd. Source prompt examples: assert even_or_odd("AB3454D") =="Odd" assert even_or_odd("ABC") == "Even" assert even_or_odd("AAD") == "Odd"
- Source ID
- 387
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-388Python · Write a python function to find the highest power of 2 that is less than or equal to n. Source prompt examples: assert …
Original task
Write a python function to find the highest power of 2 that is less than or equal to n. Source prompt examples: assert highest_Power_of_2(10) == 8 assert highest_Power_of_2(19) == 16 assert highest_Power_of_2(32) == 32
- Source ID
- 388
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-389Python · Write a function to find the n'th lucas number. Source prompt examples: assert find_lucas(9) == 76 assert find_lucas(4)…
Original task
Write a function to find the n'th lucas number. Source prompt examples: assert find_lucas(9) == 76 assert find_lucas(4) == 7 assert find_lucas(3) == 4
- Source ID
- 389
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-39Python · Write a function to check if the letters of a given string can be rearranged so that two characters that are adjacent to…
Original task
Write a function to check if the letters of a given string can be rearranged so that two characters that are adjacent to each other are different. Source prompt examples: assert rearange_string("aab")==('aba') assert rearange_string("aabb")==('abab') assert rearange_string("abccdd")==('cdabcd')
- Source ID
- 39
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-390Python · Write a function to insert a given string at the beginning of all items in a list. Source prompt examples: assert add_s…
Original task
Write a function to insert a given string at the beginning of all items in a list. Source prompt examples: assert add_string([1,2,3,4],'temp{0}')==['temp1', 'temp2', 'temp3', 'temp4'] assert add_string(['a','b','c','d'], 'python{0}')==[ 'pythona', 'pythonb', 'pythonc', 'pythond'] assert add_string([5,6,7,8],'string{0}')==['string5', 'string6', 'string7', 'string8']
- Source ID
- 390
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-391Python · Write a function to convert more than one list to nested dictionary. Source prompt examples: assert convert_list_dictio…
Original task
Write a function to convert more than one list to nested dictionary. Source prompt examples: assert convert_list_dictionary(["S001", "S002", "S003", "S004"],["Adina Park", "Leyton Marsh", "Duncan Boyle", "Saim Richards"] ,[85, 98, 89, 92])==[{'S001': {'Adina Park': 85}}, {'S002': {'Leyton Marsh': 98}}, {'S003': {'Duncan Boyle': 89}}, {'S004': {'Saim Richards': 92}}] assert convert_list_dictionary(["abc","def","ghi","jkl"],["python","program","language","programs"],[100,200,300,400])==[{'abc':{'python':100}},{'def':{'program':200}},{'ghi':{'language':300}},{'jkl':{'programs':400}}] assert convert_list_dictionary(["A1","A2","A3","A4"],["java","C","C++","DBMS"],[10,20,30,40])==[{'A1':{'java':10}},{'A2':{'C':20}},{'A3':{'C++':30}},{'A4':{'DBMS':40}}]
- Source ID
- 391
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-392Python · Write a function to find the maximum sum possible by using the given equation f(n) = max( (f(n/2) + f(n/3) + f(n/4) + f(…
Original task
Write a function to find the maximum sum possible by using the given equation f(n) = max( (f(n/2) + f(n/3) + f(n/4) + f(n/5)), n). Source prompt examples: assert get_max_sum(60) == 106 assert get_max_sum(10) == 12 assert get_max_sum(2) == 2
- Source ID
- 392
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-393Python · Write a function to find the list with maximum length using lambda function. Source prompt examples: assert max_length_…
Original task
Write a function to find the list with maximum length using lambda function. Source prompt examples: assert max_length_list([[0], [1, 3], [5, 7], [9, 11], [13, 15, 17]])==(3, [13, 15, 17]) assert max_length_list([[1,2,3,4,5],[1,2,3,4],[1,2,3],[1,2],[1]])==(5,[1,2,3,4,5]) assert max_length_list([[3,4,5],[6,7,8,9],[10,11,12]])==(4,[6,7,8,9])
- Source ID
- 393
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-394Python · Write a function to check if given tuple is distinct or not. Source prompt examples: assert check_distinct((1, 4, 5, 6,…
Original task
Write a function to check if given tuple is distinct or not. Source prompt examples: assert check_distinct((1, 4, 5, 6, 1, 4)) == False assert check_distinct((1, 4, 5, 6)) == True assert check_distinct((2, 3, 4, 5, 6)) == True
- Source ID
- 394
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-395Python · Write a python function to find the first non-repeated character in a given string. Source prompt examples: assert firs…
Original task
Write a python function to find the first non-repeated character in a given string. Source prompt examples: assert first_non_repeating_character("abcabc") == None assert first_non_repeating_character("abc") == "a" assert first_non_repeating_character("ababc") == "c"
- Source ID
- 395
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-396Python · Write a function to check whether the given string starts and ends with the same character or not using regex. Source p…
Original task
Write a function to check whether the given string starts and ends with the same character or not using regex. Source prompt examples: assert check_char("abba") == "Valid" assert check_char("a") == "Valid" assert check_char("abcd") == "Invalid"
- Source ID
- 396
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-397Python · Write a function to find the median of three specific numbers. Source prompt examples: assert median_numbers(25,55,65)=…
Original task
Write a function to find the median of three specific numbers. Source prompt examples: assert median_numbers(25,55,65)==55.0 assert median_numbers(20,10,30)==20.0 assert median_numbers(15,45,75)==45.0
- Source ID
- 397
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-398Python · Write a function to compute the sum of digits of each number of a given list. Source prompt examples: assert sum_of_dig…
Original task
Write a function to compute the sum of digits of each number of a given list. Source prompt examples: assert sum_of_digits([10,2,56])==14 assert sum_of_digits([[10,20,4,5,'b',70,'a']])==19 assert sum_of_digits([10,20,-4,5,-70])==19
- Source ID
- 398
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-399Python · Write a function to perform the mathematical bitwise xor operation across the given tuples. Source prompt examples: ass…
Original task
Write a function to perform the mathematical bitwise xor operation across the given tuples. Source prompt examples: assert bitwise_xor((10, 4, 6, 9), (5, 2, 3, 3)) == (15, 6, 5, 10) assert bitwise_xor((11, 5, 7, 10), (6, 3, 4, 4)) == (13, 6, 3, 14) assert bitwise_xor((12, 6, 8, 11), (7, 4, 5, 6)) == (11, 2, 13, 13)
- Source ID
- 399
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-40Python · Write a function to find frequency of the elements in a given list of lists using collections module. Source prompt exa…
Original task
Write a function to find frequency of the elements in a given list of lists using collections module. Source prompt examples: assert freq_element([[1, 2, 3, 2], [4, 5, 6, 2], [7, 1, 9, 5]])==({2: 3, 1: 2, 5: 2, 3: 1, 4: 1, 6: 1, 7: 1, 9: 1}) assert freq_element([[1,2,3,4],[5,6,7,8],[9,10,11,12]])==({1: 1, 2: 1, 3: 1, 4: 1, 5: 1, 6: 1, 7: 1, 8: 1, 9: 1, 10: 1, 11: 1, 12: 1}) assert freq_element([[15,20,30,40],[80,90,100,110],[30,30,80,90]])==({30: 3, 80: 2, 90: 2, 15: 1, 20: 1, 40: 1, 100: 1, 110: 1})
- Source ID
- 40
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-400Python · Write a function to extract the frequency of unique tuples in the given list order irrespective. Source prompt examples…
Original task
Write a function to extract the frequency of unique tuples in the given list order irrespective. Source prompt examples: assert extract_freq([(3, 4), (1, 2), (4, 3), (5, 6)] ) == 3 assert extract_freq([(4, 15), (2, 3), (5, 4), (6, 7)] ) == 4 assert extract_freq([(5, 16), (2, 3), (6, 5), (6, 9)] ) == 4
- Source ID
- 400
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-401Python · Write a function to perform index wise addition of tuple elements in the given two nested tuples. Source prompt example…
Original task
Write a function to perform index wise addition of tuple elements in the given two nested tuples. Source prompt examples: assert add_nested_tuples(((1, 3), (4, 5), (2, 9), (1, 10)), ((6, 7), (3, 9), (1, 1), (7, 3))) == ((7, 10), (7, 14), (3, 10), (8, 13)) assert add_nested_tuples(((2, 4), (5, 6), (3, 10), (2, 11)), ((7, 8), (4, 10), (2, 2), (8, 4))) == ((9, 12), (9, 16), (5, 12), (10, 15)) assert add_nested_tuples(((3, 5), (6, 7), (4, 11), (3, 12)), ((8, 9), (5, 11), (3, 3), (9, 5))) == ((11, 14), (11, 18), (7, 14), (12, 17))
- Source ID
- 401
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-402Python · Write a function to compute the value of ncr%p. Source prompt examples: assert ncr_modp(10,2,13)==6 assert ncr_modp(15,…
Original task
Write a function to compute the value of ncr%p. Source prompt examples: assert ncr_modp(10,2,13)==6 assert ncr_modp(15,12,43)==25 assert ncr_modp(17,9,18)==10
- Source ID
- 402
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-403Python · Write a function to check if a url is valid or not using regex. Source prompt examples: assert is_valid_URL("https://ww…
Original task
Write a function to check if a url is valid or not using regex. Source prompt examples: assert is_valid_URL("https://www.google.com") == True assert is_valid_URL("https:/www.gmail.com") == False assert is_valid_URL("https:// www.redit.com") == False
- Source ID
- 403
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-404Python · Write a python function to find the minimum of two numbers. Source prompt examples: assert minimum(1,2) == 1 assert min…
Original task
Write a python function to find the minimum of two numbers. Source prompt examples: assert minimum(1,2) == 1 assert minimum(-5,-4) == -5 assert minimum(0,0) == 0
- Source ID
- 404
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-405Python · Write a function to check whether an element exists within a tuple. Source prompt examples: assert check_tuplex(("w", 3…
Original task
Write a function to check whether an element exists within a tuple. Source prompt examples: assert check_tuplex(("w", 3, "r", "e", "s", "o", "u", "r", "c", "e"),'r')==True assert check_tuplex(("w", 3, "r", "e", "s", "o", "u", "r", "c", "e"),'5')==False assert check_tuplex(("w", 3, "r", "e", "s", "o", "u", "r", "c","e"),3)==True
- Source ID
- 405
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-406Python · Write a python function to find the parity of a given number. Source prompt examples: assert find_Parity(12) == "Even P…
Original task
Write a python function to find the parity of a given number. Source prompt examples: assert find_Parity(12) == "Even Parity" assert find_Parity(7) == "Odd Parity" assert find_Parity(10) == "Even Parity"
- Source ID
- 406
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-407Python · Write a function to create the next bigger number by rearranging the digits of a given number. Source prompt examples: …
Original task
Write a function to create the next bigger number by rearranging the digits of a given number. Source prompt examples: assert rearrange_bigger(12)==21 assert rearrange_bigger(10)==False assert rearrange_bigger(102)==120
- Source ID
- 407
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-408Python · Write a function to find k number of pairs which consist of one element from the first array and one element from the se…
Original task
Write a function to find k number of pairs which consist of one element from the first array and one element from the second array. Source prompt examples: assert k_smallest_pairs([1,3,7],[2,4,6],2)==[[1, 2], [1, 4]] assert k_smallest_pairs([1,3,7],[2,4,6],1)==[[1, 2]] assert k_smallest_pairs([1,3,7],[2,4,6],7)==[[1, 2], [1, 4], [3, 2], [1, 6], [3, 4], [3, 6], [7, 2]]
- Source ID
- 408
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-409Python · Write a function to find the minimum product from the pairs of tuples within a given list. Source prompt examples: asse…
Original task
Write a function to find the minimum product from the pairs of tuples within a given list. Source prompt examples: assert min_product_tuple([(2, 7), (2, 6), (1, 8), (4, 9)] )==8 assert min_product_tuple([(10,20), (15,2), (5,10)] )==30 assert min_product_tuple([(11,44), (10,15), (20,5), (12, 9)] )==100
- Source ID
- 409
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-41Python · Write a function to filter even numbers using lambda function. Source prompt examples: assert filter_evennumbers([1, 2,…
Original task
Write a function to filter even numbers using lambda function. Source prompt examples: assert filter_evennumbers([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])==[2, 4, 6, 8, 10] assert filter_evennumbers([10,20,45,67,84,93])==[10,20,84] assert filter_evennumbers([5,7,9,8,6,4,3])==[8,6,4]
- Source ID
- 41
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-410Python · Write a function to find the minimum value in a given heterogeneous list. Source prompt examples: assert min_val(['Pyth…
Original task
Write a function to find the minimum value in a given heterogeneous list. Source prompt examples: assert min_val(['Python', 3, 2, 4, 5, 'version'])==2 assert min_val(['Python', 15, 20, 25])==15 assert min_val(['Python', 30, 20, 40, 50, 'version'])==20
- Source ID
- 410
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-411Python · Write a function to convert the given snake case string to camel case string by using regex. Source prompt examples: as…
Original task
Write a function to convert the given snake case string to camel case string by using regex. Source prompt examples: assert snake_to_camel('android_tv') == 'AndroidTv' assert snake_to_camel('google_pixel') == 'GooglePixel' assert snake_to_camel('apple_watch') == 'AppleWatch'
- Source ID
- 411
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-412Python · Write a python function to remove odd numbers from a given list. Source prompt examples: assert remove_odd([1,2,3]) == …
Original task
Write a python function to remove odd numbers from a given list. Source prompt examples: assert remove_odd([1,2,3]) == [2] assert remove_odd([2,4,6]) == [2,4,6] assert remove_odd([10,20,3]) == [10,20]
- Source ID
- 412
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-413Python · Write a function to extract the nth element from a given list of tuples. Source prompt examples: assert extract_nth_ele…
Original task
Write a function to extract the nth element from a given list of tuples. Source prompt examples: assert extract_nth_element([('Greyson Fulton', 98, 99), ('Brady Kent', 97, 96), ('Wyatt Knott', 91, 94), ('Beau Turnbull', 94, 98)] ,0)==['Greyson Fulton', 'Brady Kent', 'Wyatt Knott', 'Beau Turnbull'] assert extract_nth_element([('Greyson Fulton', 98, 99), ('Brady Kent', 97, 96), ('Wyatt Knott', 91, 94), ('Beau Turnbull', 94, 98)] ,2)==[99, 96, 94, 98] assert extract_nth_element([('Greyson Fulton', 98, 99), ('Brady Kent', 97, 96), ('Wyatt Knott', 91, 94), ('Beau Turnbull', 94, 98)],1)==[98, 97, 91, 94]
- Source ID
- 413
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-414Python · Write a python function to check whether the value exists in a sequence or not. Source prompt examples: assert overlapp…
Original task
Write a python function to check whether the value exists in a sequence or not. Source prompt examples: assert overlapping([1,2,3,4,5],[6,7,8,9]) == False assert overlapping([1,2,3],[4,5,6]) == False assert overlapping([1,4,5],[1,4,5]) == True
- Source ID
- 414
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-415Python · Write a python function to find a pair with highest product from a given array of integers. Source prompt examples: ass…
Original task
Write a python function to find a pair with highest product from a given array of integers. Source prompt examples: assert max_Product([1,2,3,4,7,0,8,4]) == (7,8) assert max_Product([0,-1,-2,-4,5,0,-6]) == (-4,-6) assert max_Product([1,2,3]) == (2,3)
- Source ID
- 415
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-416Python · Write a function to find the maximum sum we can make by dividing number in three parts recursively and summing them up t…
Original task
Write a function to find the maximum sum we can make by dividing number in three parts recursively and summing them up together for the given number. Source prompt examples: assert breakSum(12) == 13 assert breakSum(24) == 27 assert breakSum(23) == 23
- Source ID
- 416
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-417Python · Write a function to find common first element in given list of tuple. Source prompt examples: assert group_tuples([('x'…
Original task
Write a function to find common first element in given list of tuple. Source prompt examples: assert group_tuples([('x', 'y'), ('x', 'z'), ('w', 't')]) == [('x', 'y', 'z'), ('w', 't')] assert group_tuples([('a', 'b'), ('a', 'c'), ('d', 'e')]) == [('a', 'b', 'c'), ('d', 'e')] assert group_tuples([('f', 'g'), ('f', 'g'), ('h', 'i')]) == [('f', 'g', 'g'), ('h', 'i')]
- Source ID
- 417
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-418Python · Write a python function to find the sublist having maximum length. Source prompt examples: assert Find_Max([['A'],['A',…
Original task
Write a python function to find the sublist having maximum length. Source prompt examples: assert Find_Max([['A'],['A','B'],['A','B','C']]) == ['A','B','C'] assert Find_Max([[1],[1,2],[1,2,3]]) == [1,2,3] assert Find_Max([[1,1],[1,2,3],[1,5,6,1]]) == [1,5,6,1]
- Source ID
- 418
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-419Python · Write a function to round every number of a given list of numbers and print the total sum multiplied by the length of th…
Original task
Write a function to round every number of a given list of numbers and print the total sum multiplied by the length of the list. Source prompt examples: assert round_and_sum([22.4, 4.0, -16.22, -9.10, 11.00, -12.22, 14.20, -5.20, 17.50])==243 assert round_and_sum([5,2,9,24.3,29])==345 assert round_and_sum([25.0,56.7,89.2])==513
- Source ID
- 419
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-42Python · Write a python function to find the sum of repeated elements in a given array. Source prompt examples: assert find_Sum(…
Original task
Write a python function to find the sum of repeated elements in a given array. Source prompt examples: assert find_Sum([1,2,3,1,1,4,5,6],8) == 3 assert find_Sum([1,2,3,1,1],5) == 3 assert find_Sum([1,1,2],3) == 2
- Source ID
- 42
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-420Python · Write a python function to find the cube sum of first n even natural numbers. Source prompt examples: assert cube_Sum(2…
Original task
Write a python function to find the cube sum of first n even natural numbers. Source prompt examples: assert cube_Sum(2) == 72 assert cube_Sum(3) == 288 assert cube_Sum(4) == 800
- Source ID
- 420
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-421Python · Write a function to concatenate each element of tuple by the delimiter. Source prompt examples: assert concatenate_tupl…
Original task
Write a function to concatenate each element of tuple by the delimiter. Source prompt examples: assert concatenate_tuple(("ID", "is", 4, "UTS") ) == 'ID-is-4-UTS' assert concatenate_tuple(("QWE", "is", 4, "RTY") ) == 'QWE-is-4-RTY' assert concatenate_tuple(("ZEN", "is", 4, "OP") ) == 'ZEN-is-4-OP'
- Source ID
- 421
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-422Python · Write a python function to find the average of cubes of first n natural numbers. Source prompt examples: assert find_Av…
Original task
Write a python function to find the average of cubes of first n natural numbers. Source prompt examples: assert find_Average_Of_Cube(2) == 4.5 assert find_Average_Of_Cube(3) == 12 assert find_Average_Of_Cube(1) == 1
- Source ID
- 422
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-423Python · Write a function to solve gold mine problem. Source prompt examples: assert get_maxgold([[1, 3, 1, 5],[2, 2, 4, 1],[5, …
Original task
Write a function to solve gold mine problem. Source prompt examples: assert get_maxgold([[1, 3, 1, 5],[2, 2, 4, 1],[5, 0, 2, 3],[0, 6, 1, 2]],4,4)==16 assert get_maxgold([[10,20],[30,40]],2,2)==70 assert get_maxgold([[4,9],[3,7]],2,2)==13
- Source ID
- 423
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-424Python · Write a function to extract only the rear index element of each string in the given tuple. Source prompt examples: asse…
Original task
Write a function to extract only the rear index element of each string in the given tuple. Source prompt examples: assert extract_rear(('Mers', 'for', 'Vers') ) == ['s', 'r', 's'] assert extract_rear(('Avenge', 'for', 'People') ) == ['e', 'r', 'e'] assert extract_rear(('Gotta', 'get', 'go') ) == ['a', 't', 'o']
- Source ID
- 424
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-425Python · Write a function to count the number of sublists containing a particular element. Source prompt examples: assert count_…
Original task
Write a function to count the number of sublists containing a particular element. Source prompt examples: assert count_element_in_list([[1, 3], [5, 7], [1, 11], [1, 15, 7]],1)==3 assert count_element_in_list([['A', 'B'], ['A', 'C'], ['A', 'D', 'E'], ['B', 'C', 'D']],'A')==3 assert count_element_in_list([['A', 'B'], ['A', 'C'], ['A', 'D', 'E'], ['B', 'C', 'D']],'E')==1
- Source ID
- 425
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-426Python · Write a function to filter odd numbers using lambda function. Source prompt examples: assert filter_oddnumbers([1, 2, 3…
Original task
Write a function to filter odd numbers using lambda function. Source prompt examples: assert filter_oddnumbers([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])==[1,3,5,7,9] assert filter_oddnumbers([10,20,45,67,84,93])==[45,67,93] assert filter_oddnumbers([5,7,9,8,6,4,3])==[5,7,9,3]
- Source ID
- 426
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-427Python · Write a function to convert a date of yyyy-mm-dd format to dd-mm-yyyy format by using regex. Source prompt examples: as…
Original task
Write a function to convert a date of yyyy-mm-dd format to dd-mm-yyyy format by using regex. Source prompt examples: assert change_date_format("2026-01-02") == '02-01-2026' assert change_date_format("2020-11-13") == '13-11-2020' assert change_date_format("2021-04-26") == '26-04-2021'
- Source ID
- 427
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-428Python · Write a function to sort the given array by using shell sort. Source prompt examples: assert shell_sort([12, 23, 4, 5, …
Original task
Write a function to sort the given array by using shell sort. Source prompt examples: assert shell_sort([12, 23, 4, 5, 3, 2, 12, 81, 56, 95]) == [2, 3, 4, 5, 12, 12, 23, 56, 81, 95] assert shell_sort([24, 22, 39, 34, 87, 73, 68]) == [22, 24, 34, 39, 68, 73, 87] assert shell_sort([32, 30, 16, 96, 82, 83, 74]) == [16, 30, 32, 74, 82, 83, 96]
- Source ID
- 428
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-429Python · Write a function to extract the elementwise and tuples from the given two tuples. Source prompt examples: assert and_tu…
Original task
Write a function to extract the elementwise and tuples from the given two tuples. Source prompt examples: assert and_tuples((10, 4, 6, 9), (5, 2, 3, 3)) == (0, 0, 2, 1) assert and_tuples((1, 2, 3, 4), (5, 6, 7, 8)) == (1, 2, 3, 0) assert and_tuples((8, 9, 11, 12), (7, 13, 14, 17)) == (0, 9, 10, 0)
- Source ID
- 429
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-43Python · Write a function to find sequences of lowercase letters joined with an underscore using regex. Source prompt examples: …
Original task
Write a function to find sequences of lowercase letters joined with an underscore using regex. Source prompt examples: assert text_match("aab_cbbbc") == 'Found a match!' assert text_match("aab_Abbbc") == 'Not matched!' assert text_match("Aaab_abbbc") == 'Not matched!'
- Source ID
- 43
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-430Python · Write a function to find the directrix of a parabola. Source prompt examples: assert parabola_directrix(5,3,2)==-198 as…
Original task
Write a function to find the directrix of a parabola. Source prompt examples: assert parabola_directrix(5,3,2)==-198 assert parabola_directrix(9,8,4)==-2336 assert parabola_directrix(2,4,6)==-130
- Source ID
- 430
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-431Python · Write a function that takes two lists and returns true if they have at least one common element. Source prompt examples…
Original task
Write a function that takes two lists and returns true if they have at least one common element. Source prompt examples: assert common_element([1,2,3,4,5], [5,6,7,8,9])==True assert common_element([1,2,3,4,5], [6,7,8,9])==None assert common_element(['a','b','c'], ['d','b','e'])==True
- Source ID
- 431
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-432Python · Write a function to find the median of a trapezium. Source prompt examples: assert median_trapezium(15,25,35)==20 asser…
Original task
Write a function to find the median of a trapezium. Source prompt examples: assert median_trapezium(15,25,35)==20 assert median_trapezium(10,20,30)==15 assert median_trapezium(6,9,4)==7.5
- Source ID
- 432
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-433Python · Write a function to check whether the entered number is greater than the elements of the given array. Source prompt exa…
Original task
Write a function to check whether the entered number is greater than the elements of the given array. Source prompt examples: assert check_greater([1, 2, 3, 4, 5], 4) == 'No, entered number is less than those in the array' assert check_greater([2, 3, 4, 5, 6], 8) == 'Yes, the entered number is greater than those in the array' assert check_greater([9, 7, 4, 8, 6, 1], 11) == 'Yes, the entered number is greater than those in the array'
- Source ID
- 433
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-434Python · Write a function that matches a string that has an a followed by one or more b's. Source prompt examples: assert text_m…
Original task
Write a function that matches a string that has an a followed by one or more b's. Source prompt examples: assert text_match_one("ac")==('Not matched!') assert text_match_one("dc")==('Not matched!') assert text_match_one("abba")==('Found a match!')
- Source ID
- 434
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-435Python · Write a python function to find the last digit of a given number. Source prompt examples: assert last_Digit(123) == 3 a…
Original task
Write a python function to find the last digit of a given number. Source prompt examples: assert last_Digit(123) == 3 assert last_Digit(25) == 5 assert last_Digit(30) == 0
- Source ID
- 435
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-436Python · Write a python function to print negative numbers in a list. Source prompt examples: assert neg_nos([-1,4,5,-6]) == -1,…
Original task
Write a python function to print negative numbers in a list. Source prompt examples: assert neg_nos([-1,4,5,-6]) == -1,-6 assert neg_nos([-1,-2,3,4]) == -1,-2 assert neg_nos([-7,-6,8,9]) == -7,-6
- Source ID
- 436
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-437Python · Write a function to remove odd characters in a string. Source prompt examples: assert remove_odd("python")==("yhn") ass…
Original task
Write a function to remove odd characters in a string. Source prompt examples: assert remove_odd("python")==("yhn") assert remove_odd("program")==("rga") assert remove_odd("language")==("agae")
- Source ID
- 437
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-438Python · Write a function to count bidirectional tuple pairs. Source prompt examples: assert count_bidirectional([(5, 6), (1, 2)…
Original task
Write a function to count bidirectional tuple pairs. Source prompt examples: assert count_bidirectional([(5, 6), (1, 2), (6, 5), (9, 1), (6, 5), (2, 1)] ) == '3' assert count_bidirectional([(5, 6), (1, 3), (6, 5), (9, 1), (6, 5), (2, 1)] ) == '2' assert count_bidirectional([(5, 6), (1, 2), (6, 5), (9, 2), (6, 5), (2, 1)] ) == '4'
- Source ID
- 438
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-439Python · Write a function to convert a list of multiple integers into a single integer. Source prompt examples: assert multiple_…
Original task
Write a function to convert a list of multiple integers into a single integer. Source prompt examples: assert multiple_to_single([11, 33, 50])==113350 assert multiple_to_single([-1,2,3,4,5,6])==-123456 assert multiple_to_single([10,15,20,25])==10152025
- Source ID
- 439
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-44Python · Write a function that matches a word at the beginning of a string. Source prompt examples: assert text_match_string(" p…
Original task
Write a function that matches a word at the beginning of a string. Source prompt examples: assert text_match_string(" python")==('Not matched!') assert text_match_string("python")==('Found a match!') assert text_match_string(" lang")==('Not matched!')
- Source ID
- 44
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-440Python · Write a function to find all adverbs and their positions in a given sentence. Source prompt examples: assert find_adver…
Original task
Write a function to find all adverbs and their positions in a given sentence. Source prompt examples: assert find_adverb_position("clearly!! we can see the sky")==(0, 7, 'clearly') assert find_adverb_position("seriously!! there are many roses")==(0, 9, 'seriously') assert find_adverb_position("unfortunately!! sita is going to home")==(0, 13, 'unfortunately')
- Source ID
- 440
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-441Python · Write a function to find the surface area of a cube. Source prompt examples: assert surfacearea_cube(5)==150 assert sur…
Original task
Write a function to find the surface area of a cube. Source prompt examples: assert surfacearea_cube(5)==150 assert surfacearea_cube(3)==54 assert surfacearea_cube(10)==600
- Source ID
- 441
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-442Python · Write a function to find the ration of positive numbers in an array of integers. Source prompt examples: assert positiv…
Original task
Write a function to find the ration of positive numbers in an array of integers. Source prompt examples: assert positive_count([0, 1, 2, -1, -5, 6, 0, -3, -2, 3, 4, 6, 8])==0.54 assert positive_count([2, 1, 2, -1, -5, 6, 4, -3, -2, 3, 4, 6, 8])==0.69 assert positive_count([2, 4, -6, -9, 11, -12, 14, -5, 17])==0.56
- Source ID
- 442
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-443Python · Write a python function to find the largest negative number from the given list. Source prompt examples: assert largest…
Original task
Write a python function to find the largest negative number from the given list. Source prompt examples: assert largest_neg([1,2,3,-4,-6]) == -6 assert largest_neg([1,2,3,-8,-9]) == -9 assert largest_neg([1,2,3,4,-1]) == -1
- Source ID
- 443
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-444Python · Write a function to trim each tuple by k in the given tuple list. Source prompt examples: assert trim_tuple([(5, 3, 2, …
Original task
Write a function to trim each tuple by k in the given tuple list. Source prompt examples: assert trim_tuple([(5, 3, 2, 1, 4), (3, 4, 9, 2, 1),(9, 1, 2, 3, 5), (4, 8, 2, 1, 7)], 2) == '[(2,), (9,), (2,), (2,)]' assert trim_tuple([(5, 3, 2, 1, 4), (3, 4, 9, 2, 1), (9, 1, 2, 3, 5), (4, 8, 2, 1, 7)], 1) == '[(3, 2, 1), (4, 9, 2), (1, 2, 3), (8, 2, 1)]' assert trim_tuple([(7, 8, 4, 9), (11, 8, 12, 4),(4, 1, 7, 8), (3, 6, 9, 7)], 1) == '[(8, 4), (8, 12), (1, 7), (6, 9)]'
- Source ID
- 444
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-445Python · Write a function to perform index wise multiplication of tuple elements in the given two tuples. Source prompt examples…
Original task
Write a function to perform index wise multiplication of tuple elements in the given two tuples. Source prompt examples: assert index_multiplication(((1, 3), (4, 5), (2, 9), (1, 10)),((6, 7), (3, 9), (1, 1), (7, 3)) ) == ((6, 21), (12, 45), (2, 9), (7, 30)) assert index_multiplication(((2, 4), (5, 6), (3, 10), (2, 11)),((7, 8), (4, 10), (2, 2), (8, 4)) ) == ((14, 32), (20, 60), (6, 20), (16, 44)) assert index_multiplication(((3, 5), (6, 7), (4, 11), (3, 12)),((8, 9), (5, 11), (3, 3), (9, 5)) ) == ((24, 45), (30, 77), (12, 33), (27, 60))
- Source ID
- 445
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-446Python · Write a python function to count the occurence of all elements of list in a tuple. Source prompt examples: assert count…
Original task
Write a python function to count the occurence of all elements of list in a tuple. Source prompt examples: assert count_Occurrence(('a', 'a', 'c', 'b', 'd'),['a', 'b'] ) == 3 assert count_Occurrence((1, 2, 3, 1, 4, 6, 7, 1, 4),[1, 4, 7]) == 6 assert count_Occurrence((1,2,3,4,5,6),[1,2]) == 2
- Source ID
- 446
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-447Python · Write a function to find cubes of individual elements in a list using lambda function. Source prompt examples: assert c…
Original task
Write a function to find cubes of individual elements in a list using lambda function. Source prompt examples: assert cube_nums([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])==[1, 8, 27, 64, 125, 216, 343, 512, 729, 1000] assert cube_nums([10,20,30])==([1000, 8000, 27000]) assert cube_nums([12,15])==([1728, 3375])
- Source ID
- 447
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-448Python · Write a function to calculate the sum of perrin numbers. Source prompt examples: assert cal_sum(9) == 49 assert cal_sum…
Original task
Write a function to calculate the sum of perrin numbers. Source prompt examples: assert cal_sum(9) == 49 assert cal_sum(10) == 66 assert cal_sum(11) == 88
- Source ID
- 448
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-449Python · Write a python function to check whether the triangle is valid or not if 3 points are given. Source prompt examples: as…
Original task
Write a python function to check whether the triangle is valid or not if 3 points are given. Source prompt examples: assert check_Triangle(1,5,2,5,4,6) == 'Yes' assert check_Triangle(1,1,1,4,1,5) == 'No' assert check_Triangle(1,1,1,1,1,1) == 'No'
- Source ID
- 449
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-45Python · Write a function to find the gcd of the given array elements. Source prompt examples: assert get_gcd([2, 4, 6, 8, 16]) …
Original task
Write a function to find the gcd of the given array elements. Source prompt examples: assert get_gcd([2, 4, 6, 8, 16]) == 2 assert get_gcd([1, 2, 3]) == 1 assert get_gcd([2, 4, 6, 8]) == 2
- Source ID
- 45
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-450Python · Write a function to extract specified size of strings from a give list of string values. Source prompt examples: assert…
Original task
Write a function to extract specified size of strings from a give list of string values. Source prompt examples: assert extract_string(['Python', 'list', 'exercises', 'practice', 'solution'] ,8)==['practice', 'solution'] assert extract_string(['Python', 'list', 'exercises', 'practice', 'solution'] ,6)==['Python'] assert extract_string(['Python', 'list', 'exercises', 'practice', 'solution'] ,9)==['exercises']
- Source ID
- 450
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-451Python · Write a function to remove all whitespaces from the given string using regex. Source prompt examples: assert remove_whi…
Original task
Write a function to remove all whitespaces from the given string using regex. Source prompt examples: assert remove_whitespaces(' Google Flutter ') == 'GoogleFlutter' assert remove_whitespaces(' Google Dart ') == 'GoogleDart' assert remove_whitespaces(' iOS Swift ') == 'iOSSwift'
- Source ID
- 451
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-452Python · Write a function that gives loss amount if the given amount has loss else return none. Source prompt examples: assert l…
Original task
Write a function that gives loss amount if the given amount has loss else return none. Source prompt examples: assert loss_amount(1500,1200)==None assert loss_amount(100,200)==100 assert loss_amount(2000,5000)==3000
- Source ID
- 452
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-453Python · Write a python function to find the sum of even factors of a number. Source prompt examples: assert sumofFactors(18) ==…
Original task
Write a python function to find the sum of even factors of a number. Source prompt examples: assert sumofFactors(18) == 26 assert sumofFactors(30) == 48 assert sumofFactors(6) == 8
- Source ID
- 453
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-454Python · Write a function that matches a word containing 'z'. Source prompt examples: assert text_match_wordz("pythonz.")==('Fou…
Original task
Write a function that matches a word containing 'z'. Source prompt examples: assert text_match_wordz("pythonz.")==('Found a match!') assert text_match_wordz("xyz.")==('Found a match!') assert text_match_wordz(" lang .")==('Not matched!')
- Source ID
- 454
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-455Python · Write a function to check whether the given month number contains 31 days or not. Source prompt examples: assert check_…
Original task
Write a function to check whether the given month number contains 31 days or not. Source prompt examples: assert check_monthnumb_number(5)==True assert check_monthnumb_number(2)==False assert check_monthnumb_number(6)==False
- Source ID
- 455
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-456Python · Write a function to reverse strings in a given list of string values. Source prompt examples: assert reverse_string_lis…
Original task
Write a function to reverse strings in a given list of string values. Source prompt examples: assert reverse_string_list(['Red', 'Green', 'Blue', 'White', 'Black'])==['deR', 'neerG', 'eulB', 'etihW', 'kcalB'] assert reverse_string_list(['john','amal','joel','george'])==['nhoj','lama','leoj','egroeg'] assert reverse_string_list(['jack','john','mary'])==['kcaj','nhoj','yram']
- Source ID
- 456
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-457Python · Write a python function to find the sublist having minimum length. Source prompt examples: assert Find_Min([[1],[1,2],[…
Original task
Write a python function to find the sublist having minimum length. Source prompt examples: assert Find_Min([[1],[1,2],[1,2,3]]) == [1] assert Find_Min([[1,1],[1,1,1],[1,2,7,8]]) == [1,1] assert Find_Min([['x'],['x','y'],['x','y','z']]) == ['x']
- Source ID
- 457
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-458Python · Write a function to find the area of a rectangle. Source prompt examples: assert rectangle_area(10,20)==200 assert rect…
Original task
Write a function to find the area of a rectangle. Source prompt examples: assert rectangle_area(10,20)==200 assert rectangle_area(10,5)==50 assert rectangle_area(4,2)==8
- Source ID
- 458
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-459Python · Write a function to remove uppercase substrings from a given string by using regex. Source prompt examples: assert remo…
Original task
Write a function to remove uppercase substrings from a given string by using regex. Source prompt examples: assert remove_uppercase('cAstyoUrFavoRitETVshoWs') == 'cstyoravoitshos' assert remove_uppercase('wAtchTheinTernEtrAdIo') == 'wtchheinerntrdo' assert remove_uppercase('VoicESeaRchAndreComMendaTionS') == 'oiceachndreomendaion'
- Source ID
- 459
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-46Python · Write a python function to determine whether all the numbers are different from each other are not. Source prompt examp…
Original task
Write a python function to determine whether all the numbers are different from each other are not. Source prompt examples: assert test_distinct([1,5,7,9]) == True assert test_distinct([2,4,5,5,7,9]) == False assert test_distinct([1,2,3]) == True
- Source ID
- 46
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-460Python · Write a python function to get the first element of each sublist. Source prompt examples: assert Extract([[1, 2], [3, 4…
Original task
Write a python function to get the first element of each sublist. Source prompt examples: assert Extract([[1, 2], [3, 4, 5], [6, 7, 8, 9]]) == [1, 3, 6] assert Extract([[1,2,3],[4, 5]]) == [1,4] assert Extract([[9,8,1],[1,2]]) == [9,1]
- Source ID
- 460
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-461Python · Write a python function to count the upper case characters in a given string. Source prompt examples: assert upper_ctr(…
Original task
Write a python function to count the upper case characters in a given string. Source prompt examples: assert upper_ctr('PYthon') == 1 assert upper_ctr('BigData') == 1 assert upper_ctr('program') == 0
- Source ID
- 461
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-462Python · Write a function to find all possible combinations of the elements of a given list. Source prompt examples: assert comb…
Original task
Write a function to find all possible combinations of the elements of a given list. Source prompt examples: assert combinations_list(['orange', 'red', 'green', 'blue'])==[[], ['orange'], ['red'], ['red', 'orange'], ['green'], ['green', 'orange'], ['green', 'red'], ['green', 'red', 'orange'], ['blue'], ['blue', 'orange'], ['blue', 'red'], ['blue', 'red', 'orange'], ['blue', 'green'], ['blue', 'green', 'orange'], ['blue', 'green', 'red'], ['blue', 'green', 'red', 'orange']] assert combinations_list(['red', 'green', 'blue', 'white', 'black', 'orange'])==[[], ['red'], ['green'], ['green', 'red'], ['blue'], ['blue', 'red'], ['blue', 'green'], ['blue', 'green', 'red'], ['white'], ['white', 'red'], ['white', 'green'], ['white', 'green', 'red'], ['white', 'blue'], ['white', 'blue', 'red'], ['white', 'blue', 'green'], ['white', 'blue', 'green', 'red'], ['black'], ['black', 'red'], ['black', 'green'], ['black', 'green', 'red'], ['black', 'blue'], ['black', 'blue', 'red'], ['black', 'blue', 'green'], ['black', 'blue', 'green', 'red'], ['black', 'white'], ['black', 'white', 'red'], ['black', 'white', 'green'], ['black', 'white', 'green', 'red'], ['black', 'white', 'blue'], ['black', 'white', 'blue', 'red'], ['black', 'white', 'blue', 'green'], ['black', 'white', 'blue', 'green', 'red'], ['orange'], ['orange', 'red'], ['orange', 'green'], ['orange', 'green', 'red'], ['orange', 'blue'], ['orange', 'blue', 'red'], ['orange', 'blue', 'green'], ['orange', 'blue', 'green', 'red'], ['orange', 'white'], ['orange', 'white', 'red'], ['orange', 'white', 'green'], ['orange', 'white', 'green', 'red'], ['orange', 'white', 'blue'], ['orange', 'white', 'blue', 'red'], ['orange', 'white', 'blue', 'green'], ['orange', 'white', 'blue', 'green', 'red'], ['orange', 'black'], ['orange', 'black', 'red'], ['orange', 'black', 'green'], ['orange', 'black', 'green', 'red'], ['orange', 'black', 'blue'], ['orange', 'black', 'blue', 'red'], ['orange', 'black', 'blue', 'green'], ['orange', 'black', 'blue', 'green', 'red'], ['orange', 'black', 'white'], ['orange', 'black', 'white', 'red'], ['orange', 'black', 'white', 'green'], ['orange', 'black', 'white', 'green', 'red'], ['orange', 'black', 'white', 'blue'], ['orange', 'black', 'white', 'blue', 'red'], ['orange', 'black', 'white', 'blue', 'green'], ['orange', 'black', 'white', 'blue', 'green', 'red']] assert combinations_list(['red', 'green', 'black', 'orange'])==[[], ['red'], ['green'], ['green', 'red'], ['black'], ['black', 'red'], ['black', 'green'], ['black', 'green', 'red'], ['orange'], ['orange', 'red'], ['orange', 'green'], ['orange', 'green', 'red'], ['orange', 'black'], ['orange', 'black', 'red'], ['orange', 'black', 'green'], ['orange', 'black', 'green', 'red']]
- Source ID
- 462
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-463Python · Write a function to find the maximum product subarray of the given array. Source prompt examples: assert max_subarray_p…
Original task
Write a function to find the maximum product subarray of the given array. Source prompt examples: assert max_subarray_product([1, -2, -3, 0, 7, -8, -2]) == 112 assert max_subarray_product([6, -3, -10, 0, 2]) == 180 assert max_subarray_product([-2, -40, 0, -2, -3]) == 80
- Source ID
- 463
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-464Python · Write a function to check if all values are same in a dictionary. Source prompt examples: assert check_value({'Cierra V…
Original task
Write a function to check if all values are same in a dictionary. Source prompt examples: assert check_value({'Cierra Vega': 12, 'Alden Cantrell': 12, 'Kierra Gentry': 12, 'Pierre Cox': 12},10)==False assert check_value({'Cierra Vega': 12, 'Alden Cantrell': 12, 'Kierra Gentry': 12, 'Pierre Cox': 12},12)==True assert check_value({'Cierra Vega': 12, 'Alden Cantrell': 12, 'Kierra Gentry': 12, 'Pierre Cox': 12},5)==False
- Source ID
- 464
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-465Python · Write a function to drop empty items from a given dictionary. Source prompt examples: assert drop_empty({'c1': 'Red', '…
Original task
Write a function to drop empty items from a given dictionary. Source prompt examples: assert drop_empty({'c1': 'Red', 'c2': 'Green', 'c3':None})=={'c1': 'Red', 'c2': 'Green'} assert drop_empty({'c1': 'Red', 'c2': None, 'c3':None})=={'c1': 'Red'} assert drop_empty({'c1': None, 'c2': 'Green', 'c3':None})=={ 'c2': 'Green'}
- Source ID
- 465
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-466Python · Write a function to find the peak element in the given array. Source prompt examples: assert find_peak([1, 3, 20, 4, 1,…
Original task
Write a function to find the peak element in the given array. Source prompt examples: assert find_peak([1, 3, 20, 4, 1, 0], 6) == 2 assert find_peak([2, 3, 4, 5, 6], 5) == 4 assert find_peak([8, 9, 11, 12, 14, 15], 6) == 5
- Source ID
- 466
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-467Python · Write a python function to convert decimal number to octal number. Source prompt examples: assert decimal_to_Octal(10) …
Original task
Write a python function to convert decimal number to octal number. Source prompt examples: assert decimal_to_Octal(10) == 12 assert decimal_to_Octal(2) == 2 assert decimal_to_Octal(33) == 41
- Source ID
- 467
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-468Python · Write a function to find the maximum product formed by multiplying numbers of an increasing subsequence of that array. …
Original task
Write a function to find the maximum product formed by multiplying numbers of an increasing subsequence of that array. Source prompt examples: assert max_product([3, 100, 4, 5, 150, 6], 6) == 45000 assert max_product([4, 42, 55, 68, 80], 5) == 50265600 assert max_product([10, 22, 9, 33, 21, 50, 41, 60], 8) == 21780000
- Source ID
- 468
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-469Python · Write a function to find the maximum profit earned from a maximum of k stock transactions Source prompt examples: asser…
Original task
Write a function to find the maximum profit earned from a maximum of k stock transactions Source prompt examples: assert max_profit([1, 5, 2, 3, 7, 6, 4, 5], 3) == 10 assert max_profit([2, 4, 7, 5, 4, 3, 5], 2) == 7 assert max_profit([10, 6, 8, 4, 2], 2) == 2
- Source ID
- 469
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-47Python · Write a python function to find the last digit when factorial of a divides factorial of b. Source prompt examples: asse…
Original task
Write a python function to find the last digit when factorial of a divides factorial of b. Source prompt examples: assert compute_Last_Digit(2,4) == 2 assert compute_Last_Digit(6,8) == 6 assert compute_Last_Digit(1,2) == 2
- Source ID
- 47
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-470Python · Write a function to find the pairwise addition of the elements of the given tuples. Source prompt examples: assert add_…
Original task
Write a function to find the pairwise addition of the elements of the given tuples. Source prompt examples: assert add_pairwise((1, 5, 7, 8, 10)) == (6, 12, 15, 18) assert add_pairwise((2, 6, 8, 9, 11)) == (8, 14, 17, 20) assert add_pairwise((3, 7, 9, 10, 12)) == (10, 16, 19, 22)
- Source ID
- 470
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-471Python · Write a python function to find remainder of array multiplication divided by n. Source prompt examples: assert find_rem…
Original task
Write a python function to find remainder of array multiplication divided by n. Source prompt examples: assert find_remainder([ 100, 10, 5, 25, 35, 14 ],6,11) ==9 assert find_remainder([1,1,1],3,1) == 0 assert find_remainder([1,2,1],3,2) == 0
- Source ID
- 471
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-472Python · Write a python function to check whether the given list contains consecutive numbers or not. Source prompt examples: as…
Original task
Write a python function to check whether the given list contains consecutive numbers or not. Source prompt examples: assert check_Consecutive([1,2,3,4,5]) == True assert check_Consecutive([1,2,3,5,6]) == False assert check_Consecutive([1,2,1]) == False
- Source ID
- 472
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-473Python · Write a function to find the tuple intersection of elements in the given tuple list irrespective of their order. Source…
Original task
Write a function to find the tuple intersection of elements in the given tuple list irrespective of their order. Source prompt examples: assert tuple_intersection([(3, 4), (5, 6), (9, 10), (4, 5)] , [(5, 4), (3, 4), (6, 5), (9, 11)]) == {(4, 5), (3, 4), (5, 6)} assert tuple_intersection([(4, 1), (7, 4), (11, 13), (17, 14)] , [(1, 4), (7, 4), (16, 12), (10, 13)]) == {(4, 7), (1, 4)} assert tuple_intersection([(2, 1), (3, 2), (1, 3), (1, 4)] , [(11, 2), (2, 3), (6, 2), (1, 3)]) == {(1, 3), (2, 3)}
- Source ID
- 473
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-474Python · Write a function to replace characters in a string. Source prompt examples: assert replace_char("polygon",'y','l')==("p…
Original task
Write a function to replace characters in a string. Source prompt examples: assert replace_char("polygon",'y','l')==("pollgon") assert replace_char("character",'c','a')==("aharaater") assert replace_char("python",'l','a')==("python")
- Source ID
- 474
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-475Python · Write a function to sort counter by value. Source prompt examples: assert sort_counter({'Math':81, 'Physics':83, 'Chemi…
Original task
Write a function to sort counter by value. Source prompt examples: assert sort_counter({'Math':81, 'Physics':83, 'Chemistry':87})==[('Chemistry', 87), ('Physics', 83), ('Math', 81)] assert sort_counter({'Math':400, 'Physics':300, 'Chemistry':250})==[('Math', 400), ('Physics', 300), ('Chemistry', 250)] assert sort_counter({'Math':900, 'Physics':1000, 'Chemistry':1250})==[('Chemistry', 1250), ('Physics', 1000), ('Math', 900)]
- Source ID
- 475
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-476Python · Write a python function to find the sum of the largest and smallest value in a given array. Source prompt examples: ass…
Original task
Write a python function to find the sum of the largest and smallest value in a given array. Source prompt examples: assert big_sum([1,2,3]) == 4 assert big_sum([-1,2,3,4]) == 3 assert big_sum([2,3,6]) == 8
- Source ID
- 476
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-477Python · Write a python function to convert the given string to lower case. Source prompt examples: assert is_lower("InValid") =…
Original task
Write a python function to convert the given string to lower case. Source prompt examples: assert is_lower("InValid") == "invalid" assert is_lower("TruE") == "true" assert is_lower("SenTenCE") == "sentence"
- Source ID
- 477
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-478Python · Write a function to remove lowercase substrings from a given string. Source prompt examples: assert remove_lowercase("P…
Original task
Write a function to remove lowercase substrings from a given string. Source prompt examples: assert remove_lowercase("PYTHon")==('PYTH') assert remove_lowercase("FInD")==('FID') assert remove_lowercase("STRinG")==('STRG')
- Source ID
- 478
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-479Python · Write a python function to find the first digit of a given number. Source prompt examples: assert first_Digit(123) == 1…
Original task
Write a python function to find the first digit of a given number. Source prompt examples: assert first_Digit(123) == 1 assert first_Digit(456) == 4 assert first_Digit(12) == 1
- Source ID
- 479
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-48Python · Write a python function to set all odd bits of a given number. Source prompt examples: assert odd_bit_set_number(10) ==…
Original task
Write a python function to set all odd bits of a given number. Source prompt examples: assert odd_bit_set_number(10) == 15 assert odd_bit_set_number(20) == 21 assert odd_bit_set_number(30) == 31
- Source ID
- 48
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-480Python · Write a python function to find the maximum occurring character in a given string. Source prompt examples: assert get_m…
Original task
Write a python function to find the maximum occurring character in a given string. Source prompt examples: assert get_max_occuring_char("data") == "a" assert get_max_occuring_char("create") == "e" assert get_max_occuring_char("brilliant girl") == "i"
- Source ID
- 480
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-481Python · Write a function to determine if there is a subset of the given set with sum equal to the given sum. Source prompt exam…
Original task
Write a function to determine if there is a subset of the given set with sum equal to the given sum. Source prompt examples: assert is_subset_sum([3, 34, 4, 12, 5, 2], 6, 9) == True assert is_subset_sum([3, 34, 4, 12, 5, 2], 6, 30) == False assert is_subset_sum([3, 34, 4, 12, 5, 2], 6, 15) == True
- Source ID
- 481
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-482Python · Write a function to find sequences of one upper case letter followed by lower case letters in the given string by using …
Original task
Write a function to find sequences of one upper case letter followed by lower case letters in the given string by using regex. Source prompt examples: assert match("Geeks") == 'Yes' assert match("geeksforGeeks") == 'Yes' assert match("geeks") == 'No'
- Source ID
- 482
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-483Python · Write a python function to find the first natural number whose factorial is divisible by x. Source prompt examples: ass…
Original task
Write a python function to find the first natural number whose factorial is divisible by x. Source prompt examples: assert first_Factorial_Divisible_Number(10) == 5 assert first_Factorial_Divisible_Number(15) == 5 assert first_Factorial_Divisible_Number(5) == 4
- Source ID
- 483
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-484Python · Write a function to remove the matching tuples from the given two tuples. Source prompt examples: assert remove_matchin…
Original task
Write a function to remove the matching tuples from the given two tuples. Source prompt examples: assert remove_matching_tuple([('Hello', 'dude'), ('How', 'are'), ('you', '?')], [('Hello', 'dude'), ('How', 'are')]) == [('you', '?')] assert remove_matching_tuple([('Part', 'of'), ('the', 'journey'), ('is ', 'end')], [('Journey', 'the'), ('is', 'end')]) == [('Part', 'of'), ('the', 'journey'), ('is ', 'end')] assert remove_matching_tuple([('Its', 'been'), ('a', 'long'), ('day', 'without')], [('a', 'long'), ('my', 'friend')]) == [('Its', 'been'), ('day', 'without')]
- Source ID
- 484
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-485Python · Write a function to find the largest palindromic number in the given array. Source prompt examples: assert largest_pali…
Original task
Write a function to find the largest palindromic number in the given array. Source prompt examples: assert largest_palindrome([1, 232, 54545, 999991], 4) == 54545 assert largest_palindrome([1, 2, 3, 4, 5, 50], 6) == 5 assert largest_palindrome([1, 3, 7, 9, 45], 5) == 9
- Source ID
- 485
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-486Python · Write a function to compute binomial probability for the given number. Source prompt examples: assert binomial_probabil…
Original task
Write a function to compute binomial probability for the given number. Source prompt examples: assert binomial_probability(10, 5, 1.0/3) == 0.13656454808718185 assert binomial_probability(11, 6, 2.0/4) == 0.2255859375 assert binomial_probability(12, 7, 3.0/5) == 0.227030335488
- Source ID
- 486
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-487Python · Write a function to sort a list of tuples in increasing order by the last element in each tuple. Source prompt examples…
Original task
Write a function to sort a list of tuples in increasing order by the last element in each tuple. Source prompt examples: assert sort_tuple([(1, 3), (3, 2), (2, 1)] ) == [(2, 1), (3, 2), (1, 3)] assert sort_tuple([(2, 4), (3, 3), (1, 1)] ) == [(1, 1), (3, 3), (2, 4)] assert sort_tuple([(3, 9), (6, 7), (4, 3)] ) == [(4, 3), (6, 7), (3, 9)]
- Source ID
- 487
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-488Python · Write a function to find the area of a pentagon. Source prompt examples: assert area_pentagon(5)==43.01193501472417 ass…
Original task
Write a function to find the area of a pentagon. Source prompt examples: assert area_pentagon(5)==43.01193501472417 assert area_pentagon(10)==172.0477400588967 assert area_pentagon(15)==387.10741513251753
- Source ID
- 488
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-489Python · Write a python function to find the frequency of the largest value in a given array. Source prompt examples: assert fre…
Original task
Write a python function to find the frequency of the largest value in a given array. Source prompt examples: assert frequency_Of_Largest(5,[1,2,3,4,4]) == 2 assert frequency_Of_Largest(3,[5,6,5]) == 1 assert frequency_Of_Largest(4,[2,7,7,7]) == 3
- Source ID
- 489
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-49Python · Write a function to extract every first or specified element from a given two-dimensional list. Source prompt examples:…
Original task
Write a function to extract every first or specified element from a given two-dimensional list. Source prompt examples: assert specified_element([[1, 2, 3, 2], [4, 5, 6, 2], [7, 1, 9, 5]],0)==[1, 4, 7] assert specified_element([[1, 2, 3, 2], [4, 5, 6, 2], [7, 1, 9, 5]],2)==[3, 6, 9] assert specified_element([[1, 2, 3, 2], [4, 5, 6, 2], [7, 1, 9, 5]],1)==[2,5,1]
- Source ID
- 49
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-490Python · Write a function to extract all the pairs which are symmetric in the given tuple list. Source prompt examples: assert e…
Original task
Write a function to extract all the pairs which are symmetric in the given tuple list. Source prompt examples: assert extract_symmetric([(6, 7), (2, 3), (7, 6), (9, 8), (10, 2), (8, 9)] ) == {(8, 9), (6, 7)} assert extract_symmetric([(7, 8), (3, 4), (8, 7), (10, 9), (11, 3), (9, 10)] ) == {(9, 10), (7, 8)} assert extract_symmetric([(8, 9), (4, 5), (9, 8), (11, 10), (12, 4), (10, 11)] ) == {(8, 9), (10, 11)}
- Source ID
- 490
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-491Python · Write a function to find the sum of geometric progression series. Source prompt examples: assert sum_gp(1,5,2)==31 asse…
Original task
Write a function to find the sum of geometric progression series. Source prompt examples: assert sum_gp(1,5,2)==31 assert sum_gp(1,5,4)==341 assert sum_gp(2,6,3)==728
- Source ID
- 491
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-492Python · Write a function to search an element in the given array by using binary search. Source prompt examples: assert binary_…
Original task
Write a function to search an element in the given array by using binary search. Source prompt examples: assert binary_search([1,2,3,5,8], 6) == False assert binary_search([7, 8, 9, 10, 13], 10) == True assert binary_search([11, 13, 14, 19, 22, 36], 23) == False
- Source ID
- 492
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-493Python · Write a function to calculate a grid of hexagon coordinates where function returns a list of lists containing 6 tuples o…
Original task
Write a function to calculate a grid of hexagon coordinates where function returns a list of lists containing 6 tuples of x, y point coordinates. Source prompt examples: assert calculate_polygons(1,1, 4, 4, 3)==[[(-5.0, -4.196152422706632), (-5.0, -0.7320508075688767), (-2.0, 1.0), (1.0, -0.7320508075688767), (1.0, -4.196152422706632), (-2.0, -5.928203230275509), (-5.0, -4.196152422706632)], [(1.0, -4.196152422706632), (1.0, -0.7320508075688767), (4.0, 1.0), (7.0, -0.7320508075688767), (7.0, -4.196152422706632), (4.0, -5.928203230275509), (1.0, -4.196152422706632)], [(7.0, -4.196152422706632), (7.0, -0.7320508075688767), (10.0, 1.0), (13.0, -0.7320508075688767), (13.0, -4.196152422706632), (10.0, -5.928203230275509), (7.0, -4.196152422706632)], [(-2.0, 1.0000000000000004), (-2.0, 4.464101615137755), (1.0, 6.196152422706632), (4.0, 4.464101615137755), (4.0, 1.0000000000000004), (1.0, -0.7320508075688767), (-2.0, 1.0000000000000004)], [(4.0, 1.0000000000000004), (4.0, 4.464101615137755), (7.0, 6.196152422706632), (10.0, 4.464101615137755), (10.0, 1.0000000000000004), (7.0, -0.7320508075688767), (4.0, 1.0000000000000004)], [(-5.0, 6.196152422706632), (-5.0, 9.660254037844387), (-2.0, 11.392304845413264), (1.0, 9.660254037844387), (1.0, 6.196152422706632), (-2.0, 4.464101615137755), (-5.0, 6.196152422706632)], [(1.0, 6.196152422706632), (1.0, 9.660254037844387), (4.0, 11.392304845413264), (7.0, 9.660254037844387), (7.0, 6.196152422706632), (4.0, 4.464101615137755), (1.0, 6.196152422706632)], [(7.0, 6.196152422706632), (7.0, 9.660254037844387), (10.0, 11.392304845413264), (13.0, 9.660254037844387), (13.0, 6.196152422706632), (10.0, 4.464101615137755), (7.0, 6.196152422706632)], [(-2.0, 11.392304845413264), (-2.0, 14.85640646055102), (1.0, 16.588457268119896), (4.0, 14.85640646055102), (4.0, 11.392304845413264), (1.0, 9.660254037844387), (-2.0, 11.392304845413264)], [(4.0, 11.392304845413264), (4.0, 14.85640646055102), (7.0, 16.588457268119896), (10.0, 14.85640646055102), (10.0, 11.392304845413264), (7.0, 9.660254037844387), (4.0, 11.392304845413264)]] assert calculate_polygons(5,4,7,9,8)==[[(-11.0, -9.856406460551018), (-11.0, -0.6188021535170058), (-3.0, 4.0), (5.0, -0.6188021535170058), (5.0, -9.856406460551018), (-3.0, -14.475208614068023), (-11.0, -9.856406460551018)], [(5.0, -9.856406460551018), (5.0, -0.6188021535170058), (13.0, 4.0), (21.0, -0.6188021535170058), (21.0, -9.856406460551018), (13.0, -14.475208614068023), (5.0, -9.856406460551018)], [(21.0, -9.856406460551018), (21.0, -0.6188021535170058), (29.0, 4.0), (37.0, -0.6188021535170058), (37.0, -9.856406460551018), (29.0, -14.475208614068023), (21.0, -9.856406460551018)], [(-3.0, 4.0), (-3.0, 13.237604307034012), (5.0, 17.856406460551018), (13.0, 13.237604307034012), (13.0, 4.0), (5.0, -0.6188021535170058), (-3.0, 4.0)], [(13.0, 4.0), (13.0, 13.237604307034012), (21.0, 17.856406460551018), (29.0, 13.237604307034012), (29.0, 4.0), (21.0, -0.6188021535170058), (13.0, 4.0)], [(-11.0, 17.856406460551018), (-11.0, 27.09401076758503), (-3.0, 31.712812921102035), (5.0, 27.09401076758503), (5.0, 17.856406460551018), (-3.0, 13.237604307034012), (-11.0, 17.856406460551018)], [(5.0, 17.856406460551018), (5.0, 27.09401076758503), (13.0, 31.712812921102035), (21.0, 27.09401076758503), (21.0, 17.856406460551018), (13.0, 13.237604307034012), (5.0, 17.856406460551018)], [(21.0, 17.856406460551018), (21.0, 27.09401076758503), (29.0, 31.712812921102035), (37.0, 27.09401076758503), (37.0, 17.856406460551018), (29.0, 13.237604307034012), (21.0, 17.856406460551018)], [(-3.0, 31.712812921102035), (-3.0, 40.95041722813605), (5.0, 45.569219381653056), (13.0, 40.95041722813605), (13.0, 31.712812921102035), (5.0, 27.09401076758503), (-3.0, 31.712812921102035)], [(13.0, 31.712812921102035), (13.0, 40.95041722813605), (21.0, 45.569219381653056), (29.0, 40.95041722813605), (29.0, 31.712812921102035), (21.0, 27.09401076758503), (13.0, 31.712812921102035)]] assert calculate_polygons(9,6,4,3,2)==[[(5.0, 2.5358983848622456), (5.0, 4.8452994616207485), (7.0, 6.0), (9.0, 4.8452994616207485), (9.0, 2.5358983848622456), (7.0, 1.3811978464829942), (5.0, 2.5358983848622456)], [(7.0, 6.0), (7.0, 8.309401076758503), (9.0, 9.464101615137753), (11.0, 8.309401076758503), (11.0, 6.0), (9.0, 4.8452994616207485), (7.0, 6.0)]]
- Source ID
- 493
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-494Python · Write a function to convert the given binary tuple to integer. Source prompt examples: assert binary_to_integer((1, 1, …
Original task
Write a function to convert the given binary tuple to integer. Source prompt examples: assert binary_to_integer((1, 1, 0, 1, 0, 0, 1)) == '105' assert binary_to_integer((0, 1, 1, 0, 0, 1, 0, 1)) == '101' assert binary_to_integer((1, 1, 0, 1, 0, 1)) == '53'
- Source ID
- 494
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-495Python · Write a function to remove lowercase substrings from a given string by using regex. Source prompt examples: assert remo…
Original task
Write a function to remove lowercase substrings from a given string by using regex. Source prompt examples: assert remove_lowercase('KDeoALOklOOHserfLoAJSIskdsf') == 'KDALOOOHLAJSI' assert remove_lowercase('ProducTnamEstreAmIngMediAplAYer') == 'PTEAIMAAY' assert remove_lowercase('maNufacTuredbYSheZenTechNolOGIes') == 'NTYSZTNOGI'
- Source ID
- 495
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-496Python · Write a function to find the smallest integers from a given list of numbers using heap queue algorithm. Source prompt e…
Original task
Write a function to find the smallest integers from a given list of numbers using heap queue algorithm. Source prompt examples: assert heap_queue_smallest( [25, 35, 22, 85, 14, 65, 75, 25, 58],3)==[14, 22, 25] assert heap_queue_smallest( [25, 35, 22, 85, 14, 65, 75, 25, 58],2)==[14, 22] assert heap_queue_smallest( [25, 35, 22, 85, 14, 65, 75, 22, 58],5)==[14, 22, 22, 25, 35]
- Source ID
- 496
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-497Python · Write a function to find the surface area of a cone. Source prompt examples: assert surfacearea_cone(5,12)==282.7433388…
Original task
Write a function to find the surface area of a cone. Source prompt examples: assert surfacearea_cone(5,12)==282.7433388230814 assert surfacearea_cone(10,15)==880.5179353159282 assert surfacearea_cone(19,17)==2655.923961165254
- Source ID
- 497
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-498Python · Write a python function to find gcd of two positive integers. Source prompt examples: assert gcd(12, 17) == 1 assert gc…
Original task
Write a python function to find gcd of two positive integers. Source prompt examples: assert gcd(12, 17) == 1 assert gcd(4,6) == 2 assert gcd(2,9) == 1
- Source ID
- 498
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-499Python · Write a function to find the diameter of a circle. Source prompt examples: assert diameter_circle(10)==20 assert diamet…
Original task
Write a function to find the diameter of a circle. Source prompt examples: assert diameter_circle(10)==20 assert diameter_circle(40)==80 assert diameter_circle(15)==30
- Source ID
- 499
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-50Python · Write a function to find the list with minimum length using lambda function. Source prompt examples: assert min_length_…
Original task
Write a function to find the list with minimum length using lambda function. Source prompt examples: assert min_length_list([[0], [1, 3], [5, 7], [9, 11], [13, 15, 17]])==(1, [0]) assert min_length_list([[1,2,3,4,5],[1,2,3,4],[1,2,3],[1,2],[1]])==(1,[1]) assert min_length_list([[3,4,5],[6,7,8,9],[10,11,12],[1,2]])==(2,[1,2])
- Source ID
- 50
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-500Python · Write a function to concatenate all elements of the given list into a string. Source prompt examples: assert concatenat…
Original task
Write a function to concatenate all elements of the given list into a string. Source prompt examples: assert concatenate_elements(['hello','there','have','a','rocky','day'] ) == ' hello there have a rocky day' assert concatenate_elements([ 'Hi', 'there', 'How','are', 'you'] ) == ' Hi there How are you' assert concatenate_elements([ 'Part', 'of', 'the','journey', 'is', 'end'] ) == ' Part of the journey is end'
- Source ID
- 500
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-501Python · Write a python function to find common divisor between two numbers in a given pair. Source prompt examples: assert num_…
Original task
Write a python function to find common divisor between two numbers in a given pair. Source prompt examples: assert num_comm_div(2,4) == 2 assert num_comm_div(2,8) == 2 assert num_comm_div(12,24) == 6
- Source ID
- 501
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-502Python · Write a python function to find remainder of two numbers. Source prompt examples: assert find(3,3) == 0 assert find(10,…
Original task
Write a python function to find remainder of two numbers. Source prompt examples: assert find(3,3) == 0 assert find(10,3) == 1 assert find(16,5) == 1
- Source ID
- 502
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-503Python · Write a function to add consecutive numbers of a given list. Source prompt examples: assert add_consecutive_nums([1, 1,…
Original task
Write a function to add consecutive numbers of a given list. Source prompt examples: assert add_consecutive_nums([1, 1, 3, 4, 4, 5, 6, 7])==[2, 4, 7, 8, 9, 11, 13] assert add_consecutive_nums([4, 5, 8, 9, 6, 10])==[9, 13, 17, 15, 16] assert add_consecutive_nums([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])==[3, 5, 7, 9, 11, 13, 15, 17, 19]
- Source ID
- 503
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-504Python · Write a python function to find the cube sum of first n natural numbers. Source prompt examples: assert sum_Of_Series(5…
Original task
Write a python function to find the cube sum of first n natural numbers. Source prompt examples: assert sum_Of_Series(5) == 225 assert sum_Of_Series(2) == 9 assert sum_Of_Series(3) == 36
- Source ID
- 504
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-505Python · Write a function to move all zeroes to the end of the given array. Source prompt examples: assert re_order([6, 0, 8, 2,…
Original task
Write a function to move all zeroes to the end of the given array. Source prompt examples: assert re_order([6, 0, 8, 2, 3, 0, 4, 0, 1]) == [6, 8, 2, 3, 4, 1, 0, 0, 0] assert re_order([4, 0, 2, 7, 0, 9, 0, 12, 0]) == [4, 2, 7, 9, 12, 0, 0, 0, 0] assert re_order([3, 11, 0, 74, 14, 0, 1, 0, 2]) == [3, 11, 74, 14, 1, 2, 0, 0, 0]
- Source ID
- 505
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-506Python · Write a function to calculate the permutation coefficient of given p(n, k). Source prompt examples: assert permutation_…
Original task
Write a function to calculate the permutation coefficient of given p(n, k). Source prompt examples: assert permutation_coefficient(10, 2) == 90 assert permutation_coefficient(10, 3) == 720 assert permutation_coefficient(10, 1) == 10
- Source ID
- 506
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-507Python · Write a function to remove specific words from a given list. Source prompt examples: assert remove_words(['red', 'green…
Original task
Write a function to remove specific words from a given list. Source prompt examples: assert remove_words(['red', 'green', 'blue', 'white', 'black', 'orange'],['white', 'orange'])==['red', 'green', 'blue', 'black'] assert remove_words(['red', 'green', 'blue', 'white', 'black', 'orange'],['black', 'orange'])==['red', 'green', 'blue', 'white'] assert remove_words(['red', 'green', 'blue', 'white', 'black', 'orange'],['blue', 'white'])==['red', 'green', 'black', 'orange']
- Source ID
- 507
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-508Python · Write a function to check if the common elements between two given lists are in the same order or not. Source prompt ex…
Original task
Write a function to check if the common elements between two given lists are in the same order or not. Source prompt examples: assert same_order(["red","green","black","orange"],["red","pink","green","white","black"])==True assert same_order(["red","pink","green","white","black"],["white","orange","pink","black"])==False assert same_order(["red","green","black","orange"],["red","pink","green","white","black"])==True
- Source ID
- 508
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-509Python · Write a python function to find the average of odd numbers till a given odd number. Source prompt examples: assert aver…
Original task
Write a python function to find the average of odd numbers till a given odd number. Source prompt examples: assert average_Odd(9) == 5 assert average_Odd(5) == 3 assert average_Odd(11) == 6
- Source ID
- 509
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-51Python · Write a function to print check if the triangle is equilateral or not. Source prompt examples: assert check_equilateral…
Original task
Write a function to print check if the triangle is equilateral or not. Source prompt examples: assert check_equilateral(6,8,12)==False assert check_equilateral(6,6,12)==False assert check_equilateral(6,6,6)==True
- Source ID
- 51
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-510Python · Write a function to find the number of subsequences having product smaller than k for the given non negative array. Sou…
Original task
Write a function to find the number of subsequences having product smaller than k for the given non negative array. Source prompt examples: assert no_of_subsequences([1,2,3,4], 10) == 11 assert no_of_subsequences([4,8,7,2], 50) == 9 assert no_of_subsequences([5,6,7,8], 15) == 4
- Source ID
- 510
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-52Python · Write a function to caluclate area of a parallelogram. Source prompt examples: assert parallelogram_area(10,20)==200 as…
Original task
Write a function to caluclate area of a parallelogram. Source prompt examples: assert parallelogram_area(10,20)==200 assert parallelogram_area(15,20)==300 assert parallelogram_area(8,9)==72
- Source ID
- 52
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-53Python · Write a python function to check whether the first and last characters of a given string are equal or not. Source promp…
Original task
Write a python function to check whether the first and last characters of a given string are equal or not. Source prompt examples: assert check_Equality("abcda") == "Equal" assert check_Equality("ab") == "Not Equal" assert check_Equality("mad") == "Not Equal"
- Source ID
- 53
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-54Python · Write a function to sort the given array by using counting sort. Source prompt examples: assert counting_sort([1,23,4,5…
Original task
Write a function to sort the given array by using counting sort. Source prompt examples: assert counting_sort([1,23,4,5,6,7,8]) == [1, 4, 5, 6, 7, 8, 23] assert counting_sort([12, 9, 28, 33, 69, 45]) == [9, 12, 28, 33, 45, 69] assert counting_sort([8, 4, 14, 3, 2, 1]) == [1, 2, 3, 4, 8, 14]
- Source ID
- 54
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-55Python · Write a function to find t-nth term of geometric series. Source prompt examples: assert tn_gp(1,5,2)==16 assert tn_gp(1…
Original task
Write a function to find t-nth term of geometric series. Source prompt examples: assert tn_gp(1,5,2)==16 assert tn_gp(1,5,4)==256 assert tn_gp(2,6,3)==486
- Source ID
- 55
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-56Python · Write a python function to check if a given number is one less than twice its reverse. Source prompt examples: assert c…
Original task
Write a python function to check if a given number is one less than twice its reverse. Source prompt examples: assert check(70) == False assert check(23) == False assert check(73) == True
- Source ID
- 56
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-57Python · Write a python function to find the largest number that can be formed with the given digits. Source prompt examples: as…
Original task
Write a python function to find the largest number that can be formed with the given digits. Source prompt examples: assert find_Max_Num([1,2,3],3) == 321 assert find_Max_Num([4,5,6,1],4) == 6541 assert find_Max_Num([1,2,3,9],4) == 9321
- Source ID
- 57
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-58Python · Write a python function to check whether the given two integers have opposite sign or not. Source prompt examples: asse…
Original task
Write a python function to check whether the given two integers have opposite sign or not. Source prompt examples: assert opposite_Signs(1,-2) == True assert opposite_Signs(3,2) == False assert opposite_Signs(-10,-10) == False
- Source ID
- 58
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-59Python · Write a function to find the nth octagonal number. Source prompt examples: assert is_octagonal(5) == 65 assert is_octag…
Original task
Write a function to find the nth octagonal number. Source prompt examples: assert is_octagonal(5) == 65 assert is_octagonal(10) == 280 assert is_octagonal(15) == 645
- Source ID
- 59
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-60Python · Write a function to find the maximum length of the subsequence with difference between adjacent elements for the given a…
Original task
Write a function to find the maximum length of the subsequence with difference between adjacent elements for the given array. Source prompt examples: assert max_len_sub([2, 5, 6, 3, 7, 6, 5, 8], 8) == 5 assert max_len_sub([-2, -1, 5, -1, 4, 0, 3], 7) == 4 assert max_len_sub([9, 11, 13, 15, 18], 5) == 1
- Source ID
- 60
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-61Python · Write a python function to count number of substrings with the sum of digits equal to their length. Source prompt examp…
Original task
Write a python function to count number of substrings with the sum of digits equal to their length. Source prompt examples: assert count_Substrings('112112',6) == 6 assert count_Substrings('111',3) == 6 assert count_Substrings('1101112',7) == 12
- Source ID
- 61
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-62Python · Write a python function to find smallest number in a list. Source prompt examples: assert smallest_num([10, 20, 1, 45, …
Original task
Write a python function to find smallest number in a list. Source prompt examples: assert smallest_num([10, 20, 1, 45, 99]) == 1 assert smallest_num([1, 2, 3]) == 1 assert smallest_num([45, 46, 50, 60]) == 45
- Source ID
- 62
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-63Python · Write a function to find the maximum difference between available pairs in the given tuple list. Source prompt examples…
Original task
Write a function to find the maximum difference between available pairs in the given tuple list. Source prompt examples: assert max_difference([(3, 5), (1, 7), (10, 3), (1, 2)]) == 7 assert max_difference([(4, 6), (2, 17), (9, 13), (11, 12)]) == 15 assert max_difference([(12, 35), (21, 27), (13, 23), (41, 22)]) == 23
- Source ID
- 63
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-64Python · Write a function to sort a list of tuples using lambda. Source prompt examples: assert subject_marks([('English', 88), …
Original task
Write a function to sort a list of tuples using lambda. Source prompt examples: assert subject_marks([('English', 88), ('Science', 90), ('Maths', 97), ('Social sciences', 82)])==[('Social sciences', 82), ('English', 88), ('Science', 90), ('Maths', 97)] assert subject_marks([('Telugu',49),('Hindhi',54),('Social',33)])==([('Social',33),('Telugu',49),('Hindhi',54)]) assert subject_marks([('Physics',96),('Chemistry',97),('Biology',45)])==([('Biology',45),('Physics',96),('Chemistry',97)])
- Source ID
- 64
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-65Python · Write a function of recursion list sum. Source prompt examples: assert recursive_list_sum(([1, 2, [3,4],[5,6]]))==21 as…
Original task
Write a function of recursion list sum. Source prompt examples: assert recursive_list_sum(([1, 2, [3,4],[5,6]]))==21 assert recursive_list_sum(([7, 10, [15,14],[19,41]]))==106 assert recursive_list_sum(([10, 20, [30,40],[50,60]]))==210
- Source ID
- 65
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-66Python · Write a python function to count positive numbers in a list. Source prompt examples: assert pos_count([1,-2,3,-4]) == 2…
Original task
Write a python function to count positive numbers in a list. Source prompt examples: assert pos_count([1,-2,3,-4]) == 2 assert pos_count([3,4,5,-1]) == 3 assert pos_count([1,2,3,4]) == 4
- Source ID
- 66
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-67Python · Write a function to find the number of ways to partition a set of bell numbers. Source prompt examples: assert bell_num…
Original task
Write a function to find the number of ways to partition a set of bell numbers. Source prompt examples: assert bell_number(2)==2 assert bell_number(10)==115975 assert bell_number(56)==6775685320645824322581483068371419745979053216268760300
- Source ID
- 67
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-68Python · Write a python function to check whether the given array is monotonic or not. Source prompt examples: assert is_Monoton…
Original task
Write a python function to check whether the given array is monotonic or not. Source prompt examples: assert is_Monotonic([6, 5, 4, 4]) == True assert is_Monotonic([1, 2, 2, 3]) == True assert is_Monotonic([1, 3, 2]) == False
- Source ID
- 68
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-69Python · Write a function to check whether a list contains the given sublist or not. Source prompt examples: assert is_sublist([…
Original task
Write a function to check whether a list contains the given sublist or not. Source prompt examples: assert is_sublist([2,4,3,5,7],[3,7])==False assert is_sublist([2,4,3,5,7],[4,3])==True assert is_sublist([2,4,3,5,7],[1,6])==False
- Source ID
- 69
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-70Python · Write a function to find whether all the given tuples have equal length or not. Source prompt examples: assert get_equa…
Original task
Write a function to find whether all the given tuples have equal length or not. Source prompt examples: assert get_equal([(11, 22, 33), (44, 55, 66)], 3) == 'All tuples have same length' assert get_equal([(1, 2, 3), (4, 5, 6, 7)], 3) == 'All tuples do not have same length' assert get_equal([(1, 2), (3, 4)], 2) == 'All tuples have same length'
- Source ID
- 70
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-71Python · Write a function to sort a list of elements using comb sort. Source prompt examples: assert comb_sort([5, 15, 37, 25, 7…
Original task
Write a function to sort a list of elements using comb sort. Source prompt examples: assert comb_sort([5, 15, 37, 25, 79]) == [5, 15, 25, 37, 79] assert comb_sort([41, 32, 15, 19, 22]) == [15, 19, 22, 32, 41] assert comb_sort([99, 15, 13, 47]) == [13, 15, 47, 99]
- Source ID
- 71
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-72Python · Write a python function to check whether the given number can be represented as difference of two squares or not. Sourc…
Original task
Write a python function to check whether the given number can be represented as difference of two squares or not. Source prompt examples: assert dif_Square(5) == True assert dif_Square(10) == False assert dif_Square(15) == True
- Source ID
- 72
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-73Python · Write a function to split the given string with multiple delimiters by using regex. Source prompt examples: assert mult…
Original task
Write a function to split the given string with multiple delimiters by using regex. Source prompt examples: assert multiple_split('Forces of the \ndarkness*are coming into the play.') == ['Forces of the ', 'darkness', 'are coming into the play.'] assert multiple_split('Mi Box runs on the \n Latest android*which has google assistance and chromecast.') == ['Mi Box runs on the ', ' Latest android', 'which has google assistance and chromecast.'] assert multiple_split('Certain services\nare subjected to change*over the seperate subscriptions.') == ['Certain services', 'are subjected to change', 'over the seperate subscriptions.']
- Source ID
- 73
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-74Python · Write a function to check whether it follows the sequence given in the patterns array. Source prompt examples: assert i…
Original task
Write a function to check whether it follows the sequence given in the patterns array. Source prompt examples: assert is_samepatterns(["red","green","green"], ["a", "b", "b"])==True assert is_samepatterns(["red","green","greenn"], ["a","b","b"])==False assert is_samepatterns(["red","green","greenn"], ["a","b"])==False
- Source ID
- 74
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-75Python · Write a function to find tuples which have all elements divisible by k from the given list of tuples. Source prompt exa…
Original task
Write a function to find tuples which have all elements divisible by k from the given list of tuples. Source prompt examples: assert find_tuples([(6, 24, 12), (7, 9, 6), (12, 18, 21)], 6) == '[(6, 24, 12)]' assert find_tuples([(5, 25, 30), (4, 2, 3), (7, 8, 9)], 5) == '[(5, 25, 30)]' assert find_tuples([(7, 9, 16), (8, 16, 4), (19, 17, 18)], 4) == '[(8, 16, 4)]'
- Source ID
- 75
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-76Python · Write a python function to count the number of squares in a rectangle. Source prompt examples: assert count_Squares(4,3…
Original task
Write a python function to count the number of squares in a rectangle. Source prompt examples: assert count_Squares(4,3) == 20 assert count_Squares(2,2) == 5 assert count_Squares(1,1) == 1
- Source ID
- 76
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-77Python · Write a python function to find the difference between sum of even and odd digits. Source prompt examples: assert is_Di…
Original task
Write a python function to find the difference between sum of even and odd digits. Source prompt examples: assert is_Diff (12345) == False assert is_Diff(1212112) == True assert is_Diff(1212) == False
- Source ID
- 77
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-78Python · Write a python function to find number of integers with odd number of set bits. Source prompt examples: assert count_Wi…
Original task
Write a python function to find number of integers with odd number of set bits. Source prompt examples: assert count_With_Odd_SetBits(5) == 3 assert count_With_Odd_SetBits(10) == 5 assert count_With_Odd_SetBits(15) == 8
- Source ID
- 78
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-79Python · Write a python function to check whether the length of the word is odd or not. Source prompt examples: assert word_len(…
Original task
Write a python function to check whether the length of the word is odd or not. Source prompt examples: assert word_len("Hadoop") == False assert word_len("great") == True assert word_len("structure") == True
- Source ID
- 79
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-80Python · Write a function to find the nth tetrahedral number. Source prompt examples: assert tetrahedral_number(5) == 35.0 asser…
Original task
Write a function to find the nth tetrahedral number. Source prompt examples: assert tetrahedral_number(5) == 35.0 assert tetrahedral_number(6) == 56.0 assert tetrahedral_number(7) == 84.0
- Source ID
- 80
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-81Python · Write a function to zip the two given tuples. Source prompt examples: assert zip_tuples((7, 8, 4, 5, 9, 10),(1, 5, 6) )…
Original task
Write a function to zip the two given tuples. Source prompt examples: assert zip_tuples((7, 8, 4, 5, 9, 10),(1, 5, 6) ) == [(7, 1), (8, 5), (4, 6), (5, 1), (9, 5), (10, 6)] assert zip_tuples((8, 9, 5, 6, 10, 11),(2, 6, 7) ) == [(8, 2), (9, 6), (5, 7), (6, 2), (10, 6), (11, 7)] assert zip_tuples((9, 10, 6, 7, 11, 12),(3, 7, 8) ) == [(9, 3), (10, 7), (6, 8), (7, 3), (11, 7), (12, 8)]
- Source ID
- 81
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-82Python · Write a function to find the volume of a sphere. Source prompt examples: assert volume_sphere(10)==4188.790204786391 as…
Original task
Write a function to find the volume of a sphere. Source prompt examples: assert volume_sphere(10)==4188.790204786391 assert volume_sphere(25)==65449.84694978735 assert volume_sphere(20)==33510.32163829113
- Source ID
- 82
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-83Python · Write a python function to find the character made by adding all the characters of the given string. Source prompt exam…
Original task
Write a python function to find the character made by adding all the characters of the given string. Source prompt examples: assert get_Char("abc") == "f" assert get_Char("gfg") == "t" assert get_Char("ab") == "c"
- Source ID
- 83
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-84Python · Write a function to find the n-th number in newman conway sequence. Source prompt examples: assert sequence(10) == 6 as…
Original task
Write a function to find the n-th number in newman conway sequence. Source prompt examples: assert sequence(10) == 6 assert sequence(2) == 1 assert sequence(3) == 2
- Source ID
- 84
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-85Python · Write a function to find the surface area of a sphere. Source prompt examples: assert surfacearea_sphere(10)==1256.6370…
Original task
Write a function to find the surface area of a sphere. Source prompt examples: assert surfacearea_sphere(10)==1256.6370614359173 assert surfacearea_sphere(15)==2827.4333882308138 assert surfacearea_sphere(20)==5026.548245743669
- Source ID
- 85
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-86Python · Write a function to find nth centered hexagonal number. Source prompt examples: assert centered_hexagonal_number(10) ==…
Original task
Write a function to find nth centered hexagonal number. Source prompt examples: assert centered_hexagonal_number(10) == 271 assert centered_hexagonal_number(2) == 7 assert centered_hexagonal_number(9) == 217
- Source ID
- 86
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-87Python · Write a function to merge three dictionaries into a single expression. Source prompt examples: assert merge_dictionarie…
Original task
Write a function to merge three dictionaries into a single expression. Source prompt examples: assert merge_dictionaries_three({ "R": "Red", "B": "Black", "P": "Pink" }, { "G": "Green", "W": "White" },{ "O": "Orange", "W": "White", "B": "Black" })=={'B': 'Black', 'R': 'Red', 'P': 'Pink', 'G': 'Green', 'W': 'White', 'O': 'Orange'} assert merge_dictionaries_three({ "R": "Red", "B": "Black", "P": "Pink" }, { "G": "Green", "W": "White" },{"L":"lavender","B":"Blue"})=={'W': 'White', 'P': 'Pink', 'B': 'Black', 'R': 'Red', 'G': 'Green', 'L': 'lavender'} assert merge_dictionaries_three({ "R": "Red", "B": "Black", "P": "Pink" },{"L":"lavender","B":"Blue"},{ "G": "Green", "W": "White" })=={'B': 'Black', 'P': 'Pink', 'R': 'Red', 'G': 'Green', 'L': 'lavender', 'W': 'White'}
- Source ID
- 87
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-88Python · Write a function to get the frequency of the elements in a list. Source prompt examples: assert freq_count([10,10,10,10…
Original task
Write a function to get the frequency of the elements in a list. Source prompt examples: assert freq_count([10,10,10,10,20,20,20,20,40,40,50,50,30])==({10: 4, 20: 4, 40: 2, 50: 2, 30: 1}) assert freq_count([1,2,3,4,3,2,4,1,3,1,4])==({1:3, 2:2,3:3,4:3}) assert freq_count([5,6,7,4,9,10,4,5,6,7,9,5])==({10:1,5:3,6:2,7:2,4:2,9:2})
- Source ID
- 88
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-89Python · Write a function to find the closest smaller number than n. Source prompt examples: assert closest_num(11) == 10 assert…
Original task
Write a function to find the closest smaller number than n. Source prompt examples: assert closest_num(11) == 10 assert closest_num(7) == 6 assert closest_num(12) == 11
- Source ID
- 89
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-90Python · Write a python function to find the length of the longest word. Source prompt examples: assert len_log(["python","PHP",…
Original task
Write a python function to find the length of the longest word. Source prompt examples: assert len_log(["python","PHP","bigdata"]) == 7 assert len_log(["a","ab","abc"]) == 3 assert len_log(["small","big","tall"]) == 5
- Source ID
- 90
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-91Python · Write a function to check if a substring is present in a given list of string values. Source prompt examples: assert fi…
Original task
Write a function to check if a substring is present in a given list of string values. Source prompt examples: assert find_substring(["red", "black", "white", "green", "orange"],"ack")==True assert find_substring(["red", "black", "white", "green", "orange"],"abc")==False assert find_substring(["red", "black", "white", "green", "orange"],"ange")==True
- Source ID
- 91
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-92Python · Write a function to check whether the given number is undulating or not. Source prompt examples: assert is_undulating("…
Original task
Write a function to check whether the given number is undulating or not. Source prompt examples: assert is_undulating("1212121") == True assert is_undulating("1991") == False assert is_undulating("121") == True
- Source ID
- 92
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-93Python · Write a function to calculate the value of 'a' to the power 'b'. Source prompt examples: assert power(3,4) == 81 assert…
Original task
Write a function to calculate the value of 'a' to the power 'b'. Source prompt examples: assert power(3,4) == 81 assert power(2,3) == 8 assert power(5,5) == 3125
- Source ID
- 93
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-94Python · Write a function to extract the index minimum value record from the given tuples. Source prompt examples: assert index_…
Original task
Write a function to extract the index minimum value record from the given tuples. Source prompt examples: assert index_minimum([('Rash', 143), ('Manjeet', 200), ('Varsha', 100)]) == 'Varsha' assert index_minimum([('Yash', 185), ('Dawood', 125), ('Sanya', 175)]) == 'Dawood' assert index_minimum([('Sai', 345), ('Salman', 145), ('Ayesha', 96)]) == 'Ayesha'
- Source ID
- 94
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-95Python · Write a python function to find the minimum length of sublist. Source prompt examples: assert Find_Min_Length([[1],[1,2…
Original task
Write a python function to find the minimum length of sublist. Source prompt examples: assert Find_Min_Length([[1],[1,2]]) == 1 assert Find_Min_Length([[1,2],[1,2,3],[1,2,3,4]]) == 2 assert Find_Min_Length([[3,3,3],[4,4,4,4]]) == 3
- Source ID
- 95
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-96Python · Write a python function to find the number of divisors of a given integer. Source prompt examples: assert divisor(15) =…
Original task
Write a python function to find the number of divisors of a given integer. Source prompt examples: assert divisor(15) == 4 assert divisor(12) == 6 assert divisor(9) == 3
- Source ID
- 96
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-97Python · Write a function to find frequency count of list of lists. Source prompt examples: assert frequency_lists([[1, 2, 3, 2]…
Original task
Write a function to find frequency count of list of lists. Source prompt examples: assert frequency_lists([[1, 2, 3, 2], [4, 5, 6, 2], [7, 8, 9, 5]])=={1: 1, 2: 3, 3: 1, 4: 1, 5: 2, 6: 1, 7: 1, 8: 1, 9: 1} assert frequency_lists([[1,2,3,4],[5,6,7,8],[9,10,11,12]])=={1: 1, 2: 1, 3: 1, 4: 1, 5: 1, 6: 1, 7: 1, 8: 1, 9: 1,10:1,11:1,12:1} assert frequency_lists([[20,30,40,17],[18,16,14,13],[10,20,30,40]])=={20:2,30:2,40:2,17: 1,18:1, 16: 1,14: 1,13: 1, 10: 1}
- Source ID
- 97
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-98Python · Write a function to multiply all the numbers in a list and divide with the length of the list. Source prompt examples: …
Original task
Write a function to multiply all the numbers in a list and divide with the length of the list. Source prompt examples: assert multiply_num((8, 2, 3, -1, 7))==-67.2 assert multiply_num((-10,-20,-30))==-2000.0 assert multiply_num((19,15,18))==1710.0
- Source ID
- 98
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →mbpp-99Python · Write a function to convert the given decimal number to its binary equivalent. Source prompt examples: assert decimal_t…
Original task
Write a function to convert the given decimal number to its binary equivalent. Source prompt examples: assert decimal_to_binary(8) == '1000' assert decimal_to_binary(18) == '10010' assert decimal_to_binary(7) == '111'
- Source ID
- 99
- Category
- Python
Execution and trajectory
This is a source task definition. Model responses, tool calls, screenshots, costs and grader criteria belong to a measured run. A task’s presence in this roster does not indicate that it has been attempted or passed.
Inspect published run evidence →