id stringlengths 32 34 | content stringlengths 309 3.16k |
|---|---|
humaneval-x-python_data_Python_100 | def check(make_a_pile):
# Check some simple cases
assert make_a_pile(3) == [3, 5, 7], "Test 3"
assert make_a_pile(4) == [4,6,8,10], "Test 4"
assert make_a_pile(5) == [5, 7, 9, 11, 13]
assert make_a_pile(6) == [6, 8, 10, 12, 14, 16]
assert make_a_pile(8) == [8, 10, 12, 14, 16, 18, 20, 22]
#... |
humaneval-x-python_data_Python_101 | def check(words_string):
# Check some simple cases
assert True, "This prints if this assert fails 1 (good for debugging!)"
assert words_string("Hi, my name is John") == ["Hi", "my", "name", "is", "John"]
assert words_string("One, two, three, four, five, six") == ["One", "two", "three", "four", "five", ... |
humaneval-x-python_data_Python_102 | def check(choose_num):
# Check some simple cases
assert choose_num(12, 15) == 14
assert choose_num(13, 12) == -1
assert choose_num(33, 12354) == 12354
assert choose_num(5234, 5233) == -1
assert choose_num(6, 29) == 28
assert choose_num(27, 10) == -1
# Check some edge cases that are eas... |
humaneval-x-python_data_Python_103 | def check(rounded_avg):
# Check some simple cases
assert rounded_avg(1, 5) == "0b11"
assert rounded_avg(7, 13) == "0b1010"
assert rounded_avg(964,977) == "0b1111001010"
assert rounded_avg(996,997) == "0b1111100100"
assert rounded_avg(560,851) == "0b1011000010"
assert rounded_avg(185,546) ==... |
humaneval-x-python_data_Python_104 | def check(unique_digits):
# Check some simple cases
assert unique_digits([15, 33, 1422, 1]) == [1, 15, 33]
assert unique_digits([152, 323, 1422, 10]) == []
assert unique_digits([12345, 2033, 111, 151]) == [111, 151]
assert unique_digits([135, 103, 31]) == [31, 135]
# Check some edge cases that... |
humaneval-x-python_data_Python_105 | def check(by_length):
# Check some simple cases
assert True, "This prints if this assert fails 1 (good for debugging!)"
assert by_length([2, 1, 1, 4, 5, 8, 2, 3]) == ["Eight", "Five", "Four", "Three", "Two", "Two", "One", "One"], "Error"
assert by_length([]) == [], "Error"
assert by_length([1, -1 ,... |
humaneval-x-python_data_Python_106 | def check(f):
assert f(5) == [1, 2, 6, 24, 15]
assert f(7) == [1, 2, 6, 24, 15, 720, 28]
assert f(1) == [1]
assert f(3) == [1, 2, 6]
check(f)
def f(n):
""" Implement the function f that takes n as a parameter,
and returns a list of size n, such that the value of the element at index i is the... |
humaneval-x-python_data_Python_107 | def check(even_odd_palindrome):
# Check some simple cases
assert even_odd_palindrome(123) == (8, 13)
assert even_odd_palindrome(12) == (4, 6)
assert even_odd_palindrome(3) == (1, 2)
assert even_odd_palindrome(63) == (6, 8)
assert even_odd_palindrome(25) == (5, 6)
assert even_odd_palindrome(... |
humaneval-x-python_data_Python_108 | def check(count_nums):
# Check some simple cases
assert count_nums([]) == 0
assert count_nums([-1, -2, 0]) == 0
assert count_nums([1, 1, 2, -2, 3, 4, 5]) == 6
assert count_nums([1, 6, 9, -6, 0, 1, 5]) == 5
assert count_nums([1, 100, 98, -7, 1, -1]) == 4
assert count_nums([12, 23, 34, -45, -... |
humaneval-x-python_data_Python_109 | def check(move_one_ball):
# Check some simple cases
assert move_one_ball([3, 4, 5, 1, 2])==True, "This prints if this assert fails 1 (good for debugging!)"
assert move_one_ball([3, 5, 10, 1, 2])==True
assert move_one_ball([4, 3, 1, 2])==False
# Check some edge cases that are easy to work out by han... |
humaneval-x-python_data_Python_110 | def check(exchange):
# Check some simple cases
assert exchange([1, 2, 3, 4], [1, 2, 3, 4]) == "YES"
assert exchange([1, 2, 3, 4], [1, 5, 3, 4]) == "NO"
assert exchange([1, 2, 3, 4], [2, 1, 4, 3]) == "YES"
assert exchange([5, 7, 3], [2, 6, 4]) == "YES"
assert exchange([5, 7, 3], [2, 6, 3]) == "... |
humaneval-x-python_data_Python_111 | def check(histogram):
# Check some simple cases
assert histogram('a b b a') == {'a':2,'b': 2}, "This prints if this assert fails 1 (good for debugging!)"
assert histogram('a b c a b') == {'a': 2, 'b': 2}, "This prints if this assert fails 2 (good for debugging!)"
assert histogram('a b c d g') == {'a': ... |
humaneval-x-python_data_Python_112 | def check(reverse_delete):
assert reverse_delete("abcde","ae") == ('bcd',False)
assert reverse_delete("abcdef", "b") == ('acdef',False)
assert reverse_delete("abcdedcba","ab") == ('cdedc',True)
assert reverse_delete("dwik","w") == ('dik',False)
assert reverse_delete("a","a") == ('',True)
assert... |
humaneval-x-python_data_Python_113 | def check(odd_count):
# Check some simple cases
assert odd_count(['1234567']) == ["the number of odd elements 4n the str4ng 4 of the 4nput."], "Test 1"
assert odd_count(['3',"11111111"]) == ["the number of odd elements 1n the str1ng 1 of the 1nput.", "the number of odd elements 8n the str8ng 8 of the 8nput... |
humaneval-x-python_data_Python_114 | def check(minSubArraySum):
# Check some simple cases
assert minSubArraySum([2, 3, 4, 1, 2, 4]) == 1, "This prints if this assert fails 1 (good for debugging!)"
assert minSubArraySum([-1, -2, -3]) == -6
assert minSubArraySum([-1, -2, -3, 2, -10]) == -14
assert minSubArraySum([-9999999999999999]) == ... |
humaneval-x-python_data_Python_115 | def check(max_fill):
# Check some simple cases
assert True, "This prints if this assert fails 1 (good for debugging!)"
assert max_fill([[0,0,1,0], [0,1,0,0], [1,1,1,1]], 1) == 6, "Error"
assert max_fill([[0,0,1,1], [0,0,0,0], [1,1,1,1], [0,1,1,1]], 2) == 5, "Error"
assert max_fill([[0,0,0], [0,0,0... |
humaneval-x-python_data_Python_116 | def check(sort_array):
# Check some simple cases
assert True, "This prints if this assert fails 1 (good for debugging!)"
assert sort_array([1,5,2,3,4]) == [1, 2, 4, 3, 5]
assert sort_array([-2,-3,-4,-5,-6]) == [-4, -2, -6, -5, -3]
assert sort_array([1,0,2,3,4]) == [0, 1, 2, 4, 3]
assert sort_ar... |
humaneval-x-python_data_Python_117 | def check(select_words):
# Check some simple cases
assert select_words("Mary had a little lamb", 4) == ["little"], "First test error: " + str(select_words("Mary had a little lamb", 4))
assert select_words("Mary had a little lamb", 3) == ["Mary", "lamb"], "Second test error: " + str(select_words("Mary... |
humaneval-x-python_data_Python_118 | def check(get_closest_vowel):
# Check some simple cases
assert get_closest_vowel("yogurt") == "u"
assert get_closest_vowel("full") == "u"
assert get_closest_vowel("easy") == ""
assert get_closest_vowel("eAsy") == ""
assert get_closest_vowel("ali") == ""
assert get_closest_vowel("bad") == "a... |
humaneval-x-python_data_Python_119 | def check(match_parens):
# Check some simple cases
assert match_parens(['()(', ')']) == 'Yes'
assert match_parens([')', ')']) == 'No'
assert match_parens(['(()(())', '())())']) == 'No'
assert match_parens([')())', '(()()(']) == 'Yes'
assert match_parens(['(())))', '(()())((']) == 'Yes'
asse... |
humaneval-x-python_data_Python_120 | def check(maximum):
# Check some simple cases
assert maximum([-3, -4, 5], 3) == [-4, -3, 5]
assert maximum([4, -4, 4], 2) == [4, 4]
assert maximum([-3, 2, 1, 2, -1, -2, 1], 1) == [2]
assert maximum([123, -123, 20, 0 , 1, 2, -3], 3) == [2, 20, 123]
assert maximum([-123, 20, 0 , 1, 2, -3], 4) == ... |
humaneval-x-python_data_Python_121 | def check(solution):
# Check some simple cases
assert solution([5, 8, 7, 1]) == 12
assert solution([3, 3, 3, 3, 3]) == 9
assert solution([30, 13, 24, 321]) == 0
assert solution([5, 9]) == 5
assert solution([2, 4, 8]) == 0
assert solution([30, 13, 23, 32]) == 23
assert solution([3, 13... |
humaneval-x-python_data_Python_122 | def check(add_elements):
# Check some simple cases
assert add_elements([1,-2,-3,41,57,76,87,88,99], 3) == -4
assert add_elements([111,121,3,4000,5,6], 2) == 0
assert add_elements([11,21,3,90,5,6,7,8,9], 4) == 125
assert add_elements([111,21,3,4000,5,6,7,8,9], 4) == 24, "This prints if this assert f... |
humaneval-x-python_data_Python_123 | def check(get_odd_collatz):
# Check some simple cases
assert get_odd_collatz(14) == [1, 5, 7, 11, 13, 17]
assert get_odd_collatz(5) == [1, 5]
assert get_odd_collatz(12) == [1, 3, 5], "This prints if this assert fails 1 (good for debugging!)"
# Check some edge cases that are easy to work out by han... |
humaneval-x-python_data_Python_124 | def check(valid_date):
# Check some simple cases
assert valid_date('03-11-2000') == True
assert valid_date('15-01-2012') == False
assert valid_date('04-0-2040') == False
assert valid_date('06-04-2020') == True
assert valid_date('01-01-2007') == True
assert valid_date('03-32-2011') == F... |
humaneval-x-python_data_Python_125 | def check(split_words):
assert split_words("Hello world!") == ["Hello","world!"]
assert split_words("Hello,world!") == ["Hello","world!"]
assert split_words("Hello world,!") == ["Hello","world,!"]
assert split_words("Hello,Hello,world !") == ["Hello,Hello,world","!"]
assert split_words("abcdef") ==... |
humaneval-x-python_data_Python_126 | def check(is_sorted):
# Check some simple cases
assert is_sorted([5]) == True
assert is_sorted([1, 2, 3, 4, 5]) == True
assert is_sorted([1, 3, 2, 4, 5]) == False
assert is_sorted([1, 2, 3, 4, 5, 6]) == True
assert is_sorted([1, 2, 3, 4, 5, 6, 7]) == True
assert is_sorted([1, 3, 2, 4, 5, 6,... |
humaneval-x-python_data_Python_127 | def check(intersection):
# Check some simple cases
assert intersection((1, 2), (2, 3)) == "NO"
assert intersection((-1, 1), (0, 4)) == "NO"
assert intersection((-3, -1), (-5, 5)) == "YES"
assert intersection((-2, 2), (-4, 0)) == "YES"
# Check some edge cases that are easy to work out by hand.
... |
humaneval-x-python_data_Python_128 | def check(prod_signs):
# Check some simple cases
assert True, "This prints if this assert fails 1 (good for debugging!)"
assert prod_signs([1, 2, 2, -4]) == -9
assert prod_signs([0, 1]) == 0
assert prod_signs([1, 1, 1, 2, 3, -1, 1]) == -10
assert prod_signs([]) == None
assert prod_signs([2,... |
humaneval-x-python_data_Python_129 | def check(minPath):
# Check some simple cases
print
assert minPath([[1, 2, 3], [4, 5, 6], [7, 8, 9]], 3) == [1, 2, 1]
assert minPath([[5, 9, 3], [4, 1, 6], [7, 8, 2]], 1) == [1]
assert minPath([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]], 4) == [1, 2, 1, 2]
assert minPath([[6... |
humaneval-x-python_data_Python_130 | def check(tri):
# Check some simple cases
assert tri(3) == [1, 3, 2.0, 8.0]
assert tri(4) == [1, 3, 2.0, 8.0, 3.0]
assert tri(5) == [1, 3, 2.0, 8.0, 3.0, 15.0]
assert tri(6) == [1, 3, 2.0, 8.0, 3.0, 15.0, 4.0]
assert tri(7) == [1, 3, 2.0, 8.0, 3.0, 15.0, 4.0, 24.0]
assert tri(8) == [1,... |
humaneval-x-python_data_Python_131 | def check(digits):
# Check some simple cases
assert digits(5) == 5
assert digits(54) == 5
assert digits(120) ==1
assert digits(5014) == 5
assert digits(98765) == 315
assert digits(5576543) == 2625
# Check some edge cases that are easy to work out by hand.
assert digits(2468) == 0
... |
humaneval-x-python_data_Python_132 | def check(is_nested):
# Check some simple cases
assert is_nested('[[]]') == True, "This prints if this assert fails 1 (good for debugging!)"
assert is_nested('[]]]]]]][[[[[]') == False
assert is_nested('[][]') == False
assert is_nested(('[]')) == False
assert is_nested('[[[[]]]]') == True
a... |
humaneval-x-python_data_Python_133 | def check(sum_squares):
# Check some simple cases
assert sum_squares([1,2,3])==14, "This prints if this assert fails 1 (good for debugging!)"
assert sum_squares([1.0,2,3])==14, "This prints if this assert fails 1 (good for debugging!)"
assert sum_squares([1,3,5,7])==84, "This prints if this assert fail... |
humaneval-x-python_data_Python_134 | def check(check_if_last_char_is_a_letter):
# Check some simple cases
assert check_if_last_char_is_a_letter("apple") == False
assert check_if_last_char_is_a_letter("apple pi e") == True
assert check_if_last_char_is_a_letter("eeeee") == False
assert check_if_last_char_is_a_letter("A") == True
ass... |
humaneval-x-python_data_Python_135 | def check(can_arrange):
# Check some simple cases
assert can_arrange([1,2,4,3,5])==3
assert can_arrange([1,2,4,5])==-1
assert can_arrange([1,4,2,5,6,7,8,9,10])==2
assert can_arrange([4,8,5,7,3])==4
# Check some edge cases that are easy to work out by hand.
assert can_arrange([])==-1
check... |
humaneval-x-python_data_Python_136 | def check(largest_smallest_integers):
# Check some simple cases
assert largest_smallest_integers([2, 4, 1, 3, 5, 7]) == (None, 1)
assert largest_smallest_integers([2, 4, 1, 3, 5, 7, 0]) == (None, 1)
assert largest_smallest_integers([1, 3, 2, 4, 5, 6, -2]) == (-2, 1)
assert largest_smallest_integers... |
humaneval-x-python_data_Python_137 | def check(compare_one):
# Check some simple cases
assert compare_one(1, 2) == 2
assert compare_one(1, 2.5) == 2.5
assert compare_one(2, 3) == 3
assert compare_one(5, 6) == 6
assert compare_one(1, "2,3") == "2,3"
assert compare_one("5,1", "6") == "6"
assert compare_one("1", "2") == "2"
... |
humaneval-x-python_data_Python_138 | def check(is_equal_to_sum_even):
assert is_equal_to_sum_even(4) == False
assert is_equal_to_sum_even(6) == False
assert is_equal_to_sum_even(8) == True
assert is_equal_to_sum_even(10) == True
assert is_equal_to_sum_even(11) == False
assert is_equal_to_sum_even(12) == True
assert is_equal_to_... |
humaneval-x-python_data_Python_139 | def check(special_factorial):
# Check some simple cases
assert special_factorial(4) == 288, "Test 4"
assert special_factorial(5) == 34560, "Test 5"
assert special_factorial(7) == 125411328000, "Test 7"
# Check some edge cases that are easy to work out by hand.
assert special_factorial(1) == 1,... |
humaneval-x-python_data_Python_140 | def check(fix_spaces):
# Check some simple cases
assert fix_spaces("Example") == "Example", "This prints if this assert fails 1 (good for debugging!)"
assert fix_spaces("Mudasir Hanif ") == "Mudasir_Hanif_", "This prints if this assert fails 2 (good for debugging!)"
assert fix_spaces("Yellow Yellow Di... |
humaneval-x-python_data_Python_141 | def check(file_name_check):
# Check some simple cases
assert file_name_check("example.txt") == 'Yes'
assert file_name_check("1example.dll") == 'No'
assert file_name_check('s1sdf3.asd') == 'No'
assert file_name_check('K.dll') == 'Yes'
assert file_name_check('MY16FILE3.exe') == 'Yes'
assert f... |
humaneval-x-python_data_Python_142 | def check(sum_squares):
# Check some simple cases
assert sum_squares([1,2,3]) == 6
assert sum_squares([1,4,9]) == 14
assert sum_squares([]) == 0
assert sum_squares([1,1,1,1,1,1,1,1,1]) == 9
assert sum_squares([-1,-1,-1,-1,-1,-1,-1,-1,-1]) == -3
assert sum_squares([0]) == 0
assert s... |
humaneval-x-python_data_Python_143 | def check(words_in_sentence):
# Check some simple cases
assert words_in_sentence("This is a test") == "is"
assert words_in_sentence("lets go for swimming") == "go for"
assert words_in_sentence("there is no place available here") == "there is no place"
assert words_in_sentence("Hi I am Hussein") == ... |
humaneval-x-python_data_Python_144 | def check(simplify):
# Check some simple cases
assert simplify("1/5", "5/1") == True, 'test1'
assert simplify("1/6", "2/1") == False, 'test2'
assert simplify("5/1", "3/1") == True, 'test3'
assert simplify("7/10", "10/2") == False, 'test4'
assert simplify("2/10", "50/10") == True, 'test5'
as... |
humaneval-x-python_data_Python_145 | def check(order_by_points):
# Check some simple cases
assert order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
assert order_by_points([1234,423,463,145,2,423,423,53,6,37,3457,3,56,0,46]) == [0, 2, 3, 6, 53, 423, 423, 423, 1234, 145, 37, 46, 56, 463, 3457]
assert order_by_points([]) == []
... |
humaneval-x-python_data_Python_146 | def check(specialFilter):
# Check some simple cases
assert specialFilter([5, -2, 1, -5]) == 0
assert specialFilter([15, -73, 14, -15]) == 1
assert specialFilter([33, -2, -3, 45, 21, 109]) == 2
assert specialFilter([43, -12, 93, 125, 121, 109]) == 4
assert specialFilter([71, -2, -33, 75, 21, 1... |
humaneval-x-python_data_Python_147 | def check(get_max_triples):
assert get_max_triples(5) == 1
assert get_max_triples(6) == 4
assert get_max_triples(10) == 36
assert get_max_triples(100) == 53361
check(get_max_triples)
def get_max_triples(n):
"""
You are given a positive integer n. You have to create an integer array a of leng... |
humaneval-x-python_data_Python_148 | def check(bf):
# Check some simple cases
assert bf("Jupiter", "Neptune") == ("Saturn", "Uranus"), "First test error: " + str(len(bf("Jupiter", "Neptune")))
assert bf("Earth", "Mercury") == ("Venus",), "Second test error: " + str(bf("Earth", "Mercury"))
assert bf("Mercury", "Uranus") == ("Venus"... |
humaneval-x-python_data_Python_149 | def check(sorted_list_sum):
# Check some simple cases
assert sorted_list_sum(["aa", "a", "aaa"]) == ["aa"]
assert sorted_list_sum(["school", "AI", "asdf", "b"]) == ["AI", "asdf", "school"]
assert sorted_list_sum(["d", "b", "c", "a"]) == []
assert sorted_list_sum(["d", "dcba", "abcd", "a"]) == ["abc... |
humaneval-x-python_data_Python_150 | def check(x_or_y):
# Check some simple cases
assert x_or_y(7, 34, 12) == 34
assert x_or_y(15, 8, 5) == 5
assert x_or_y(3, 33, 5212) == 33
assert x_or_y(1259, 3, 52) == 3
assert x_or_y(7919, -1, 12) == -1
assert x_or_y(3609, 1245, 583) == 583
assert x_or_y(91, 56, 129) == 129
assert ... |
humaneval-x-python_data_Python_151 | def check(double_the_difference):
# Check some simple cases
assert double_the_difference([]) == 0 , "This prints if this assert fails 1 (good for debugging!)"
assert double_the_difference([5, 4]) == 25 , "This prints if this assert fails 2 (good for debugging!)"
assert double_the_difference([0.1, 0.2, ... |
humaneval-x-python_data_Python_152 | def check(compare):
# Check some simple cases
assert compare([1,2,3,4,5,1],[1,2,3,4,2,-2])==[0,0,0,0,3,3], "This prints if this assert fails 1 (good for debugging!)"
assert compare([0,5,0,0,0,4],[4,1,1,0,0,-2])==[4,4,1,0,0,6]
# Check some simple cases
assert compare([1,2,3,4,5,1],[1,2,3,4,2,-2])==[... |
humaneval-x-python_data_Python_153 | def check(Strongest_Extension):
# Check some simple cases
assert Strongest_Extension('Watashi', ['tEN', 'niNE', 'eIGHt8OKe']) == 'Watashi.eIGHt8OKe'
assert Strongest_Extension('Boku123', ['nani', 'NazeDa', 'YEs.WeCaNe', '32145tggg']) == 'Boku123.YEs.WeCaNe'
assert Strongest_Extension('__YESIMHERE', ['t... |
humaneval-x-python_data_Python_154 | def check(cycpattern_check):
# Check some simple cases
#assert True, "This prints if this assert fails 1 (good for debugging!)"
# Check some edge cases that are easy to work out by hand.
#assert True, "This prints if this assert fails 2 (also good for debugging!)"
assert cycpattern_check("xyzw","... |
humaneval-x-python_data_Python_155 | def check(even_odd_count):
# Check some simple cases
assert even_odd_count(7) == (0, 1)
assert even_odd_count(-78) == (1, 1)
assert even_odd_count(3452) == (2, 2)
assert even_odd_count(346211) == (3, 3)
assert even_odd_count(-345821) == (3, 3)
assert even_odd_count(-2) == (1, 0)
assert ... |
humaneval-x-python_data_Python_156 | def check(int_to_mini_roman):
# Check some simple cases
assert int_to_mini_roman(19) == 'xix'
assert int_to_mini_roman(152) == 'clii'
assert int_to_mini_roman(251) == 'ccli'
assert int_to_mini_roman(426) == 'cdxxvi'
assert int_to_mini_roman(500) == 'd'
assert int_to_mini_roman(1) == 'i'
... |
humaneval-x-python_data_Python_157 | def check(right_angle_triangle):
# Check some simple cases
assert right_angle_triangle(3, 4, 5) == True, "This prints if this assert fails 1 (good for debugging!)"
assert right_angle_triangle(1, 2, 3) == False
assert right_angle_triangle(10, 6, 8) == True
assert right_angle_triangle(2, 2, 2) == Fal... |
humaneval-x-python_data_Python_158 | def check(find_max):
# Check some simple cases
assert (find_max(["name", "of", "string"]) == "string"), "t1"
assert (find_max(["name", "enam", "game"]) == "enam"), 't2'
assert (find_max(["aaaaaaa", "bb", "cc"]) == "aaaaaaa"), 't3'
assert (find_max(["abc", "cba"]) == "abc"), 't4'
assert (find_ma... |
humaneval-x-python_data_Python_159 | def check(eat):
# Check some simple cases
assert True, "This prints if this assert fails 1 (good for debugging!)"
assert eat(5, 6, 10) == [11, 4], "Error"
assert eat(4, 8, 9) == [12, 1], "Error"
assert eat(1, 10, 10) == [11, 0], "Error"
assert eat(2, 11, 5) == [7, 0], "Error"
# Check some ... |
humaneval-x-python_data_Python_160 | def check(do_algebra):
# Check some simple cases
assert do_algebra(['**', '*', '+'], [2, 3, 4, 5]) == 37
assert do_algebra(['+', '*', '-'], [2, 3, 4, 5]) == 9
assert do_algebra(['//', '*'], [7, 3, 4]) == 8, "This prints if this assert fails 1 (good for debugging!)"
# Check some edge cases that are... |
humaneval-x-python_data_Python_161 | def check(solve):
# Check some simple cases
assert solve("AsDf") == "aSdF"
assert solve("1234") == "4321"
assert solve("ab") == "AB"
assert solve("#a@C") == "#A@c"
assert solve("#AsdfW^45") == "#aSDFw^45"
assert solve("#6@2") == "2@6#"
# Check some edge cases that are easy to work out ... |
humaneval-x-python_data_Python_162 | def check(string_to_md5):
# Check some simple cases
assert string_to_md5('Hello world') == '3e25960a79dbc69b674cd4ec67a72c62'
assert string_to_md5('') == None
assert string_to_md5('A B C') == '0ef78513b0cb8cef12743f5aeb35f888'
assert string_to_md5('password') == '5f4dcc3b5aa765d61d8327deb882cf99'
... |
humaneval-x-python_data_Python_163 | def check(generate_integers):
# Check some simple cases
assert generate_integers(2, 10) == [2, 4, 6, 8], "Test 1"
assert generate_integers(10, 2) == [2, 4, 6, 8], "Test 2"
assert generate_integers(132, 2) == [2, 4, 6, 8], "Test 3"
assert generate_integers(17,89) == [], "Test 4"
# Check some ed... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.