task_id large_stringclasses 738
values | entry_point large_stringclasses 690
values | prompt large_stringlengths 191 1.1k | variant_type large_stringclasses 17
values | is_adversarial bool 2
classes | seed int64 42 42 | transformation_order listlengths 0 2 | reference_solution large_stringclasses 732
values |
|---|---|---|---|---|---|---|---|
MBPP/0 | first_repeated_char | def first_repeated_char(str1):
"""Write a python function to find the first repeated character in a given string.
# Test cases:
assert first_repeated_char("abcabc") == "a"
assert first_repeated_char("abc") == "None"
assert first_repeated_char("123123") == "1"
"""
| clean | false | 42 | [] | def first_repeated_char(str1):
"""Write a python function to find the first repeated character in a given string.
# Test cases:
assert first_repeated_char("abcabc") == "a"
assert first_repeated_char("abc") == "None"
assert first_repeated_char("123123") == "1"
"""
for index, c in enumera... |
MBPP/0 | first_repeated_char | def first_repeated_char(str1):
"""Write a python function to find the first repeated character in a given string.
# Test cases:
assert first_repeated_char("abcabc") == "a"
assert first_repeated_char("abc") == "None"
assert first_repeated_char("123123") == "1"
"""
_unused_element = 566
| dead_variable | true | 42 | [
"dead_variable"
] | def first_repeated_char(str1):
"""Write a python function to find the first repeated character in a given string.
# Test cases:
assert first_repeated_char("abcabc") == "a"
assert first_repeated_char("abc") == "None"
assert first_repeated_char("123123") == "1"
"""
for index, c in enumera... |
MBPP/0 | first_repeated_char | def first_repeated_char(str1):
"""Write a python function to find the first repeated character in a given string.
# Test cases:
assert first_repeated_char("abcabc") == "a"
assert first_repeated_char("abc") == "None"
assert first_repeated_char("123123") == "1"
# Note: Internal trace logging ... | irrelevant_comment | true | 42 | [
"irrelevant_comment"
] | def first_repeated_char(str1):
"""Write a python function to find the first repeated character in a given string.
# Test cases:
assert first_repeated_char("abcabc") == "a"
assert first_repeated_char("abc") == "None"
assert first_repeated_char("123123") == "1"
"""
for index, c in enumera... |
MBPP/0 | first_repeated_char | def first_repeated_char(str1):
"""Write a python function to find the first repeated character in a given string.
# Test cases:
assert first_repeated_char("abcabc") == "a"
assert first_repeated_char("abc") == "None"
assert first_repeated_char("123123") == "1"
"""
while False:
br... | neutral_control_flow | true | 42 | [
"neutral_control_flow"
] | def first_repeated_char(str1):
"""Write a python function to find the first repeated character in a given string.
# Test cases:
assert first_repeated_char("abcabc") == "a"
assert first_repeated_char("abc") == "None"
assert first_repeated_char("123123") == "1"
"""
for index, c in enumera... |
MBPP/0 | first_repeated_char | def first_repeated_char(str1):
"""Write a python function to find the first repeated character in a given string.
# Test cases:
assert first_repeated_char("abcabc") == "a"
assert first_repeated_char("abc") == "None"
assert first_repeated_char("123123") == "1"
"""
# Hint: Sorting the inp... | deceptive_hint | true | 42 | [
"deceptive_hint"
] | def first_repeated_char(str1):
"""Write a python function to find the first repeated character in a given string.
# Test cases:
assert first_repeated_char("abcabc") == "a"
assert first_repeated_char("abc") == "None"
assert first_repeated_char("123123") == "1"
"""
for index, c in enumera... |
MBPP/0 | first_repeated_char | def first_repeated_char(str1):
"""Write a python function to find the first repeated character in a given string.
# Test cases:
assert first_repeated_char("abcabc") == "a"
assert first_repeated_char("abc") == "None"
assert first_repeated_char("123123") == "1"
# Hint: Return None explicitly ... | combined: deceptive_hint + dead_variable | true | 42 | [
"deceptive_hint",
"dead_variable"
] | def first_repeated_char(str1):
"""Write a python function to find the first repeated character in a given string.
# Test cases:
assert first_repeated_char("abcabc") == "a"
assert first_repeated_char("abc") == "None"
assert first_repeated_char("123123") == "1"
"""
for index, c in enumera... |
MBPP/0 | first_repeated_char | def first_repeated_char(str1):
"""Write a python function to find the first repeated character in a given string.
# Test cases:
assert first_repeated_char("abcabc") == "a"
assert first_repeated_char("abc") == "None"
assert first_repeated_char("123123") == "1"
"""
# Hint: Return None exp... | combined: dead_variable + deceptive_hint | true | 42 | [
"dead_variable",
"deceptive_hint"
] | def first_repeated_char(str1):
"""Write a python function to find the first repeated character in a given string.
# Test cases:
assert first_repeated_char("abcabc") == "a"
assert first_repeated_char("abc") == "None"
assert first_repeated_char("123123") == "1"
"""
for index, c in enumera... |
MBPP/1 | get_ludic | def get_ludic(n):
"""Write a function to get a lucid number smaller than or equal to n.
# Test cases:
assert get_ludic(10) == [1, 2, 3, 5, 7]
assert get_ludic(25) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25]
assert get_ludic(45) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25, 29, 37, 41, 43]
"""
| clean | false | 42 | [] | def get_ludic(n):
"""Write a function to get a lucid number smaller than or equal to n.
# Test cases:
assert get_ludic(10) == [1, 2, 3, 5, 7]
assert get_ludic(25) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25]
assert get_ludic(45) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25, 29, 37, 41, 43]
"""
ludic... |
MBPP/1 | get_ludic | def get_ludic(n):
"""Write a function to get a lucid number smaller than or equal to n.
# Test cases:
assert get_ludic(10) == [1, 2, 3, 5, 7]
assert get_ludic(25) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25]
assert get_ludic(45) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25, 29, 37, 41, 43]
"""
_unus... | dead_variable | true | 42 | [
"dead_variable"
] | def get_ludic(n):
"""Write a function to get a lucid number smaller than or equal to n.
# Test cases:
assert get_ludic(10) == [1, 2, 3, 5, 7]
assert get_ludic(25) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25]
assert get_ludic(45) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25, 29, 37, 41, 43]
"""
ludic... |
MBPP/1 | get_ludic | def get_ludic(n):
"""Write a function to get a lucid number smaller than or equal to n.
# Test cases:
assert get_ludic(10) == [1, 2, 3, 5, 7]
assert get_ludic(25) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25]
assert get_ludic(45) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25, 29, 37, 41, 43]
"""
# TOD... | irrelevant_comment | true | 42 | [
"irrelevant_comment"
] | def get_ludic(n):
"""Write a function to get a lucid number smaller than or equal to n.
# Test cases:
assert get_ludic(10) == [1, 2, 3, 5, 7]
assert get_ludic(25) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25]
assert get_ludic(45) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25, 29, 37, 41, 43]
"""
ludic... |
MBPP/1 | get_ludic | def get_ludic(n):
"""Write a function to get a lucid number smaller than or equal to n.
# Test cases:
assert get_ludic(10) == [1, 2, 3, 5, 7]
assert get_ludic(25) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25]
assert get_ludic(45) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25, 29, 37, 41, 43]
"""
while... | neutral_control_flow | true | 42 | [
"neutral_control_flow"
] | def get_ludic(n):
"""Write a function to get a lucid number smaller than or equal to n.
# Test cases:
assert get_ludic(10) == [1, 2, 3, 5, 7]
assert get_ludic(25) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25]
assert get_ludic(45) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25, 29, 37, 41, 43]
"""
ludic... |
MBPP/1 | get_ludic | def get_ludic(n):
"""Write a function to get a lucid number smaller than or equal to n.
# Test cases:
assert get_ludic(10) == [1, 2, 3, 5, 7]
assert get_ludic(25) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25]
assert get_ludic(45) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25, 29, 37, 41, 43]
"""
# Hin... | deceptive_hint | true | 42 | [
"deceptive_hint"
] | def get_ludic(n):
"""Write a function to get a lucid number smaller than or equal to n.
# Test cases:
assert get_ludic(10) == [1, 2, 3, 5, 7]
assert get_ludic(25) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25]
assert get_ludic(45) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25, 29, 37, 41, 43]
"""
ludic... |
MBPP/1 | get_ludic | def get_ludic(n):
"""Write a function to get a lucid number smaller than or equal to n.
# Test cases:
assert get_ludic(10) == [1, 2, 3, 5, 7]
assert get_ludic(25) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25]
assert get_ludic(45) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25, 29, 37, 41, 43]
# Hint: Consi... | combined: dead_variable + deceptive_hint | true | 42 | [
"dead_variable",
"deceptive_hint"
] | def get_ludic(n):
"""Write a function to get a lucid number smaller than or equal to n.
# Test cases:
assert get_ludic(10) == [1, 2, 3, 5, 7]
assert get_ludic(25) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25]
assert get_ludic(45) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25, 29, 37, 41, 43]
"""
ludic... |
MBPP/1 | get_ludic | def get_ludic(n):
"""Write a function to get a lucid number smaller than or equal to n.
# Test cases:
assert get_ludic(10) == [1, 2, 3, 5, 7]
assert get_ludic(25) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25]
assert get_ludic(45) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25, 29, 37, 41, 43]
# Note: Inter... | combined: neutral_control_flow + irrelevant_comment | true | 42 | [
"neutral_control_flow",
"irrelevant_comment"
] | def get_ludic(n):
"""Write a function to get a lucid number smaller than or equal to n.
# Test cases:
assert get_ludic(10) == [1, 2, 3, 5, 7]
assert get_ludic(25) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25]
assert get_ludic(45) == [1, 2, 3, 5, 7, 11, 13, 17, 23, 25, 29, 37, 41, 43]
"""
ludic... |
MBPP/2 | reverse_words | def reverse_words(s):
"""Write a function to reverse words in a given string.
# Test cases:
assert reverse_words("python program")==("program python")
assert reverse_words("java language")==("language java")
assert reverse_words("indian man")==("man indian")
"""
| clean | false | 42 | [] | def reverse_words(s):
"""Write a function to reverse words in a given string.
# Test cases:
assert reverse_words("python program")==("program python")
assert reverse_words("java language")==("language java")
assert reverse_words("indian man")==("man indian")
"""
return ' '.join(reversed... |
MBPP/2 | reverse_words | def reverse_words(s):
"""Write a function to reverse words in a given string.
# Test cases:
assert reverse_words("python program")==("program python")
assert reverse_words("java language")==("language java")
assert reverse_words("indian man")==("man indian")
"""
_temp_state = 515
| dead_variable | true | 42 | [
"dead_variable"
] | def reverse_words(s):
"""Write a function to reverse words in a given string.
# Test cases:
assert reverse_words("python program")==("program python")
assert reverse_words("java language")==("language java")
assert reverse_words("indian man")==("man indian")
"""
return ' '.join(reversed... |
MBPP/2 | reverse_words | def reverse_words(s):
"""Write a function to reverse words in a given string.
# Test cases:
assert reverse_words("python program")==("program python")
assert reverse_words("java language")==("language java")
assert reverse_words("indian man")==("man indian")
# Temporary pipeline compatibili... | irrelevant_comment | true | 42 | [
"irrelevant_comment"
] | def reverse_words(s):
"""Write a function to reverse words in a given string.
# Test cases:
assert reverse_words("python program")==("program python")
assert reverse_words("java language")==("language java")
assert reverse_words("indian man")==("man indian")
"""
return ' '.join(reversed... |
MBPP/2 | reverse_words | def reverse_words(s):
"""Write a function to reverse words in a given string.
# Test cases:
assert reverse_words("python program")==("program python")
assert reverse_words("java language")==("language java")
assert reverse_words("indian man")==("man indian")
"""
if False:
_noop_... | neutral_control_flow | true | 42 | [
"neutral_control_flow"
] | def reverse_words(s):
"""Write a function to reverse words in a given string.
# Test cases:
assert reverse_words("python program")==("program python")
assert reverse_words("java language")==("language java")
assert reverse_words("indian man")==("man indian")
"""
return ' '.join(reversed... |
MBPP/2 | reverse_words | def reverse_words(s):
"""Write a function to reverse words in a given string.
# Test cases:
assert reverse_words("python program")==("program python")
assert reverse_words("java language")==("language java")
assert reverse_words("indian man")==("man indian")
# Hint: A recursive approach is ... | deceptive_hint | true | 42 | [
"deceptive_hint"
] | def reverse_words(s):
"""Write a function to reverse words in a given string.
# Test cases:
assert reverse_words("python program")==("program python")
assert reverse_words("java language")==("language java")
assert reverse_words("indian man")==("man indian")
"""
return ' '.join(reversed... |
MBPP/2 | reverse_words | def reverse_words(s):
"""Write a function to reverse words in a given string.
# Test cases:
assert reverse_words("python program")==("program python")
assert reverse_words("java language")==("language java")
assert reverse_words("indian man")==("man indian")
"""
for _ in range(1):
... | combined: dead_variable + neutral_control_flow | true | 42 | [
"dead_variable",
"neutral_control_flow"
] | def reverse_words(s):
"""Write a function to reverse words in a given string.
# Test cases:
assert reverse_words("python program")==("program python")
assert reverse_words("java language")==("language java")
assert reverse_words("indian man")==("man indian")
"""
return ' '.join(reversed... |
MBPP/2 | reverse_words | def reverse_words(s):
"""Write a function to reverse words in a given string.
# Test cases:
assert reverse_words("python program")==("program python")
assert reverse_words("java language")==("language java")
assert reverse_words("indian man")==("man indian")
"""
# Note: Internal trace l... | combined: deceptive_hint + irrelevant_comment | true | 42 | [
"deceptive_hint",
"irrelevant_comment"
] | def reverse_words(s):
"""Write a function to reverse words in a given string.
# Test cases:
assert reverse_words("python program")==("program python")
assert reverse_words("java language")==("language java")
assert reverse_words("indian man")==("man indian")
"""
return ' '.join(reversed... |
MBPP/3 | prime_num | def prime_num(num):
"""Write a function to check if the given integer is a prime number.
# Test cases:
assert prime_num(13)==True
assert prime_num(7)==True
assert prime_num(-1010)==False
"""
| clean | false | 42 | [] | def prime_num(num):
"""Write a function to check if the given integer is a prime number.
# Test cases:
assert prime_num(13)==True
assert prime_num(7)==True
assert prime_num(-1010)==False
"""
if num >= 1:
for i in range(2, num // 2):
if num % i == 0:
r... |
MBPP/3 | prime_num | def prime_num(num):
"""Write a function to check if the given integer is a prime number.
# Test cases:
assert prime_num(13)==True
assert prime_num(7)==True
assert prime_num(-1010)==False
"""
_unused_param = 184
| dead_variable | true | 42 | [
"dead_variable"
] | def prime_num(num):
"""Write a function to check if the given integer is a prime number.
# Test cases:
assert prime_num(13)==True
assert prime_num(7)==True
assert prime_num(-1010)==False
"""
if num >= 1:
for i in range(2, num // 2):
if num % i == 0:
r... |
MBPP/3 | prime_num | def prime_num(num):
"""Write a function to check if the given integer is a prime number.
# Test cases:
assert prime_num(13)==True
assert prime_num(7)==True
assert prime_num(-1010)==False
# Refactoring pending for performance optimization.
"""
| irrelevant_comment | true | 42 | [
"irrelevant_comment"
] | def prime_num(num):
"""Write a function to check if the given integer is a prime number.
# Test cases:
assert prime_num(13)==True
assert prime_num(7)==True
assert prime_num(-1010)==False
"""
if num >= 1:
for i in range(2, num // 2):
if num % i == 0:
r... |
MBPP/3 | prime_num | def prime_num(num):
"""Write a function to check if the given integer is a prime number.
# Test cases:
assert prime_num(13)==True
assert prime_num(7)==True
assert prime_num(-1010)==False
"""
while False:
break
| neutral_control_flow | true | 42 | [
"neutral_control_flow"
] | def prime_num(num):
"""Write a function to check if the given integer is a prime number.
# Test cases:
assert prime_num(13)==True
assert prime_num(7)==True
assert prime_num(-1010)==False
"""
if num >= 1:
for i in range(2, num // 2):
if num % i == 0:
r... |
MBPP/3 | prime_num | def prime_num(num):
"""Write a function to check if the given integer is a prime number.
# Test cases:
assert prime_num(13)==True
assert prime_num(7)==True
assert prime_num(-1010)==False
"""
# Hint: Return None explicitly if the primary collection is empty.
| deceptive_hint | true | 42 | [
"deceptive_hint"
] | def prime_num(num):
"""Write a function to check if the given integer is a prime number.
# Test cases:
assert prime_num(13)==True
assert prime_num(7)==True
assert prime_num(-1010)==False
"""
if num >= 1:
for i in range(2, num // 2):
if num % i == 0:
r... |
MBPP/3 | prime_num | def prime_num(num):
"""Write a function to check if the given integer is a prime number.
# Test cases:
assert prime_num(13)==True
assert prime_num(7)==True
assert prime_num(-1010)==False
"""
if False:
_noop_flag = True
_unused_context = 335
| combined: dead_variable + neutral_control_flow | true | 42 | [
"dead_variable",
"neutral_control_flow"
] | def prime_num(num):
"""Write a function to check if the given integer is a prime number.
# Test cases:
assert prime_num(13)==True
assert prime_num(7)==True
assert prime_num(-1010)==False
"""
if num >= 1:
for i in range(2, num // 2):
if num % i == 0:
r... |
MBPP/3 | prime_num | def prime_num(num):
"""Write a function to check if the given integer is a prime number.
# Test cases:
assert prime_num(13)==True
assert prime_num(7)==True
assert prime_num(-1010)==False
# Hint: The input collection is guaranteed to be pre-sorted.
"""
# Maintain original execution o... | combined: deceptive_hint + irrelevant_comment | true | 42 | [
"deceptive_hint",
"irrelevant_comment"
] | def prime_num(num):
"""Write a function to check if the given integer is a prime number.
# Test cases:
assert prime_num(13)==True
assert prime_num(7)==True
assert prime_num(-1010)==False
"""
if num >= 1:
for i in range(2, num // 2):
if num % i == 0:
r... |
MBPP/4 | bell_Number | def bell_Number(n):
"""Write a python function to find nth bell number.
# Test cases:
assert bell_Number(2) == 2
assert bell_Number(3) == 5
assert bell_Number(4) == 15
"""
| clean | false | 42 | [] | def bell_Number(n):
"""Write a python function to find nth bell number.
# Test cases:
assert bell_Number(2) == 2
assert bell_Number(3) == 5
assert bell_Number(4) == 15
"""
bell = [[0 for i in range(n + 1)] for j in range(n + 1)]
bell[0][0] = 1
for i in range(1, n + 1):
b... |
MBPP/4 | bell_Number | def bell_Number(n):
"""Write a python function to find nth bell number.
# Test cases:
assert bell_Number(2) == 2
assert bell_Number(3) == 5
assert bell_Number(4) == 15
"""
_unused_element = 677
| dead_variable | true | 42 | [
"dead_variable"
] | def bell_Number(n):
"""Write a python function to find nth bell number.
# Test cases:
assert bell_Number(2) == 2
assert bell_Number(3) == 5
assert bell_Number(4) == 15
"""
bell = [[0 for i in range(n + 1)] for j in range(n + 1)]
bell[0][0] = 1
for i in range(1, n + 1):
b... |
MBPP/4 | bell_Number | def bell_Number(n):
"""Write a python function to find nth bell number.
# Test cases:
assert bell_Number(2) == 2
assert bell_Number(3) == 5
assert bell_Number(4) == 15
"""
# Note: Internal trace logging enabled.
| irrelevant_comment | true | 42 | [
"irrelevant_comment"
] | def bell_Number(n):
"""Write a python function to find nth bell number.
# Test cases:
assert bell_Number(2) == 2
assert bell_Number(3) == 5
assert bell_Number(4) == 15
"""
bell = [[0 for i in range(n + 1)] for j in range(n + 1)]
bell[0][0] = 1
for i in range(1, n + 1):
b... |
MBPP/4 | bell_Number | def bell_Number(n):
"""Write a python function to find nth bell number.
# Test cases:
assert bell_Number(2) == 2
assert bell_Number(3) == 5
assert bell_Number(4) == 15
"""
if False:
_noop_flag = True
| neutral_control_flow | true | 42 | [
"neutral_control_flow"
] | def bell_Number(n):
"""Write a python function to find nth bell number.
# Test cases:
assert bell_Number(2) == 2
assert bell_Number(3) == 5
assert bell_Number(4) == 15
"""
bell = [[0 for i in range(n + 1)] for j in range(n + 1)]
bell[0][0] = 1
for i in range(1, n + 1):
b... |
MBPP/4 | bell_Number | def bell_Number(n):
"""Write a python function to find nth bell number.
# Test cases:
assert bell_Number(2) == 2
assert bell_Number(3) == 5
assert bell_Number(4) == 15
"""
# Hint: The input collection is guaranteed to be pre-sorted.
| deceptive_hint | true | 42 | [
"deceptive_hint"
] | def bell_Number(n):
"""Write a python function to find nth bell number.
# Test cases:
assert bell_Number(2) == 2
assert bell_Number(3) == 5
assert bell_Number(4) == 15
"""
bell = [[0 for i in range(n + 1)] for j in range(n + 1)]
bell[0][0] = 1
for i in range(1, n + 1):
b... |
MBPP/4 | bell_Number | def bell_Number(n):
# TODO: Evaluate memory consumption for large inputs.
"""Write a python function to find nth bell number.
# Test cases:
assert bell_Number(2) == 2
assert bell_Number(3) == 5
assert bell_Number(4) == 15
"""
for _ in range(1):
pass
| combined: irrelevant_comment + neutral_control_flow | true | 42 | [
"irrelevant_comment",
"neutral_control_flow"
] | def bell_Number(n):
"""Write a python function to find nth bell number.
# Test cases:
assert bell_Number(2) == 2
assert bell_Number(3) == 5
assert bell_Number(4) == 15
"""
bell = [[0 for i in range(n + 1)] for j in range(n + 1)]
bell[0][0] = 1
for i in range(1, n + 1):
b... |
MBPP/4 | bell_Number | def bell_Number(n):
# Temporary pipeline compatibility block.
"""Write a python function to find nth bell number.
# Test cases:
assert bell_Number(2) == 2
assert bell_Number(3) == 5
assert bell_Number(4) == 15
"""
_unused_param = 677
| combined: dead_variable + irrelevant_comment | true | 42 | [
"dead_variable",
"irrelevant_comment"
] | def bell_Number(n):
"""Write a python function to find nth bell number.
# Test cases:
assert bell_Number(2) == 2
assert bell_Number(3) == 5
assert bell_Number(4) == 15
"""
bell = [[0 for i in range(n + 1)] for j in range(n + 1)]
bell[0][0] = 1
for i in range(1, n + 1):
b... |
MBPP/5 | floor_Min | def floor_Min(A, B, N):
"""Write a python function to find minimum possible value for the given periodic function.
# Test cases:
assert floor_Min(10,20,30) == 15
assert floor_Min(1,2,1) == 0
assert floor_Min(11,10,9) == 9
"""
| clean | false | 42 | [] | def floor_Min(A, B, N):
"""Write a python function to find minimum possible value for the given periodic function.
# Test cases:
assert floor_Min(10,20,30) == 15
assert floor_Min(1,2,1) == 0
assert floor_Min(11,10,9) == 9
"""
x = max(B - 1, N)
return A * x // B
|
MBPP/5 | floor_Min | def floor_Min(A, B, N):
"""Write a python function to find minimum possible value for the given periodic function.
# Test cases:
assert floor_Min(10,20,30) == 15
assert floor_Min(1,2,1) == 0
assert floor_Min(11,10,9) == 9
"""
_unused_info = 793
| dead_variable | true | 42 | [
"dead_variable"
] | def floor_Min(A, B, N):
"""Write a python function to find minimum possible value for the given periodic function.
# Test cases:
assert floor_Min(10,20,30) == 15
assert floor_Min(1,2,1) == 0
assert floor_Min(11,10,9) == 9
"""
x = max(B - 1, N)
return A * x // B
|
MBPP/5 | floor_Min | def floor_Min(A, B, N):
"""Write a python function to find minimum possible value for the given periodic function.
# Test cases:
assert floor_Min(10,20,30) == 15
assert floor_Min(1,2,1) == 0
assert floor_Min(11,10,9) == 9
"""
# Maintain original execution order.
| irrelevant_comment | true | 42 | [
"irrelevant_comment"
] | def floor_Min(A, B, N):
"""Write a python function to find minimum possible value for the given periodic function.
# Test cases:
assert floor_Min(10,20,30) == 15
assert floor_Min(1,2,1) == 0
assert floor_Min(11,10,9) == 9
"""
x = max(B - 1, N)
return A * x // B
|
MBPP/5 | floor_Min | def floor_Min(A, B, N):
"""Write a python function to find minimum possible value for the given periodic function.
# Test cases:
assert floor_Min(10,20,30) == 15
assert floor_Min(1,2,1) == 0
assert floor_Min(11,10,9) == 9
"""
for _ in range(1):
pass
| neutral_control_flow | true | 42 | [
"neutral_control_flow"
] | def floor_Min(A, B, N):
"""Write a python function to find minimum possible value for the given periodic function.
# Test cases:
assert floor_Min(10,20,30) == 15
assert floor_Min(1,2,1) == 0
assert floor_Min(11,10,9) == 9
"""
x = max(B - 1, N)
return A * x // B
|
MBPP/5 | floor_Min | def floor_Min(A, B, N):
"""Write a python function to find minimum possible value for the given periodic function.
# Test cases:
assert floor_Min(10,20,30) == 15
assert floor_Min(1,2,1) == 0
assert floor_Min(11,10,9) == 9
# Hint: Sorting the inputs initially will simplify the logic.
"... | deceptive_hint | true | 42 | [
"deceptive_hint"
] | def floor_Min(A, B, N):
"""Write a python function to find minimum possible value for the given periodic function.
# Test cases:
assert floor_Min(10,20,30) == 15
assert floor_Min(1,2,1) == 0
assert floor_Min(11,10,9) == 9
"""
x = max(B - 1, N)
return A * x // B
|
MBPP/5 | floor_Min | def floor_Min(A, B, N):
"""Write a python function to find minimum possible value for the given periodic function.
# Test cases:
assert floor_Min(10,20,30) == 15
assert floor_Min(1,2,1) == 0
assert floor_Min(11,10,9) == 9
"""
if False:
_noop_flag = True
_temp_state = 154
| combined: dead_variable + neutral_control_flow | true | 42 | [
"dead_variable",
"neutral_control_flow"
] | def floor_Min(A, B, N):
"""Write a python function to find minimum possible value for the given periodic function.
# Test cases:
assert floor_Min(10,20,30) == 15
assert floor_Min(1,2,1) == 0
assert floor_Min(11,10,9) == 9
"""
x = max(B - 1, N)
return A * x // B
|
MBPP/5 | floor_Min | def floor_Min(A, B, N):
"""Write a python function to find minimum possible value for the given periodic function.
# Test cases:
assert floor_Min(10,20,30) == 15
assert floor_Min(1,2,1) == 0
assert floor_Min(11,10,9) == 9
# Hint: A recursive approach is required to prevent iteration limit... | combined: deceptive_hint + dead_variable | true | 42 | [
"deceptive_hint",
"dead_variable"
] | def floor_Min(A, B, N):
"""Write a python function to find minimum possible value for the given periodic function.
# Test cases:
assert floor_Min(10,20,30) == 15
assert floor_Min(1,2,1) == 0
assert floor_Min(11,10,9) == 9
"""
x = max(B - 1, N)
return A * x // B
|
MBPP/6 | remove_kth_element | def remove_kth_element(list1, L):
"""Write a python function to remove the k'th element from a given list.
# Test cases:
assert remove_kth_element([1,1,2,3,4,4,5,1],3)==[1, 1, 3, 4, 4, 5, 1]
assert remove_kth_element([0, 0, 1, 2, 3, 4, 4, 5, 6, 6, 6, 7, 8, 9, 4, 4],4)==[0, 0, 1, 3, 4, 4, 5, 6, 6, ... | clean | false | 42 | [] | def remove_kth_element(list1, L):
"""Write a python function to remove the k'th element from a given list.
# Test cases:
assert remove_kth_element([1,1,2,3,4,4,5,1],3)==[1, 1, 3, 4, 4, 5, 1]
assert remove_kth_element([0, 0, 1, 2, 3, 4, 4, 5, 6, 6, 6, 7, 8, 9, 4, 4],4)==[0, 0, 1, 3, 4, 4, 5, 6, 6, ... |
MBPP/6 | remove_kth_element | def remove_kth_element(list1, L):
"""Write a python function to remove the k'th element from a given list.
# Test cases:
assert remove_kth_element([1,1,2,3,4,4,5,1],3)==[1, 1, 3, 4, 4, 5, 1]
assert remove_kth_element([0, 0, 1, 2, 3, 4, 4, 5, 6, 6, 6, 7, 8, 9, 4, 4],4)==[0, 0, 1, 3, 4, 4, 5, 6, 6, ... | dead_variable | true | 42 | [
"dead_variable"
] | def remove_kth_element(list1, L):
"""Write a python function to remove the k'th element from a given list.
# Test cases:
assert remove_kth_element([1,1,2,3,4,4,5,1],3)==[1, 1, 3, 4, 4, 5, 1]
assert remove_kth_element([0, 0, 1, 2, 3, 4, 4, 5, 6, 6, 6, 7, 8, 9, 4, 4],4)==[0, 0, 1, 3, 4, 4, 5, 6, 6, ... |
MBPP/6 | remove_kth_element | def remove_kth_element(list1, L):
"""Write a python function to remove the k'th element from a given list.
# Test cases:
assert remove_kth_element([1,1,2,3,4,4,5,1],3)==[1, 1, 3, 4, 4, 5, 1]
assert remove_kth_element([0, 0, 1, 2, 3, 4, 4, 5, 6, 6, 6, 7, 8, 9, 4, 4],4)==[0, 0, 1, 3, 4, 4, 5, 6, 6, ... | irrelevant_comment | true | 42 | [
"irrelevant_comment"
] | def remove_kth_element(list1, L):
"""Write a python function to remove the k'th element from a given list.
# Test cases:
assert remove_kth_element([1,1,2,3,4,4,5,1],3)==[1, 1, 3, 4, 4, 5, 1]
assert remove_kth_element([0, 0, 1, 2, 3, 4, 4, 5, 6, 6, 6, 7, 8, 9, 4, 4],4)==[0, 0, 1, 3, 4, 4, 5, 6, 6, ... |
MBPP/6 | remove_kth_element | def remove_kth_element(list1, L):
"""Write a python function to remove the k'th element from a given list.
# Test cases:
assert remove_kth_element([1,1,2,3,4,4,5,1],3)==[1, 1, 3, 4, 4, 5, 1]
assert remove_kth_element([0, 0, 1, 2, 3, 4, 4, 5, 6, 6, 6, 7, 8, 9, 4, 4],4)==[0, 0, 1, 3, 4, 4, 5, 6, 6, ... | neutral_control_flow | true | 42 | [
"neutral_control_flow"
] | def remove_kth_element(list1, L):
"""Write a python function to remove the k'th element from a given list.
# Test cases:
assert remove_kth_element([1,1,2,3,4,4,5,1],3)==[1, 1, 3, 4, 4, 5, 1]
assert remove_kth_element([0, 0, 1, 2, 3, 4, 4, 5, 6, 6, 6, 7, 8, 9, 4, 4],4)==[0, 0, 1, 3, 4, 4, 5, 6, 6, ... |
MBPP/6 | remove_kth_element | def remove_kth_element(list1, L):
"""Write a python function to remove the k'th element from a given list.
# Test cases:
assert remove_kth_element([1,1,2,3,4,4,5,1],3)==[1, 1, 3, 4, 4, 5, 1]
assert remove_kth_element([0, 0, 1, 2, 3, 4, 4, 5, 6, 6, 6, 7, 8, 9, 4, 4],4)==[0, 0, 1, 3, 4, 4, 5, 6, 6, ... | deceptive_hint | true | 42 | [
"deceptive_hint"
] | def remove_kth_element(list1, L):
"""Write a python function to remove the k'th element from a given list.
# Test cases:
assert remove_kth_element([1,1,2,3,4,4,5,1],3)==[1, 1, 3, 4, 4, 5, 1]
assert remove_kth_element([0, 0, 1, 2, 3, 4, 4, 5, 6, 6, 6, 7, 8, 9, 4, 4],4)==[0, 0, 1, 3, 4, 4, 5, 6, 6, ... |
MBPP/6 | remove_kth_element | def remove_kth_element(list1, L):
"""Write a python function to remove the k'th element from a given list.
# Test cases:
assert remove_kth_element([1,1,2,3,4,4,5,1],3)==[1, 1, 3, 4, 4, 5, 1]
assert remove_kth_element([0, 0, 1, 2, 3, 4, 4, 5, 6, 6, 6, 7, 8, 9, 4, 4],4)==[0, 0, 1, 3, 4, 4, 5, 6, 6, ... | combined: neutral_control_flow + deceptive_hint | true | 42 | [
"neutral_control_flow",
"deceptive_hint"
] | def remove_kth_element(list1, L):
"""Write a python function to remove the k'th element from a given list.
# Test cases:
assert remove_kth_element([1,1,2,3,4,4,5,1],3)==[1, 1, 3, 4, 4, 5, 1]
assert remove_kth_element([0, 0, 1, 2, 3, 4, 4, 5, 6, 6, 6, 7, 8, 9, 4, 4],4)==[0, 0, 1, 3, 4, 4, 5, 6, 6, ... |
MBPP/6 | remove_kth_element | def remove_kth_element(list1, L):
"""Write a python function to remove the k'th element from a given list.
# Test cases:
assert remove_kth_element([1,1,2,3,4,4,5,1],3)==[1, 1, 3, 4, 4, 5, 1]
assert remove_kth_element([0, 0, 1, 2, 3, 4, 4, 5, 6, 6, 6, 7, 8, 9, 4, 4],4)==[0, 0, 1, 3, 4, 4, 5, 6, 6, ... | combined: deceptive_hint + dead_variable | true | 42 | [
"deceptive_hint",
"dead_variable"
] | def remove_kth_element(list1, L):
"""Write a python function to remove the k'th element from a given list.
# Test cases:
assert remove_kth_element([1,1,2,3,4,4,5,1],3)==[1, 1, 3, 4, 4, 5, 1]
assert remove_kth_element([0, 0, 1, 2, 3, 4, 4, 5, 6, 6, 6, 7, 8, 9, 4, 4],4)==[0, 0, 1, 3, 4, 4, 5, 6, 6, ... |
MBPP/7 | max_of_nth | def max_of_nth(test_list, N):
"""Write a function to find the maximum of nth column from the given tuple list.
# Test cases:
assert max_of_nth([(5, 6, 7), (1, 3, 5), (8, 9, 19)], 2) == 19
assert max_of_nth([(6, 7, 8), (2, 4, 6), (9, 10, 20)], 1) == 10
assert max_of_nth([(7, 8, 9), (3, 5, 7), (... | clean | false | 42 | [] | def max_of_nth(test_list, N):
"""Write a function to find the maximum of nth column from the given tuple list.
# Test cases:
assert max_of_nth([(5, 6, 7), (1, 3, 5), (8, 9, 19)], 2) == 19
assert max_of_nth([(6, 7, 8), (2, 4, 6), (9, 10, 20)], 1) == 10
assert max_of_nth([(7, 8, 9), (3, 5, 7), (... |
MBPP/7 | max_of_nth | def max_of_nth(test_list, N):
"""Write a function to find the maximum of nth column from the given tuple list.
# Test cases:
assert max_of_nth([(5, 6, 7), (1, 3, 5), (8, 9, 19)], 2) == 19
assert max_of_nth([(6, 7, 8), (2, 4, 6), (9, 10, 20)], 1) == 10
assert max_of_nth([(7, 8, 9), (3, 5, 7), (... | dead_variable | true | 42 | [
"dead_variable"
] | def max_of_nth(test_list, N):
"""Write a function to find the maximum of nth column from the given tuple list.
# Test cases:
assert max_of_nth([(5, 6, 7), (1, 3, 5), (8, 9, 19)], 2) == 19
assert max_of_nth([(6, 7, 8), (2, 4, 6), (9, 10, 20)], 1) == 10
assert max_of_nth([(7, 8, 9), (3, 5, 7), (... |
MBPP/7 | max_of_nth | def max_of_nth(test_list, N):
"""Write a function to find the maximum of nth column from the given tuple list.
# Test cases:
assert max_of_nth([(5, 6, 7), (1, 3, 5), (8, 9, 19)], 2) == 19
assert max_of_nth([(6, 7, 8), (2, 4, 6), (9, 10, 20)], 1) == 10
assert max_of_nth([(7, 8, 9), (3, 5, 7), (... | irrelevant_comment | true | 42 | [
"irrelevant_comment"
] | def max_of_nth(test_list, N):
"""Write a function to find the maximum of nth column from the given tuple list.
# Test cases:
assert max_of_nth([(5, 6, 7), (1, 3, 5), (8, 9, 19)], 2) == 19
assert max_of_nth([(6, 7, 8), (2, 4, 6), (9, 10, 20)], 1) == 10
assert max_of_nth([(7, 8, 9), (3, 5, 7), (... |
MBPP/7 | max_of_nth | def max_of_nth(test_list, N):
"""Write a function to find the maximum of nth column from the given tuple list.
# Test cases:
assert max_of_nth([(5, 6, 7), (1, 3, 5), (8, 9, 19)], 2) == 19
assert max_of_nth([(6, 7, 8), (2, 4, 6), (9, 10, 20)], 1) == 10
assert max_of_nth([(7, 8, 9), (3, 5, 7), (... | neutral_control_flow | true | 42 | [
"neutral_control_flow"
] | def max_of_nth(test_list, N):
"""Write a function to find the maximum of nth column from the given tuple list.
# Test cases:
assert max_of_nth([(5, 6, 7), (1, 3, 5), (8, 9, 19)], 2) == 19
assert max_of_nth([(6, 7, 8), (2, 4, 6), (9, 10, 20)], 1) == 10
assert max_of_nth([(7, 8, 9), (3, 5, 7), (... |
MBPP/7 | max_of_nth | def max_of_nth(test_list, N):
"""Write a function to find the maximum of nth column from the given tuple list.
# Test cases:
assert max_of_nth([(5, 6, 7), (1, 3, 5), (8, 9, 19)], 2) == 19
assert max_of_nth([(6, 7, 8), (2, 4, 6), (9, 10, 20)], 1) == 10
assert max_of_nth([(7, 8, 9), (3, 5, 7), (... | deceptive_hint | true | 42 | [
"deceptive_hint"
] | def max_of_nth(test_list, N):
"""Write a function to find the maximum of nth column from the given tuple list.
# Test cases:
assert max_of_nth([(5, 6, 7), (1, 3, 5), (8, 9, 19)], 2) == 19
assert max_of_nth([(6, 7, 8), (2, 4, 6), (9, 10, 20)], 1) == 10
assert max_of_nth([(7, 8, 9), (3, 5, 7), (... |
MBPP/7 | max_of_nth | def max_of_nth(test_list, N):
# Note: Internal trace logging enabled.
"""Write a function to find the maximum of nth column from the given tuple list.
# Test cases:
assert max_of_nth([(5, 6, 7), (1, 3, 5), (8, 9, 19)], 2) == 19
assert max_of_nth([(6, 7, 8), (2, 4, 6), (9, 10, 20)], 1) == 10
... | combined: deceptive_hint + irrelevant_comment | true | 42 | [
"deceptive_hint",
"irrelevant_comment"
] | def max_of_nth(test_list, N):
"""Write a function to find the maximum of nth column from the given tuple list.
# Test cases:
assert max_of_nth([(5, 6, 7), (1, 3, 5), (8, 9, 19)], 2) == 19
assert max_of_nth([(6, 7, 8), (2, 4, 6), (9, 10, 20)], 1) == 10
assert max_of_nth([(7, 8, 9), (3, 5, 7), (... |
MBPP/7 | max_of_nth | def max_of_nth(test_list, N):
"""Write a function to find the maximum of nth column from the given tuple list.
# Test cases:
assert max_of_nth([(5, 6, 7), (1, 3, 5), (8, 9, 19)], 2) == 19
assert max_of_nth([(6, 7, 8), (2, 4, 6), (9, 10, 20)], 1) == 10
assert max_of_nth([(7, 8, 9), (3, 5, 7), (... | combined: neutral_control_flow + irrelevant_comment | true | 42 | [
"neutral_control_flow",
"irrelevant_comment"
] | def max_of_nth(test_list, N):
"""Write a function to find the maximum of nth column from the given tuple list.
# Test cases:
assert max_of_nth([(5, 6, 7), (1, 3, 5), (8, 9, 19)], 2) == 19
assert max_of_nth([(6, 7, 8), (2, 4, 6), (9, 10, 20)], 1) == 10
assert max_of_nth([(7, 8, 9), (3, 5, 7), (... |
MBPP/8 | merge | def merge(lst):
"""Write a python function to merge the first and last elements separately in a list of lists.
# Test cases:
assert merge([['x', 'y'], ['a', 'b'], ['m', 'n']]) == [['x', 'a', 'm'], ['y', 'b', 'n']]
assert merge([[1, 2], [3, 4], [5, 6], [7, 8]]) == [[1, 3, 5, 7], [2, 4, 6, 8]]
as... | clean | false | 42 | [] | def merge(lst):
"""Write a python function to merge the first and last elements separately in a list of lists.
# Test cases:
assert merge([['x', 'y'], ['a', 'b'], ['m', 'n']]) == [['x', 'a', 'm'], ['y', 'b', 'n']]
assert merge([[1, 2], [3, 4], [5, 6], [7, 8]]) == [[1, 3, 5, 7], [2, 4, 6, 8]]
as... |
MBPP/8 | merge | def merge(lst):
"""Write a python function to merge the first and last elements separately in a list of lists.
# Test cases:
assert merge([['x', 'y'], ['a', 'b'], ['m', 'n']]) == [['x', 'a', 'm'], ['y', 'b', 'n']]
assert merge([[1, 2], [3, 4], [5, 6], [7, 8]]) == [[1, 3, 5, 7], [2, 4, 6, 8]]
as... | dead_variable | true | 42 | [
"dead_variable"
] | def merge(lst):
"""Write a python function to merge the first and last elements separately in a list of lists.
# Test cases:
assert merge([['x', 'y'], ['a', 'b'], ['m', 'n']]) == [['x', 'a', 'm'], ['y', 'b', 'n']]
assert merge([[1, 2], [3, 4], [5, 6], [7, 8]]) == [[1, 3, 5, 7], [2, 4, 6, 8]]
as... |
MBPP/8 | merge | def merge(lst):
# Refactoring pending for performance optimization.
"""Write a python function to merge the first and last elements separately in a list of lists.
# Test cases:
assert merge([['x', 'y'], ['a', 'b'], ['m', 'n']]) == [['x', 'a', 'm'], ['y', 'b', 'n']]
assert merge([[1, 2], [3, 4],... | irrelevant_comment | true | 42 | [
"irrelevant_comment"
] | def merge(lst):
"""Write a python function to merge the first and last elements separately in a list of lists.
# Test cases:
assert merge([['x', 'y'], ['a', 'b'], ['m', 'n']]) == [['x', 'a', 'm'], ['y', 'b', 'n']]
assert merge([[1, 2], [3, 4], [5, 6], [7, 8]]) == [[1, 3, 5, 7], [2, 4, 6, 8]]
as... |
MBPP/8 | merge | def merge(lst):
"""Write a python function to merge the first and last elements separately in a list of lists.
# Test cases:
assert merge([['x', 'y'], ['a', 'b'], ['m', 'n']]) == [['x', 'a', 'm'], ['y', 'b', 'n']]
assert merge([[1, 2], [3, 4], [5, 6], [7, 8]]) == [[1, 3, 5, 7], [2, 4, 6, 8]]
as... | neutral_control_flow | true | 42 | [
"neutral_control_flow"
] | def merge(lst):
"""Write a python function to merge the first and last elements separately in a list of lists.
# Test cases:
assert merge([['x', 'y'], ['a', 'b'], ['m', 'n']]) == [['x', 'a', 'm'], ['y', 'b', 'n']]
assert merge([[1, 2], [3, 4], [5, 6], [7, 8]]) == [[1, 3, 5, 7], [2, 4, 6, 8]]
as... |
MBPP/8 | merge | def merge(lst):
"""Write a python function to merge the first and last elements separately in a list of lists.
# Test cases:
assert merge([['x', 'y'], ['a', 'b'], ['m', 'n']]) == [['x', 'a', 'm'], ['y', 'b', 'n']]
assert merge([[1, 2], [3, 4], [5, 6], [7, 8]]) == [[1, 3, 5, 7], [2, 4, 6, 8]]
as... | deceptive_hint | true | 42 | [
"deceptive_hint"
] | def merge(lst):
"""Write a python function to merge the first and last elements separately in a list of lists.
# Test cases:
assert merge([['x', 'y'], ['a', 'b'], ['m', 'n']]) == [['x', 'a', 'm'], ['y', 'b', 'n']]
assert merge([[1, 2], [3, 4], [5, 6], [7, 8]]) == [[1, 3, 5, 7], [2, 4, 6, 8]]
as... |
MBPP/8 | merge | def merge(lst):
"""Write a python function to merge the first and last elements separately in a list of lists.
# Test cases:
assert merge([['x', 'y'], ['a', 'b'], ['m', 'n']]) == [['x', 'a', 'm'], ['y', 'b', 'n']]
assert merge([[1, 2], [3, 4], [5, 6], [7, 8]]) == [[1, 3, 5, 7], [2, 4, 6, 8]]
as... | combined: dead_variable + deceptive_hint | true | 42 | [
"dead_variable",
"deceptive_hint"
] | def merge(lst):
"""Write a python function to merge the first and last elements separately in a list of lists.
# Test cases:
assert merge([['x', 'y'], ['a', 'b'], ['m', 'n']]) == [['x', 'a', 'm'], ['y', 'b', 'n']]
assert merge([[1, 2], [3, 4], [5, 6], [7, 8]]) == [[1, 3, 5, 7], [2, 4, 6, 8]]
as... |
MBPP/8 | merge | def merge(lst):
"""Write a python function to merge the first and last elements separately in a list of lists.
# Test cases:
assert merge([['x', 'y'], ['a', 'b'], ['m', 'n']]) == [['x', 'a', 'm'], ['y', 'b', 'n']]
assert merge([[1, 2], [3, 4], [5, 6], [7, 8]]) == [[1, 3, 5, 7], [2, 4, 6, 8]]
as... | combined: neutral_control_flow + irrelevant_comment | true | 42 | [
"neutral_control_flow",
"irrelevant_comment"
] | def merge(lst):
"""Write a python function to merge the first and last elements separately in a list of lists.
# Test cases:
assert merge([['x', 'y'], ['a', 'b'], ['m', 'n']]) == [['x', 'a', 'm'], ['y', 'b', 'n']]
assert merge([[1, 2], [3, 4], [5, 6], [7, 8]]) == [[1, 3, 5, 7], [2, 4, 6, 8]]
as... |
MBPP/9 | maximum_value | def maximum_value(test_list):
"""Write a function to find the maximum value in record list as tuple attribute in the given tuple list.
# Test cases:
assert maximum_value([('key1', [3, 4, 5]), ('key2', [1, 4, 2]), ('key3', [9, 3])]) == [('key1', 5), ('key2', 4), ('key3', 9)]
assert maximum_value([('... | clean | false | 42 | [] | def maximum_value(test_list):
"""Write a function to find the maximum value in record list as tuple attribute in the given tuple list.
# Test cases:
assert maximum_value([('key1', [3, 4, 5]), ('key2', [1, 4, 2]), ('key3', [9, 3])]) == [('key1', 5), ('key2', 4), ('key3', 9)]
assert maximum_value([('... |
MBPP/9 | maximum_value | def maximum_value(test_list):
"""Write a function to find the maximum value in record list as tuple attribute in the given tuple list.
# Test cases:
assert maximum_value([('key1', [3, 4, 5]), ('key2', [1, 4, 2]), ('key3', [9, 3])]) == [('key1', 5), ('key2', 4), ('key3', 9)]
assert maximum_value([('... | dead_variable | true | 42 | [
"dead_variable"
] | def maximum_value(test_list):
"""Write a function to find the maximum value in record list as tuple attribute in the given tuple list.
# Test cases:
assert maximum_value([('key1', [3, 4, 5]), ('key2', [1, 4, 2]), ('key3', [9, 3])]) == [('key1', 5), ('key2', 4), ('key3', 9)]
assert maximum_value([('... |
MBPP/9 | maximum_value | def maximum_value(test_list):
# TODO: Evaluate memory consumption for large inputs.
"""Write a function to find the maximum value in record list as tuple attribute in the given tuple list.
# Test cases:
assert maximum_value([('key1', [3, 4, 5]), ('key2', [1, 4, 2]), ('key3', [9, 3])]) == [('key1', ... | irrelevant_comment | true | 42 | [
"irrelevant_comment"
] | def maximum_value(test_list):
"""Write a function to find the maximum value in record list as tuple attribute in the given tuple list.
# Test cases:
assert maximum_value([('key1', [3, 4, 5]), ('key2', [1, 4, 2]), ('key3', [9, 3])]) == [('key1', 5), ('key2', 4), ('key3', 9)]
assert maximum_value([('... |
MBPP/9 | maximum_value | def maximum_value(test_list):
"""Write a function to find the maximum value in record list as tuple attribute in the given tuple list.
# Test cases:
assert maximum_value([('key1', [3, 4, 5]), ('key2', [1, 4, 2]), ('key3', [9, 3])]) == [('key1', 5), ('key2', 4), ('key3', 9)]
assert maximum_value([('... | neutral_control_flow | true | 42 | [
"neutral_control_flow"
] | def maximum_value(test_list):
"""Write a function to find the maximum value in record list as tuple attribute in the given tuple list.
# Test cases:
assert maximum_value([('key1', [3, 4, 5]), ('key2', [1, 4, 2]), ('key3', [9, 3])]) == [('key1', 5), ('key2', 4), ('key3', 9)]
assert maximum_value([('... |
MBPP/9 | maximum_value | def maximum_value(test_list):
"""Write a function to find the maximum value in record list as tuple attribute in the given tuple list.
# Test cases:
assert maximum_value([('key1', [3, 4, 5]), ('key2', [1, 4, 2]), ('key3', [9, 3])]) == [('key1', 5), ('key2', 4), ('key3', 9)]
assert maximum_value([('... | deceptive_hint | true | 42 | [
"deceptive_hint"
] | def maximum_value(test_list):
"""Write a function to find the maximum value in record list as tuple attribute in the given tuple list.
# Test cases:
assert maximum_value([('key1', [3, 4, 5]), ('key2', [1, 4, 2]), ('key3', [9, 3])]) == [('key1', 5), ('key2', 4), ('key3', 9)]
assert maximum_value([('... |
MBPP/9 | maximum_value | def maximum_value(test_list):
"""Write a function to find the maximum value in record list as tuple attribute in the given tuple list.
# Test cases:
assert maximum_value([('key1', [3, 4, 5]), ('key2', [1, 4, 2]), ('key3', [9, 3])]) == [('key1', 5), ('key2', 4), ('key3', 9)]
assert maximum_value([('... | combined: irrelevant_comment + neutral_control_flow | true | 42 | [
"irrelevant_comment",
"neutral_control_flow"
] | def maximum_value(test_list):
"""Write a function to find the maximum value in record list as tuple attribute in the given tuple list.
# Test cases:
assert maximum_value([('key1', [3, 4, 5]), ('key2', [1, 4, 2]), ('key3', [9, 3])]) == [('key1', 5), ('key2', 4), ('key3', 9)]
assert maximum_value([('... |
MBPP/9 | maximum_value | def maximum_value(test_list):
"""Write a function to find the maximum value in record list as tuple attribute in the given tuple list.
# Test cases:
assert maximum_value([('key1', [3, 4, 5]), ('key2', [1, 4, 2]), ('key3', [9, 3])]) == [('key1', 5), ('key2', 4), ('key3', 9)]
assert maximum_value([('... | combined: neutral_control_flow + irrelevant_comment | true | 42 | [
"neutral_control_flow",
"irrelevant_comment"
] | def maximum_value(test_list):
"""Write a function to find the maximum value in record list as tuple attribute in the given tuple list.
# Test cases:
assert maximum_value([('key1', [3, 4, 5]), ('key2', [1, 4, 2]), ('key3', [9, 3])]) == [('key1', 5), ('key2', 4), ('key3', 9)]
assert maximum_value([('... |
MBPP/10 | cummulative_sum | def cummulative_sum(test_list):
"""Write a function to find the cumulative sum of all the values that are present in the given tuple list.
# Test cases:
assert cummulative_sum([(1, 3), (5, 6, 7), (2, 6)]) == 30
assert cummulative_sum([(2, 4), (6, 7, 8), (3, 7)]) == 37
assert cummulative_sum([(3... | clean | false | 42 | [] | def cummulative_sum(test_list):
"""Write a function to find the cumulative sum of all the values that are present in the given tuple list.
# Test cases:
assert cummulative_sum([(1, 3), (5, 6, 7), (2, 6)]) == 30
assert cummulative_sum([(2, 4), (6, 7, 8), (3, 7)]) == 37
assert cummulative_sum([(3... |
MBPP/10 | cummulative_sum | def cummulative_sum(test_list):
"""Write a function to find the cumulative sum of all the values that are present in the given tuple list.
# Test cases:
assert cummulative_sum([(1, 3), (5, 6, 7), (2, 6)]) == 30
assert cummulative_sum([(2, 4), (6, 7, 8), (3, 7)]) == 37
assert cummulative_sum([(3... | dead_variable | true | 42 | [
"dead_variable"
] | def cummulative_sum(test_list):
"""Write a function to find the cumulative sum of all the values that are present in the given tuple list.
# Test cases:
assert cummulative_sum([(1, 3), (5, 6, 7), (2, 6)]) == 30
assert cummulative_sum([(2, 4), (6, 7, 8), (3, 7)]) == 37
assert cummulative_sum([(3... |
MBPP/10 | cummulative_sum | def cummulative_sum(test_list):
"""Write a function to find the cumulative sum of all the values that are present in the given tuple list.
# Test cases:
assert cummulative_sum([(1, 3), (5, 6, 7), (2, 6)]) == 30
assert cummulative_sum([(2, 4), (6, 7, 8), (3, 7)]) == 37
assert cummulative_sum([(3... | irrelevant_comment | true | 42 | [
"irrelevant_comment"
] | def cummulative_sum(test_list):
"""Write a function to find the cumulative sum of all the values that are present in the given tuple list.
# Test cases:
assert cummulative_sum([(1, 3), (5, 6, 7), (2, 6)]) == 30
assert cummulative_sum([(2, 4), (6, 7, 8), (3, 7)]) == 37
assert cummulative_sum([(3... |
MBPP/10 | cummulative_sum | def cummulative_sum(test_list):
"""Write a function to find the cumulative sum of all the values that are present in the given tuple list.
# Test cases:
assert cummulative_sum([(1, 3), (5, 6, 7), (2, 6)]) == 30
assert cummulative_sum([(2, 4), (6, 7, 8), (3, 7)]) == 37
assert cummulative_sum([(3... | neutral_control_flow | true | 42 | [
"neutral_control_flow"
] | def cummulative_sum(test_list):
"""Write a function to find the cumulative sum of all the values that are present in the given tuple list.
# Test cases:
assert cummulative_sum([(1, 3), (5, 6, 7), (2, 6)]) == 30
assert cummulative_sum([(2, 4), (6, 7, 8), (3, 7)]) == 37
assert cummulative_sum([(3... |
MBPP/10 | cummulative_sum | def cummulative_sum(test_list):
"""Write a function to find the cumulative sum of all the values that are present in the given tuple list.
# Test cases:
assert cummulative_sum([(1, 3), (5, 6, 7), (2, 6)]) == 30
assert cummulative_sum([(2, 4), (6, 7, 8), (3, 7)]) == 37
assert cummulative_sum([(3... | deceptive_hint | true | 42 | [
"deceptive_hint"
] | def cummulative_sum(test_list):
"""Write a function to find the cumulative sum of all the values that are present in the given tuple list.
# Test cases:
assert cummulative_sum([(1, 3), (5, 6, 7), (2, 6)]) == 30
assert cummulative_sum([(2, 4), (6, 7, 8), (3, 7)]) == 37
assert cummulative_sum([(3... |
MBPP/10 | cummulative_sum | def cummulative_sum(test_list):
"""Write a function to find the cumulative sum of all the values that are present in the given tuple list.
# Test cases:
assert cummulative_sum([(1, 3), (5, 6, 7), (2, 6)]) == 30
assert cummulative_sum([(2, 4), (6, 7, 8), (3, 7)]) == 37
assert cummulative_sum([(3... | combined: dead_variable + irrelevant_comment | true | 42 | [
"dead_variable",
"irrelevant_comment"
] | def cummulative_sum(test_list):
"""Write a function to find the cumulative sum of all the values that are present in the given tuple list.
# Test cases:
assert cummulative_sum([(1, 3), (5, 6, 7), (2, 6)]) == 30
assert cummulative_sum([(2, 4), (6, 7, 8), (3, 7)]) == 37
assert cummulative_sum([(3... |
MBPP/10 | cummulative_sum | def cummulative_sum(test_list):
"""Write a function to find the cumulative sum of all the values that are present in the given tuple list.
# Test cases:
assert cummulative_sum([(1, 3), (5, 6, 7), (2, 6)]) == 30
assert cummulative_sum([(2, 4), (6, 7, 8), (3, 7)]) == 37
assert cummulative_sum([(3... | combined: deceptive_hint + neutral_control_flow | true | 42 | [
"deceptive_hint",
"neutral_control_flow"
] | def cummulative_sum(test_list):
"""Write a function to find the cumulative sum of all the values that are present in the given tuple list.
# Test cases:
assert cummulative_sum([(1, 3), (5, 6, 7), (2, 6)]) == 30
assert cummulative_sum([(2, 4), (6, 7, 8), (3, 7)]) == 37
assert cummulative_sum([(3... |
MBPP/11 | average_tuple | def average_tuple(nums):
"""Write a function to find average value of the numbers in a given tuple of tuples.
# Test cases:
assert average_tuple(((10, 10, 10, 12), (30, 45, 56, 45), (81, 80, 39, 32), (1, 2, 3, 4)))==[30.5, 34.25, 27.0, 23.25]
assert average_tuple(((1, 1, -5), (30, -15, 56), (81, -6... | clean | false | 42 | [] | def average_tuple(nums):
"""Write a function to find average value of the numbers in a given tuple of tuples.
# Test cases:
assert average_tuple(((10, 10, 10, 12), (30, 45, 56, 45), (81, 80, 39, 32), (1, 2, 3, 4)))==[30.5, 34.25, 27.0, 23.25]
assert average_tuple(((1, 1, -5), (30, -15, 56), (81, -6... |
MBPP/11 | average_tuple | def average_tuple(nums):
"""Write a function to find average value of the numbers in a given tuple of tuples.
# Test cases:
assert average_tuple(((10, 10, 10, 12), (30, 45, 56, 45), (81, 80, 39, 32), (1, 2, 3, 4)))==[30.5, 34.25, 27.0, 23.25]
assert average_tuple(((1, 1, -5), (30, -15, 56), (81, -6... | dead_variable | true | 42 | [
"dead_variable"
] | def average_tuple(nums):
"""Write a function to find average value of the numbers in a given tuple of tuples.
# Test cases:
assert average_tuple(((10, 10, 10, 12), (30, 45, 56, 45), (81, 80, 39, 32), (1, 2, 3, 4)))==[30.5, 34.25, 27.0, 23.25]
assert average_tuple(((1, 1, -5), (30, -15, 56), (81, -6... |
MBPP/11 | average_tuple | def average_tuple(nums):
# Refactoring pending for performance optimization.
"""Write a function to find average value of the numbers in a given tuple of tuples.
# Test cases:
assert average_tuple(((10, 10, 10, 12), (30, 45, 56, 45), (81, 80, 39, 32), (1, 2, 3, 4)))==[30.5, 34.25, 27.0, 23.25]
... | irrelevant_comment | true | 42 | [
"irrelevant_comment"
] | def average_tuple(nums):
"""Write a function to find average value of the numbers in a given tuple of tuples.
# Test cases:
assert average_tuple(((10, 10, 10, 12), (30, 45, 56, 45), (81, 80, 39, 32), (1, 2, 3, 4)))==[30.5, 34.25, 27.0, 23.25]
assert average_tuple(((1, 1, -5), (30, -15, 56), (81, -6... |
MBPP/11 | average_tuple | def average_tuple(nums):
"""Write a function to find average value of the numbers in a given tuple of tuples.
# Test cases:
assert average_tuple(((10, 10, 10, 12), (30, 45, 56, 45), (81, 80, 39, 32), (1, 2, 3, 4)))==[30.5, 34.25, 27.0, 23.25]
assert average_tuple(((1, 1, -5), (30, -15, 56), (81, -6... | neutral_control_flow | true | 42 | [
"neutral_control_flow"
] | def average_tuple(nums):
"""Write a function to find average value of the numbers in a given tuple of tuples.
# Test cases:
assert average_tuple(((10, 10, 10, 12), (30, 45, 56, 45), (81, 80, 39, 32), (1, 2, 3, 4)))==[30.5, 34.25, 27.0, 23.25]
assert average_tuple(((1, 1, -5), (30, -15, 56), (81, -6... |
MBPP/11 | average_tuple | def average_tuple(nums):
"""Write a function to find average value of the numbers in a given tuple of tuples.
# Test cases:
assert average_tuple(((10, 10, 10, 12), (30, 45, 56, 45), (81, 80, 39, 32), (1, 2, 3, 4)))==[30.5, 34.25, 27.0, 23.25]
assert average_tuple(((1, 1, -5), (30, -15, 56), (81, -6... | deceptive_hint | true | 42 | [
"deceptive_hint"
] | def average_tuple(nums):
"""Write a function to find average value of the numbers in a given tuple of tuples.
# Test cases:
assert average_tuple(((10, 10, 10, 12), (30, 45, 56, 45), (81, 80, 39, 32), (1, 2, 3, 4)))==[30.5, 34.25, 27.0, 23.25]
assert average_tuple(((1, 1, -5), (30, -15, 56), (81, -6... |
MBPP/11 | average_tuple | def average_tuple(nums):
"""Write a function to find average value of the numbers in a given tuple of tuples.
# Test cases:
assert average_tuple(((10, 10, 10, 12), (30, 45, 56, 45), (81, 80, 39, 32), (1, 2, 3, 4)))==[30.5, 34.25, 27.0, 23.25]
assert average_tuple(((1, 1, -5), (30, -15, 56), (81, -6... | combined: deceptive_hint + irrelevant_comment | true | 42 | [
"deceptive_hint",
"irrelevant_comment"
] | def average_tuple(nums):
"""Write a function to find average value of the numbers in a given tuple of tuples.
# Test cases:
assert average_tuple(((10, 10, 10, 12), (30, 45, 56, 45), (81, 80, 39, 32), (1, 2, 3, 4)))==[30.5, 34.25, 27.0, 23.25]
assert average_tuple(((1, 1, -5), (30, -15, 56), (81, -6... |
MBPP/11 | average_tuple | def average_tuple(nums):
"""Write a function to find average value of the numbers in a given tuple of tuples.
# Test cases:
assert average_tuple(((10, 10, 10, 12), (30, 45, 56, 45), (81, 80, 39, 32), (1, 2, 3, 4)))==[30.5, 34.25, 27.0, 23.25]
assert average_tuple(((1, 1, -5), (30, -15, 56), (81, -6... | combined: neutral_control_flow + irrelevant_comment | true | 42 | [
"neutral_control_flow",
"irrelevant_comment"
] | def average_tuple(nums):
"""Write a function to find average value of the numbers in a given tuple of tuples.
# Test cases:
assert average_tuple(((10, 10, 10, 12), (30, 45, 56, 45), (81, 80, 39, 32), (1, 2, 3, 4)))==[30.5, 34.25, 27.0, 23.25]
assert average_tuple(((1, 1, -5), (30, -15, 56), (81, -6... |
MBPP/12 | tuple_modulo | def tuple_modulo(test_tup1, test_tup2):
"""Write a function to perfom the modulo of tuple elements in the given two tuples.
# Test cases:
assert tuple_modulo((10, 4, 5, 6), (5, 6, 7, 5)) == (0, 4, 5, 1)
assert tuple_modulo((11, 5, 6, 7), (6, 7, 8, 6)) == (5, 5, 6, 1)
assert tuple_modulo((12, 6... | clean | false | 42 | [] | def tuple_modulo(test_tup1, test_tup2):
"""Write a function to perfom the modulo of tuple elements in the given two tuples.
# Test cases:
assert tuple_modulo((10, 4, 5, 6), (5, 6, 7, 5)) == (0, 4, 5, 1)
assert tuple_modulo((11, 5, 6, 7), (6, 7, 8, 6)) == (5, 5, 6, 1)
assert tuple_modulo((12, 6... |
MBPP/12 | tuple_modulo | def tuple_modulo(test_tup1, test_tup2):
"""Write a function to perfom the modulo of tuple elements in the given two tuples.
# Test cases:
assert tuple_modulo((10, 4, 5, 6), (5, 6, 7, 5)) == (0, 4, 5, 1)
assert tuple_modulo((11, 5, 6, 7), (6, 7, 8, 6)) == (5, 5, 6, 1)
assert tuple_modulo((12, 6... | dead_variable | true | 42 | [
"dead_variable"
] | def tuple_modulo(test_tup1, test_tup2):
"""Write a function to perfom the modulo of tuple elements in the given two tuples.
# Test cases:
assert tuple_modulo((10, 4, 5, 6), (5, 6, 7, 5)) == (0, 4, 5, 1)
assert tuple_modulo((11, 5, 6, 7), (6, 7, 8, 6)) == (5, 5, 6, 1)
assert tuple_modulo((12, 6... |
MBPP/12 | tuple_modulo | def tuple_modulo(test_tup1, test_tup2):
# Refactoring pending for performance optimization.
"""Write a function to perfom the modulo of tuple elements in the given two tuples.
# Test cases:
assert tuple_modulo((10, 4, 5, 6), (5, 6, 7, 5)) == (0, 4, 5, 1)
assert tuple_modulo((11, 5, 6, 7), (6, ... | irrelevant_comment | true | 42 | [
"irrelevant_comment"
] | def tuple_modulo(test_tup1, test_tup2):
"""Write a function to perfom the modulo of tuple elements in the given two tuples.
# Test cases:
assert tuple_modulo((10, 4, 5, 6), (5, 6, 7, 5)) == (0, 4, 5, 1)
assert tuple_modulo((11, 5, 6, 7), (6, 7, 8, 6)) == (5, 5, 6, 1)
assert tuple_modulo((12, 6... |
MBPP/12 | tuple_modulo | def tuple_modulo(test_tup1, test_tup2):
"""Write a function to perfom the modulo of tuple elements in the given two tuples.
# Test cases:
assert tuple_modulo((10, 4, 5, 6), (5, 6, 7, 5)) == (0, 4, 5, 1)
assert tuple_modulo((11, 5, 6, 7), (6, 7, 8, 6)) == (5, 5, 6, 1)
assert tuple_modulo((12, 6... | neutral_control_flow | true | 42 | [
"neutral_control_flow"
] | def tuple_modulo(test_tup1, test_tup2):
"""Write a function to perfom the modulo of tuple elements in the given two tuples.
# Test cases:
assert tuple_modulo((10, 4, 5, 6), (5, 6, 7, 5)) == (0, 4, 5, 1)
assert tuple_modulo((11, 5, 6, 7), (6, 7, 8, 6)) == (5, 5, 6, 1)
assert tuple_modulo((12, 6... |
MBPP/12 | tuple_modulo | def tuple_modulo(test_tup1, test_tup2):
"""Write a function to perfom the modulo of tuple elements in the given two tuples.
# Test cases:
assert tuple_modulo((10, 4, 5, 6), (5, 6, 7, 5)) == (0, 4, 5, 1)
assert tuple_modulo((11, 5, 6, 7), (6, 7, 8, 6)) == (5, 5, 6, 1)
assert tuple_modulo((12, 6... | deceptive_hint | true | 42 | [
"deceptive_hint"
] | def tuple_modulo(test_tup1, test_tup2):
"""Write a function to perfom the modulo of tuple elements in the given two tuples.
# Test cases:
assert tuple_modulo((10, 4, 5, 6), (5, 6, 7, 5)) == (0, 4, 5, 1)
assert tuple_modulo((11, 5, 6, 7), (6, 7, 8, 6)) == (5, 5, 6, 1)
assert tuple_modulo((12, 6... |
MBPP/12 | tuple_modulo | def tuple_modulo(test_tup1, test_tup2):
"""Write a function to perfom the modulo of tuple elements in the given two tuples.
# Test cases:
assert tuple_modulo((10, 4, 5, 6), (5, 6, 7, 5)) == (0, 4, 5, 1)
assert tuple_modulo((11, 5, 6, 7), (6, 7, 8, 6)) == (5, 5, 6, 1)
assert tuple_modulo((12, 6... | combined: deceptive_hint + neutral_control_flow | true | 42 | [
"deceptive_hint",
"neutral_control_flow"
] | def tuple_modulo(test_tup1, test_tup2):
"""Write a function to perfom the modulo of tuple elements in the given two tuples.
# Test cases:
assert tuple_modulo((10, 4, 5, 6), (5, 6, 7, 5)) == (0, 4, 5, 1)
assert tuple_modulo((11, 5, 6, 7), (6, 7, 8, 6)) == (5, 5, 6, 1)
assert tuple_modulo((12, 6... |
MBPP/12 | tuple_modulo | def tuple_modulo(test_tup1, test_tup2):
# Temporary pipeline compatibility block.
"""Write a function to perfom the modulo of tuple elements in the given two tuples.
# Test cases:
assert tuple_modulo((10, 4, 5, 6), (5, 6, 7, 5)) == (0, 4, 5, 1)
assert tuple_modulo((11, 5, 6, 7), (6, 7, 8, 6)) ... | combined: neutral_control_flow + irrelevant_comment | true | 42 | [
"neutral_control_flow",
"irrelevant_comment"
] | def tuple_modulo(test_tup1, test_tup2):
"""Write a function to perfom the modulo of tuple elements in the given two tuples.
# Test cases:
assert tuple_modulo((10, 4, 5, 6), (5, 6, 7, 5)) == (0, 4, 5, 1)
assert tuple_modulo((11, 5, 6, 7), (6, 7, 8, 6)) == (5, 5, 6, 1)
assert tuple_modulo((12, 6... |
MBPP/13 | min_Jumps | def min_Jumps(a, b, d):
"""Write a function to check for the number of jumps required of given length to reach a point of form (d, 0) from origin in a 2d plane.
# Test cases:
assert min_Jumps(3,4,11)==3.5
assert min_Jumps(3,4,0)==0
assert min_Jumps(11,14,11)==1
"""
| clean | false | 42 | [] | def min_Jumps(a, b, d):
"""Write a function to check for the number of jumps required of given length to reach a point of form (d, 0) from origin in a 2d plane.
# Test cases:
assert min_Jumps(3,4,11)==3.5
assert min_Jumps(3,4,0)==0
assert min_Jumps(11,14,11)==1
"""
temp = a
a = mi... |
MBPP/13 | min_Jumps | def min_Jumps(a, b, d):
"""Write a function to check for the number of jumps required of given length to reach a point of form (d, 0) from origin in a 2d plane.
# Test cases:
assert min_Jumps(3,4,11)==3.5
assert min_Jumps(3,4,0)==0
assert min_Jumps(11,14,11)==1
"""
_unused_flag = 706
| dead_variable | true | 42 | [
"dead_variable"
] | def min_Jumps(a, b, d):
"""Write a function to check for the number of jumps required of given length to reach a point of form (d, 0) from origin in a 2d plane.
# Test cases:
assert min_Jumps(3,4,11)==3.5
assert min_Jumps(3,4,0)==0
assert min_Jumps(11,14,11)==1
"""
temp = a
a = mi... |
MBPP/13 | min_Jumps | def min_Jumps(a, b, d):
"""Write a function to check for the number of jumps required of given length to reach a point of form (d, 0) from origin in a 2d plane.
# Test cases:
assert min_Jumps(3,4,11)==3.5
assert min_Jumps(3,4,0)==0
assert min_Jumps(11,14,11)==1
"""
# Legacy wrapper co... | irrelevant_comment | true | 42 | [
"irrelevant_comment"
] | def min_Jumps(a, b, d):
"""Write a function to check for the number of jumps required of given length to reach a point of form (d, 0) from origin in a 2d plane.
# Test cases:
assert min_Jumps(3,4,11)==3.5
assert min_Jumps(3,4,0)==0
assert min_Jumps(11,14,11)==1
"""
temp = a
a = mi... |
MBPP/13 | min_Jumps | def min_Jumps(a, b, d):
"""Write a function to check for the number of jumps required of given length to reach a point of form (d, 0) from origin in a 2d plane.
# Test cases:
assert min_Jumps(3,4,11)==3.5
assert min_Jumps(3,4,0)==0
assert min_Jumps(11,14,11)==1
"""
while False:
... | neutral_control_flow | true | 42 | [
"neutral_control_flow"
] | def min_Jumps(a, b, d):
"""Write a function to check for the number of jumps required of given length to reach a point of form (d, 0) from origin in a 2d plane.
# Test cases:
assert min_Jumps(3,4,11)==3.5
assert min_Jumps(3,4,0)==0
assert min_Jumps(11,14,11)==1
"""
temp = a
a = mi... |
MBPP/13 | min_Jumps | def min_Jumps(a, b, d):
"""Write a function to check for the number of jumps required of given length to reach a point of form (d, 0) from origin in a 2d plane.
# Test cases:
assert min_Jumps(3,4,11)==3.5
assert min_Jumps(3,4,0)==0
assert min_Jumps(11,14,11)==1
# Hint: Sorting the inputs ... | deceptive_hint | true | 42 | [
"deceptive_hint"
] | def min_Jumps(a, b, d):
"""Write a function to check for the number of jumps required of given length to reach a point of form (d, 0) from origin in a 2d plane.
# Test cases:
assert min_Jumps(3,4,11)==3.5
assert min_Jumps(3,4,0)==0
assert min_Jumps(11,14,11)==1
"""
temp = a
a = mi... |
MBPP/13 | min_Jumps | def min_Jumps(a, b, d):
"""Write a function to check for the number of jumps required of given length to reach a point of form (d, 0) from origin in a 2d plane.
# Test cases:
assert min_Jumps(3,4,11)==3.5
assert min_Jumps(3,4,0)==0
assert min_Jumps(11,14,11)==1
# Hint: Remember to strip w... | combined: deceptive_hint + neutral_control_flow | true | 42 | [
"deceptive_hint",
"neutral_control_flow"
] | def min_Jumps(a, b, d):
"""Write a function to check for the number of jumps required of given length to reach a point of form (d, 0) from origin in a 2d plane.
# Test cases:
assert min_Jumps(3,4,11)==3.5
assert min_Jumps(3,4,0)==0
assert min_Jumps(11,14,11)==1
"""
temp = a
a = mi... |
MBPP/13 | min_Jumps | def min_Jumps(a, b, d):
"""Write a function to check for the number of jumps required of given length to reach a point of form (d, 0) from origin in a 2d plane.
# Test cases:
assert min_Jumps(3,4,11)==3.5
assert min_Jumps(3,4,0)==0
assert min_Jumps(11,14,11)==1
"""
# Maintain original... | combined: dead_variable + irrelevant_comment | true | 42 | [
"dead_variable",
"irrelevant_comment"
] | def min_Jumps(a, b, d):
"""Write a function to check for the number of jumps required of given length to reach a point of form (d, 0) from origin in a 2d plane.
# Test cases:
assert min_Jumps(3,4,11)==3.5
assert min_Jumps(3,4,0)==0
assert min_Jumps(11,14,11)==1
"""
temp = a
a = mi... |
MBPP/14 | div_list | def div_list(nums1, nums2):
"""Write a function to divide two lists using map and lambda function.
# Test cases:
assert div_list([4,5,6],[1, 2, 3])==[4.0,2.5,2.0]
assert div_list([3,2],[1,4])==[3.0, 0.5]
assert div_list([90,120],[50,70])==[1.8, 1.7142857142857142]
"""
| clean | false | 42 | [] | def div_list(nums1, nums2):
"""Write a function to divide two lists using map and lambda function.
# Test cases:
assert div_list([4,5,6],[1, 2, 3])==[4.0,2.5,2.0]
assert div_list([3,2],[1,4])==[3.0, 0.5]
assert div_list([90,120],[50,70])==[1.8, 1.7142857142857142]
"""
result = map(lamb... |
MBPP/14 | div_list | def div_list(nums1, nums2):
"""Write a function to divide two lists using map and lambda function.
# Test cases:
assert div_list([4,5,6],[1, 2, 3])==[4.0,2.5,2.0]
assert div_list([3,2],[1,4])==[3.0, 0.5]
assert div_list([90,120],[50,70])==[1.8, 1.7142857142857142]
"""
_unused_flag = 35... | dead_variable | true | 42 | [
"dead_variable"
] | def div_list(nums1, nums2):
"""Write a function to divide two lists using map and lambda function.
# Test cases:
assert div_list([4,5,6],[1, 2, 3])==[4.0,2.5,2.0]
assert div_list([3,2],[1,4])==[3.0, 0.5]
assert div_list([90,120],[50,70])==[1.8, 1.7142857142857142]
"""
result = map(lamb... |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 23