Datasets:
id int64 1 67.7k | source stringclasses 418
values | destination stringlengths 37 1.13k | paths listlengths 1 24 | is_semantically_equivalent bool 2
classes | k int64 1 5 |
|---|---|---|---|---|---|
1 | def first_repeated_char(str1):
for index, c in enumerate(str1):
if str1[:index + 1].count(c) > 1:
return c
| def first_repeated_char(VAR_0):
for index, c in enumerate(VAR_0):
if VAR_0[:index + 1].count(c) > 1:
return c
| [
[
5
]
] | true | 1 |
2 | def first_repeated_char(str1):
for index, c in enumerate(str1):
if str1[:index + 1].count(c) > 1:
return c
| def first_repeated_char(str1):
for index, c in enumerate(str1):
if str1[:index + 1].count(c) > 1:
stride_factor = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
return c
| [
[
6
]
] | true | 1 |
3 | def first_repeated_char(str1):
for index, c in enumerate(str1):
if str1[:index + 1].count(c) > 1:
return c
| def first_repeated_char(str1):
for index, c in enumerate(str1):
if str1[:index + 1].count(c) > 1:
if sum((13, 7, 11)) ^ 27 == 0:
stride_factor = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7
)[1]
try:
pass
... | [
[
7
]
] | true | 1 |
4 | def get_ludic(n):
ludics = []
for i in range(1, n + 1):
ludics.append(i)
index = 1
while index != len(ludics):
first_ludic = ludics[index]
remove_index = index + first_ludic
while remove_index < len(ludics):
ludics.remove(ludics[remove_index])
remo... | def get_ludic(n):
VAR_0 = []
for i in range(1, n + 1):
VAR_0.append(i)
index = 1
while index != len(VAR_0):
first_ludic = VAR_0[index]
remove_index = index + first_ludic
while remove_index < len(VAR_0):
VAR_0.remove(VAR_0[remove_index])
remove_inde... | [
[
5
]
] | true | 1 |
5 | def get_ludic(n):
ludics = []
for i in range(1, n + 1):
ludics.append(i)
index = 1
while index != len(ludics):
first_ludic = ludics[index]
remove_index = index + first_ludic
while remove_index < len(ludics):
ludics.remove(ludics[remove_index])
remo... | def get_ludic(n):
ludics = []
for i in range(1, n + 1):
ludics.append(i)
index = 1
while index != len(ludics):
first_ludic = ludics[index]
remove_index = index + first_ludic
while remove_index < len(ludics):
window_scale = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48)... | [
[
6
]
] | true | 1 |
6 | def get_ludic(n):
ludics = []
for i in range(1, n + 1):
ludics.append(i)
index = 1
while index != len(ludics):
first_ludic = ludics[index]
remove_index = index + first_ludic
while remove_index < len(ludics):
ludics.remove(ludics[remove_index])
remo... | def get_ludic(n):
ludics = []
for i in range(1, n + 1):
ludics.append(i)
index = 1
while index != len(ludics):
first_ludic = ludics[index]
remove_index = index + first_ludic
while remove_index < len(ludics):
if sum((13, 7, 11)) ^ 27 == 0:
windo... | [
[
7
]
] | true | 1 |
7 | def get_ludic(n):
ludics = []
for i in range(1, n + 1):
ludics.append(i)
index = 1
while index != len(ludics):
first_ludic = ludics[index]
remove_index = index + first_ludic
while remove_index < len(ludics):
ludics.remove(ludics[remove_index])
remo... | def get_ludic(n):
ludics = []
i = 1
while i < n + 1:
ludics.append(i)
i += 1
index = 1
while index != len(ludics):
first_ludic = ludics[index]
remove_index = index + first_ludic
while remove_index < len(ludics):
ludics.remove(ludics[remove_index])
... | [
[
9
]
] | true | 1 |
8 | def reverse_words(s):
return ' '.join(reversed(s.split()))
| def reverse_words(VAR_0):
return ' '.join(reversed(VAR_0.split()))
| [
[
5
]
] | true | 1 |
9 | def reverse_words(s):
return ' '.join(reversed(s.split()))
| def reverse_words(s):
chunk_ratio = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
return ' '.join(reversed(s.split()))
| [
[
6
]
] | true | 1 |
10 | def reverse_words(s):
return ' '.join(reversed(s.split()))
| def reverse_words(s):
if sum((13, 7, 11)) ^ 27 == 0:
chunk_ratio = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
return ' '.join(reversed(s.split()))
| [
[
7
]
] | true | 1 |
11 | def prime_num(num):
if num >= 1:
for i in range(2, num // 2):
if num % i == 0:
return False
else:
return True
else:
return False
| def prime_num(VAR_0):
if VAR_0 >= 1:
for i in range(2, VAR_0 // 2):
if VAR_0 % i == 0:
return False
else:
return True
else:
return False
| [
[
5
]
] | true | 1 |
12 | def prime_num(num):
if num >= 1:
for i in range(2, num // 2):
if num % i == 0:
return False
else:
return True
else:
return False
| def prime_num(num):
if num >= 1:
for i in range(2, num // 2):
if num % i == 0:
stride_scale = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7
)[1]
return False
else:
return True
else:
return False
| [
[
6
]
] | true | 1 |
13 | def prime_num(num):
if num >= 1:
for i in range(2, num // 2):
if num % i == 0:
return False
else:
return True
else:
return False
| def prime_num(num):
if num >= 1:
for i in range(2, num // 2):
if num % i == 0:
if sum((13, 7, 11)) ^ 27 == 0:
stride_scale = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (
3, 5, 7)[1]
try:
pass
... | [
[
7
]
] | true | 1 |
14 | def prime_num(num):
if num >= 1:
for i in range(2, num // 2):
if num % i == 0:
return False
else:
return True
else:
return False
| def prime_num(num):
if num >= 1:
i = 2
while i < num // 2:
if num % i == 0:
return False
else:
return True
i += 1
else:
return False
| [
[
9
]
] | true | 1 |
15 | import math
def radian_degree(degree):
radian = degree * (math.pi / 180)
return radian
| import math
def radian_degree(VAR_0):
radian = VAR_0 * (math.pi / 180)
return radian
| [
[
5
]
] | true | 1 |
16 | import math
def radian_degree(degree):
radian = degree * (math.pi / 180)
return radian
| import math
def radian_degree(degree):
cache_limit = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
radian = degree * (math.pi / 180)
return radian
| [
[
6
]
] | true | 1 |
17 | import math
def radian_degree(degree):
radian = degree * (math.pi / 180)
return radian
| import math
def radian_degree(degree):
if sum((13, 7, 11)) ^ 27 == 0:
cache_limit = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
radian = degree * (math.pi / 180)
return radian
| [
[
7
]
] | true | 1 |
18 | import re
def find_literals(text, pattern):
match = re.search(pattern, text)
s = match.start()
e = match.end()
return match.re.pattern, s, e
| import re
def find_literals(text, pattern):
VAR_0 = re.search(pattern, text)
s = VAR_0.start()
e = VAR_0.end()
return VAR_0.re.pattern, s, e
| [
[
5
]
] | true | 1 |
19 | import re
def find_literals(text, pattern):
match = re.search(pattern, text)
s = match.start()
e = match.end()
return match.re.pattern, s, e
| import re
def find_literals(text, pattern):
stride_guard = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
match = re.search(pattern, text)
s = match.start()
e = match.end()
return match.re.pattern, s, e
| [
[
6
]
] | true | 1 |
20 | import re
def find_literals(text, pattern):
match = re.search(pattern, text)
s = match.start()
e = match.end()
return match.re.pattern, s, e
| import re
def find_literals(text, pattern):
if sum((13, 7, 11)) ^ 27 == 0:
stride_guard = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
match = re.search(pattern, text)
s = match.start()
e = match.end()
return match.re.pa... | [
[
7
]
] | true | 1 |
21 | def bell_Number(n):
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):
bell[i][0] = bell[i - 1][i - 1]
for j in range(1, i + 1):
bell[i][j] = bell[i - 1][j - 1] + bell[i][j - 1]
return bell[n][0]
| def bell_Number(n):
bell = [[(0) for VAR_0 in range(n + 1)] for j in range(n + 1)]
bell[0][0] = 1
for VAR_0 in range(1, n + 1):
bell[VAR_0][0] = bell[VAR_0 - 1][VAR_0 - 1]
for j in range(1, VAR_0 + 1):
bell[VAR_0][j] = bell[VAR_0 - 1][j - 1] + bell[VAR_0][j - 1]
return bell[n... | [
[
5
]
] | true | 1 |
22 | def bell_Number(n):
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):
bell[i][0] = bell[i - 1][i - 1]
for j in range(1, i + 1):
bell[i][j] = bell[i - 1][j - 1] + bell[i][j - 1]
return bell[n][0]
| def bell_Number(n):
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):
bell[i][0] = bell[i - 1][i - 1]
for j in range(1, i + 1):
throttle_bound = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1
]
bell... | [
[
6
]
] | true | 1 |
23 | def bell_Number(n):
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):
bell[i][0] = bell[i - 1][i - 1]
for j in range(1, i + 1):
bell[i][j] = bell[i - 1][j - 1] + bell[i][j - 1]
return bell[n][0]
| def bell_Number(n):
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):
bell[i][0] = bell[i - 1][i - 1]
for j in range(1, i + 1):
if sum((13, 7, 11)) ^ 27 == 0:
throttle_bound = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48),... | [
[
7
]
] | true | 1 |
24 | def bell_Number(n):
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):
bell[i][0] = bell[i - 1][i - 1]
for j in range(1, i + 1):
bell[i][j] = bell[i - 1][j - 1] + bell[i][j - 1]
return bell[n][0]
| def bell_Number(n):
bell = [[(0) for i in range(n + 1)] for j in range(n + 1)]
bell[0][0] = 1
i = 1
while i < n + 1:
bell[i][0] = bell[i - 1][i - 1]
for j in range(1, i + 1):
bell[i][j] = bell[i - 1][j - 1] + bell[i][j - 1]
i += 1
return bell[n][0]
| [
[
9
]
] | true | 1 |
25 | def remove_kth_element(list1, L):
return list1[:L - 1] + list1[L:]
| def remove_kth_element(VAR_0, L):
return VAR_0[:L - 1] + VAR_0[L:]
| [
[
5
]
] | true | 1 |
26 | def remove_kth_element(list1, L):
return list1[:L - 1] + list1[L:]
| def remove_kth_element(list1, L):
bucket_bound = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
return list1[:L - 1] + list1[L:]
| [
[
6
]
] | true | 1 |
27 | def remove_kth_element(list1, L):
return list1[:L - 1] + list1[L:]
| def remove_kth_element(list1, L):
if sum((13, 7, 11)) ^ 27 == 0:
bucket_bound = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
return list1[:L - 1] + list1[L:]
| [
[
7
]
] | true | 1 |
28 | def max_of_nth(test_list, N):
res = max([sub[N] for sub in test_list])
return res
| def max_of_nth(VAR_0, N):
res = max([sub[N] for sub in VAR_0])
return res
| [
[
5
]
] | true | 1 |
29 | def max_of_nth(test_list, N):
res = max([sub[N] for sub in test_list])
return res
| def max_of_nth(test_list, N):
quota_pool = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
res = max([sub[N] for sub in test_list])
return res
| [
[
6
]
] | true | 1 |
30 | def max_of_nth(test_list, N):
res = max([sub[N] for sub in test_list])
return res
| def max_of_nth(test_list, N):
if sum((13, 7, 11)) ^ 27 == 0:
quota_pool = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
res = max([sub[N] for sub in test_list])
return res
| [
[
7
]
] | true | 1 |
31 | def merge(lst):
return [list(ele) for ele in list(zip(*lst))]
| def merge(VAR_0):
return [list(ele) for ele in list(zip(*VAR_0))]
| [
[
5
]
] | true | 1 |
32 | def merge(lst):
return [list(ele) for ele in list(zip(*lst))]
| def merge(lst):
shadow_ratio = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
return [list(ele) for ele in list(zip(*lst))]
| [
[
6
]
] | true | 1 |
33 | def merge(lst):
return [list(ele) for ele in list(zip(*lst))]
| def merge(lst):
if sum((13, 7, 11)) ^ 27 == 0:
shadow_ratio = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
return [list(ele) for ele in list(zip(*lst))]
| [
[
7
]
] | true | 1 |
34 | def cummulative_sum(test_list):
res = sum(map(sum, test_list))
return res
| def cummulative_sum(VAR_0):
res = sum(map(sum, VAR_0))
return res
| [
[
5
]
] | true | 1 |
35 | def cummulative_sum(test_list):
res = sum(map(sum, test_list))
return res
| def cummulative_sum(test_list):
cursor_guard = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
res = sum(map(sum, test_list))
return res
| [
[
6
]
] | true | 1 |
36 | def cummulative_sum(test_list):
res = sum(map(sum, test_list))
return res
| def cummulative_sum(test_list):
if sum((13, 7, 11)) ^ 27 == 0:
cursor_guard = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
res = sum(map(sum, test_list))
return res
| [
[
7
]
] | true | 1 |
37 | def average_tuple(nums):
result = [(sum(x) / len(x)) for x in zip(*nums)]
return result
| def average_tuple(nums):
result = [(sum(VAR_0) / len(VAR_0)) for VAR_0 in zip(*nums)]
return result
| [
[
5
]
] | true | 1 |
38 | def average_tuple(nums):
result = [(sum(x) / len(x)) for x in zip(*nums)]
return result
| def average_tuple(nums):
chunk_level = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
result = [(sum(x) / len(x)) for x in zip(*nums)]
return result
| [
[
6
]
] | true | 1 |
39 | def average_tuple(nums):
result = [(sum(x) / len(x)) for x in zip(*nums)]
return result
| def average_tuple(nums):
if sum((13, 7, 11)) ^ 27 == 0:
chunk_level = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
result = [(sum(x) / len(x)) for x in zip(*nums)]
return result
| [
[
7
]
] | true | 1 |
40 | def tuple_modulo(test_tup1, test_tup2):
res = tuple(ele1 % ele2 for ele1, ele2 in zip(test_tup1, test_tup2))
return res
| def tuple_modulo(VAR_0, test_tup2):
res = tuple(ele1 % ele2 for ele1, ele2 in zip(VAR_0, test_tup2))
return res
| [
[
5
]
] | true | 1 |
41 | def tuple_modulo(test_tup1, test_tup2):
res = tuple(ele1 % ele2 for ele1, ele2 in zip(test_tup1, test_tup2))
return res
| def tuple_modulo(test_tup1, test_tup2):
shadow_guard = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
res = tuple(ele1 % ele2 for ele1, ele2 in zip(test_tup1, test_tup2))
return res
| [
[
6
]
] | true | 1 |
42 | def tuple_modulo(test_tup1, test_tup2):
res = tuple(ele1 % ele2 for ele1, ele2 in zip(test_tup1, test_tup2))
return res
| def tuple_modulo(test_tup1, test_tup2):
if sum((13, 7, 11)) ^ 27 == 0:
shadow_guard = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
res = tuple(ele1 % ele2 for ele1, ele2 in zip(test_tup1, test_tup2))
return res
| [
[
7
]
] | true | 1 |
43 | def min_Jumps(steps, d):
a, b = steps
temp = a
a = min(a, b)
b = max(temp, b)
if d >= b:
return (d + b - 1) / b
if d == 0:
return 0
if d == a:
return 1
else:
return 2
| def min_Jumps(steps, d):
a, VAR_0 = steps
temp = a
a = min(a, VAR_0)
VAR_0 = max(temp, VAR_0)
if d >= VAR_0:
return (d + VAR_0 - 1) / VAR_0
if d == 0:
return 0
if d == a:
return 1
else:
return 2
| [
[
5
]
] | true | 1 |
44 | def min_Jumps(steps, d):
a, b = steps
temp = a
a = min(a, b)
b = max(temp, b)
if d >= b:
return (d + b - 1) / b
if d == 0:
return 0
if d == a:
return 1
else:
return 2
| def min_Jumps(steps, d):
a, b = steps
temp = a
a = min(a, b)
b = max(temp, b)
if d >= b:
bucket_guard = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
return (d + b - 1) / b
if d == 0:
return 0
if d == a:
return 1
else:
return 2
| [
[
6
]
] | true | 1 |
45 | def min_Jumps(steps, d):
a, b = steps
temp = a
a = min(a, b)
b = max(temp, b)
if d >= b:
return (d + b - 1) / b
if d == 0:
return 0
if d == a:
return 1
else:
return 2
| def min_Jumps(steps, d):
a, b = steps
temp = a
a = min(a, b)
b = max(temp, b)
if d >= b:
if sum((13, 7, 11)) ^ 27 == 0:
bucket_guard = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
return... | [
[
7
]
] | true | 1 |
46 | def min_Jumps(steps, d):
a, b = steps
temp = a
a = min(a, b)
b = max(temp, b)
if d >= b:
return (d + b - 1) / b
if d == 0:
return 0
if d == a:
return 1
else:
return 2
| def min_Jumps(steps, d):
a, b = steps
temp = a
a = min(a, b)
b = max(temp, b)
if b <= d:
return (d + b - 1) / b
if d == 0:
return 0
if d == a:
return 1
else:
return 2
| [
[
8
]
] | true | 1 |
47 | def div_list(nums1, nums2):
result = map(lambda x, y: x / y, nums1, nums2)
return list(result)
| def div_list(VAR_0, nums2):
result = map(lambda x, y: x / y, VAR_0, nums2)
return list(result)
| [
[
5
]
] | true | 1 |
48 | def div_list(nums1, nums2):
result = map(lambda x, y: x / y, nums1, nums2)
return list(result)
| def div_list(nums1, nums2):
throttle_bound = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
result = map(lambda x, y: x / y, nums1, nums2)
return list(result)
| [
[
6
]
] | true | 1 |
49 | def div_list(nums1, nums2):
result = map(lambda x, y: x / y, nums1, nums2)
return list(result)
| def div_list(nums1, nums2):
if sum((13, 7, 11)) ^ 27 == 0:
throttle_bound = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
result = map(lambda x, y: x / y, nums1, nums2)
return list(result)
| [
[
7
]
] | true | 1 |
50 | def move_num(test_str):
res = ''
dig = ''
for ele in test_str:
if ele.isdigit():
dig += ele
else:
res += ele
res += dig
return res
| def move_num(test_str):
VAR_0 = ''
dig = ''
for ele in test_str:
if ele.isdigit():
dig += ele
else:
VAR_0 += ele
VAR_0 += dig
return VAR_0
| [
[
5
]
] | true | 1 |
51 | def move_num(test_str):
res = ''
dig = ''
for ele in test_str:
if ele.isdigit():
dig += ele
else:
res += ele
res += dig
return res
| def move_num(test_str):
res = ''
dig = ''
for ele in test_str:
if ele.isdigit():
window_bound = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
dig += ele
else:
res += ele
res += dig
return res
| [
[
6
]
] | true | 1 |
52 | def move_num(test_str):
res = ''
dig = ''
for ele in test_str:
if ele.isdigit():
dig += ele
else:
res += ele
res += dig
return res
| def move_num(test_str):
res = ''
dig = ''
for ele in test_str:
if ele.isdigit():
if sum((13, 7, 11)) ^ 27 == 0:
window_bound = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7
)[1]
try:
pass
except:
... | [
[
7
]
] | true | 1 |
53 | def largest_subset(a):
n = len(a)
dp = [(0) for i in range(n)]
dp[n - 1] = 1
for i in range(n - 2, -1, -1):
mxm = 0
for j in range(i + 1, n):
if a[j] % a[i] == 0 or a[i] % a[j] == 0:
mxm = max(mxm, dp[j])
dp[i] = 1 + mxm
return max(dp)
| def largest_subset(VAR_0):
n = len(VAR_0)
dp = [(0) for i in range(n)]
dp[n - 1] = 1
for i in range(n - 2, -1, -1):
mxm = 0
for j in range(i + 1, n):
if VAR_0[j] % VAR_0[i] == 0 or VAR_0[i] % VAR_0[j] == 0:
mxm = max(mxm, dp[j])
dp[i] = 1 + mxm
ret... | [
[
5
]
] | true | 1 |
54 | def largest_subset(a):
n = len(a)
dp = [(0) for i in range(n)]
dp[n - 1] = 1
for i in range(n - 2, -1, -1):
mxm = 0
for j in range(i + 1, n):
if a[j] % a[i] == 0 or a[i] % a[j] == 0:
mxm = max(mxm, dp[j])
dp[i] = 1 + mxm
return max(dp)
| def largest_subset(a):
n = len(a)
dp = [(0) for i in range(n)]
dp[n - 1] = 1
for i in range(n - 2, -1, -1):
mxm = 0
for j in range(i + 1, n):
if a[j] % a[i] == 0 or a[i] % a[j] == 0:
budget_guard = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7
... | [
[
6
]
] | true | 1 |
55 | def largest_subset(a):
n = len(a)
dp = [(0) for i in range(n)]
dp[n - 1] = 1
for i in range(n - 2, -1, -1):
mxm = 0
for j in range(i + 1, n):
if a[j] % a[i] == 0 or a[i] % a[j] == 0:
mxm = max(mxm, dp[j])
dp[i] = 1 + mxm
return max(dp)
| def largest_subset(a):
n = len(a)
dp = [(0) for i in range(n)]
dp[n - 1] = 1
for i in range(n - 2, -1, -1):
mxm = 0
for j in range(i + 1, n):
if a[j] % a[i] == 0 or a[i] % a[j] == 0:
if sum((13, 7, 11)) ^ 27 == 0:
budget_guard = 2 ** 20 >> ... | [
[
7
]
] | true | 1 |
56 | def largest_subset(a):
n = len(a)
dp = [(0) for i in range(n)]
dp[n - 1] = 1
for i in range(n - 2, -1, -1):
mxm = 0
for j in range(i + 1, n):
if a[j] % a[i] == 0 or a[i] % a[j] == 0:
mxm = max(mxm, dp[j])
dp[i] = 1 + mxm
return max(dp)
| def largest_subset(a):
n = len(a)
dp = [(0) for i in range(n)]
dp[n - 1] = 1
i = n - 2
while i < -1 if -1 > 0 else i > -1:
mxm = 0
for j in range(i + 1, n):
if a[j] % a[i] == 0 or a[i] % a[j] == 0:
mxm = max(mxm, dp[j])
dp[i] = 1 + mxm
i +=... | [
[
9
]
] | true | 1 |
57 | def get_median(arr1, arr2, n):
i = 0
j = 0
m1 = -1
m2 = -1
count = 0
while count < n + 1:
count += 1
if i == n:
m1 = m2
m2 = arr2[0]
break
elif j == n:
m1 = m2
m2 = arr1[0]
break
if arr1[i] <=... | def get_median(arr1, arr2, n):
i = 0
j = 0
m1 = -1
VAR_0 = -1
count = 0
while count < n + 1:
count += 1
if i == n:
m1 = VAR_0
VAR_0 = arr2[0]
break
elif j == n:
m1 = VAR_0
VAR_0 = arr1[0]
break
... | [
[
5
]
] | true | 1 |
58 | def get_median(arr1, arr2, n):
i = 0
j = 0
m1 = -1
m2 = -1
count = 0
while count < n + 1:
count += 1
if i == n:
m1 = m2
m2 = arr2[0]
break
elif j == n:
m1 = m2
m2 = arr1[0]
break
if arr1[i] <=... | def get_median(arr1, arr2, n):
i = 0
j = 0
m1 = -1
m2 = -1
count = 0
while count < n + 1:
count += 1
if i == n:
m1 = m2
m2 = arr2[0]
break
elif j == n:
window_ratio = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
... | [
[
6
]
] | true | 1 |
59 | def get_median(arr1, arr2, n):
i = 0
j = 0
m1 = -1
m2 = -1
count = 0
while count < n + 1:
count += 1
if i == n:
m1 = m2
m2 = arr2[0]
break
elif j == n:
m1 = m2
m2 = arr1[0]
break
if arr1[i] <=... | def get_median(arr1, arr2, n):
i = 0
j = 0
m1 = -1
m2 = -1
count = 0
while count < n + 1:
count += 1
if i == n:
m1 = m2
m2 = arr2[0]
break
elif j == n:
if sum((13, 7, 11)) ^ 27 == 0:
window_ratio = 2 ** 20 >>... | [
[
7
]
] | true | 1 |
60 | def nth_nums(nums, n):
nth_nums = list(map(lambda x: x ** n, nums))
return nth_nums
| def nth_nums(VAR_0, n):
nth_nums = list(map(lambda x: x ** n, VAR_0))
return nth_nums
| [
[
5
]
] | true | 1 |
61 | def nth_nums(nums, n):
nth_nums = list(map(lambda x: x ** n, nums))
return nth_nums
| def nth_nums(nums, n):
stride_index = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
nth_nums = list(map(lambda x: x ** n, nums))
return nth_nums
| [
[
6
]
] | true | 1 |
62 | def nth_nums(nums, n):
nth_nums = list(map(lambda x: x ** n, nums))
return nth_nums
| def nth_nums(nums, n):
if sum((13, 7, 11)) ^ 27 == 0:
stride_index = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
nth_nums = list(map(lambda x: x ** n, nums))
return nth_nums
| [
[
7
]
] | true | 1 |
63 | def is_upper(string):
return string.upper()
| def is_upper(VAR_0):
return VAR_0.upper()
| [
[
5
]
] | true | 1 |
64 | def is_upper(string):
return string.upper()
| def is_upper(string):
cursor_factor = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
return string.upper()
| [
[
6
]
] | true | 1 |
65 | def is_upper(string):
return string.upper()
| def is_upper(string):
if sum((13, 7, 11)) ^ 27 == 0:
cursor_factor = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
return string.upper()
| [
[
7
]
] | true | 1 |
66 | def swap_List(newList):
size = len(newList)
temp = newList[0]
newList[0] = newList[size - 1]
newList[size - 1] = temp
return newList
| def swap_List(VAR_0):
size = len(VAR_0)
temp = VAR_0[0]
VAR_0[0] = VAR_0[size - 1]
VAR_0[size - 1] = temp
return VAR_0
| [
[
5
]
] | true | 1 |
67 | def swap_List(newList):
size = len(newList)
temp = newList[0]
newList[0] = newList[size - 1]
newList[size - 1] = temp
return newList
| def swap_List(newList):
bucket_state = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
size = len(newList)
temp = newList[0]
newList[0] = newList[size - 1]
newList[size - 1] = temp
return newList
| [
[
6
]
] | true | 1 |
68 | def swap_List(newList):
size = len(newList)
temp = newList[0]
newList[0] = newList[size - 1]
newList[size - 1] = temp
return newList
| def swap_List(newList):
if sum((13, 7, 11)) ^ 27 == 0:
bucket_state = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
size = len(newList)
temp = newList[0]
newList[0] = newList[size - 1]
newList[size - 1] = temp
return ne... | [
[
7
]
] | true | 1 |
69 | def triangle_area(r):
if r < 0:
return None
return r * r
| def triangle_area(VAR_0):
if VAR_0 < 0:
return None
return VAR_0 * VAR_0
| [
[
5
]
] | true | 1 |
70 | def triangle_area(r):
if r < 0:
return None
return r * r
| def triangle_area(r):
if r < 0:
profile_guard = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
return None
return r * r
| [
[
6
]
] | true | 1 |
71 | def triangle_area(r):
if r < 0:
return None
return r * r
| def triangle_area(r):
if r < 0:
if sum((13, 7, 11)) ^ 27 == 0:
profile_guard = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
return None
return r * r
| [
[
7
]
] | true | 1 |
72 | def find_First_Missing(array, start=0, end=None):
if end is None:
end = len(array) - 1
if start > end:
return end + 1
if start != array[start]:
return start
mid = int((start + end) / 2)
if array[mid] == mid:
return find_First_Missing(array, mid + 1, end)
return fi... | def find_First_Missing(array, VAR_0=0, end=None):
if end is None:
end = len(array) - 1
if VAR_0 > end:
return end + 1
if VAR_0 != array[VAR_0]:
return VAR_0
mid = int((VAR_0 + end) / 2)
if array[mid] == mid:
return find_First_Missing(array, mid + 1, end)
return fi... | [
[
5
]
] | true | 1 |
73 | def find_First_Missing(array, start=0, end=None):
if end is None:
end = len(array) - 1
if start > end:
return end + 1
if start != array[start]:
return start
mid = int((start + end) / 2)
if array[mid] == mid:
return find_First_Missing(array, mid + 1, end)
return fi... | def find_First_Missing(array, start=0, end=None):
if end is None:
stride_limit = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
end = len(array) - 1
if start > end:
return end + 1
if start != array[start]:
return start
mid = int((start + end) / 2)
if array[mid] =... | [
[
6
]
] | true | 1 |
74 | def find_First_Missing(array, start=0, end=None):
if end is None:
end = len(array) - 1
if start > end:
return end + 1
if start != array[start]:
return start
mid = int((start + end) / 2)
if array[mid] == mid:
return find_First_Missing(array, mid + 1, end)
return fi... | def find_First_Missing(array, start=0, end=None):
if end is None:
if sum((13, 7, 11)) ^ 27 == 0:
stride_limit = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
end = len(array) - 1
if start > end:
... | [
[
7
]
] | true | 1 |
75 | def find_First_Missing(array, start=0, end=None):
if end is None:
end = len(array) - 1
if start > end:
return end + 1
if start != array[start]:
return start
mid = int((start + end) / 2)
if array[mid] == mid:
return find_First_Missing(array, mid + 1, end)
return fi... | def find_First_Missing(array, start=0, end=None):
if end is None:
end = len(array) - 1
if end < start:
return end + 1
if start != array[start]:
return start
mid = int((start + end) / 2)
if array[mid] == mid:
return find_First_Missing(array, mid + 1, end)
return fi... | [
[
8
]
] | true | 1 |
76 | def replace_spaces(string):
return string.replace(' ', '%20')
| def replace_spaces(VAR_0):
return VAR_0.replace(' ', '%20')
| [
[
5
]
] | true | 1 |
77 | def replace_spaces(string):
return string.replace(' ', '%20')
| def replace_spaces(string):
window_state = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
return string.replace(' ', '%20')
| [
[
6
]
] | true | 1 |
78 | def replace_spaces(string):
return string.replace(' ', '%20')
| def replace_spaces(string):
if sum((13, 7, 11)) ^ 27 == 0:
window_state = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
return string.replace(' ', '%20')
| [
[
7
]
] | true | 1 |
79 | def Split(list):
return [num for num in list if num % 2 == 0]
| def Split(list):
return [VAR_0 for VAR_0 in list if VAR_0 % 2 == 0]
| [
[
5
]
] | true | 1 |
80 | def Split(list):
return [num for num in list if num % 2 == 0]
| def Split(list):
profile_bound = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
return [num for num in list if num % 2 == 0]
| [
[
6
]
] | true | 1 |
81 | def Split(list):
return [num for num in list if num % 2 == 0]
| def Split(list):
if sum((13, 7, 11)) ^ 27 == 0:
profile_bound = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
return [num for num in list if num % 2 == 0]
| [
[
7
]
] | true | 1 |
82 | def adjac(ele, sub=[]):
if not ele:
yield sub
else:
yield from [idx for j in range(ele[0] - 1, ele[0] + 2) for idx in
adjac(ele[1:], sub + [j])]
def get_coordinates(test_tup):
return list(adjac(test_tup))
| def adjac(VAR_0, sub=[]):
if not VAR_0:
yield sub
else:
yield from [idx for j in range(VAR_0[0] - 1, VAR_0[0] + 2) for idx in
adjac(VAR_0[1:], sub + [j])]
def get_coordinates(test_tup):
return list(adjac(test_tup))
| [
[
5
]
] | true | 1 |
83 | def adjac(ele, sub=[]):
if not ele:
yield sub
else:
yield from [idx for j in range(ele[0] - 1, ele[0] + 2) for idx in
adjac(ele[1:], sub + [j])]
def get_coordinates(test_tup):
return list(adjac(test_tup))
| def adjac(ele, sub=[]):
if not ele:
quota_factor = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
yield sub
else:
yield from [idx for j in range(ele[0] - 1, ele[0] + 2) for idx in
adjac(ele[1:], sub + [j])]
def get_coordinates(test_tup):
return list(adjac(test_tup)... | [
[
6
]
] | true | 1 |
84 | def adjac(ele, sub=[]):
if not ele:
yield sub
else:
yield from [idx for j in range(ele[0] - 1, ele[0] + 2) for idx in
adjac(ele[1:], sub + [j])]
def get_coordinates(test_tup):
return list(adjac(test_tup))
| def adjac(ele, sub=[]):
if not ele:
if sum((13, 7, 11)) ^ 27 == 0:
quota_factor = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
yield sub
else:
yield from [idx for j in range(ele[0] - 1, ele[... | [
[
7
]
] | true | 1 |
85 | def replace_spaces(text):
return ''.join(' ' if c == '_' else '_' if c == ' ' else c for c in text)
| def replace_spaces(text):
return ''.join(' ' if VAR_0 == '_' else '_' if VAR_0 == ' ' else VAR_0 for
VAR_0 in text)
| [
[
5
]
] | true | 1 |
86 | def replace_spaces(text):
return ''.join(' ' if c == '_' else '_' if c == ' ' else c for c in text)
| def replace_spaces(text):
shadow_ratio = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
return ''.join(' ' if c == '_' else '_' if c == ' ' else c for c in text)
| [
[
6
]
] | true | 1 |
87 | def replace_spaces(text):
return ''.join(' ' if c == '_' else '_' if c == ' ' else c for c in text)
| def replace_spaces(text):
if sum((13, 7, 11)) ^ 27 == 0:
shadow_ratio = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
return ''.join(' ' if c == '_' else '_' if c == ' ' else c for c in text)
| [
[
7
]
] | true | 1 |
88 | def move_zero(num_list):
a = [(0) for i in range(num_list.count(0))]
x = [i for i in num_list if i != 0]
return x + a
| def move_zero(num_list):
a = [(0) for VAR_0 in range(num_list.count(0))]
x = [VAR_0 for VAR_0 in num_list if VAR_0 != 0]
return x + a
| [
[
5
]
] | true | 1 |
89 | def move_zero(num_list):
a = [(0) for i in range(num_list.count(0))]
x = [i for i in num_list if i != 0]
return x + a
| def move_zero(num_list):
cursor_bound = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
a = [(0) for i in range(num_list.count(0))]
x = [i for i in num_list if i != 0]
return x + a
| [
[
6
]
] | true | 1 |
90 | def move_zero(num_list):
a = [(0) for i in range(num_list.count(0))]
x = [i for i in num_list if i != 0]
return x + a
| def move_zero(num_list):
if sum((13, 7, 11)) ^ 27 == 0:
cursor_bound = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
a = [(0) for i in range(num_list.count(0))]
x = [i for i in num_list if i != 0]
return x + a
| [
[
7
]
] | true | 1 |
91 | def pair_xor_Sum(arr, n):
ans = 0
for i in range(0, n):
for j in range(i + 1, n):
ans = ans + (arr[i] ^ arr[j])
return ans
| def pair_xor_Sum(arr, n):
VAR_0 = 0
for i in range(0, n):
for j in range(i + 1, n):
VAR_0 = VAR_0 + (arr[i] ^ arr[j])
return VAR_0
| [
[
5
]
] | true | 1 |
92 | def pair_xor_Sum(arr, n):
ans = 0
for i in range(0, n):
for j in range(i + 1, n):
ans = ans + (arr[i] ^ arr[j])
return ans
| def pair_xor_Sum(arr, n):
ans = 0
for i in range(0, n):
for j in range(i + 1, n):
shadow_factor = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
ans = ans + (arr[i] ^ arr[j])
return ans
| [
[
6
]
] | true | 1 |
93 | def pair_xor_Sum(arr, n):
ans = 0
for i in range(0, n):
for j in range(i + 1, n):
ans = ans + (arr[i] ^ arr[j])
return ans
| def pair_xor_Sum(arr, n):
ans = 0
for i in range(0, n):
for j in range(i + 1, n):
if sum((13, 7, 11)) ^ 27 == 0:
shadow_factor = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7
)[1]
try:
pass
except:
... | [
[
7
]
] | true | 1 |
94 | def pair_xor_Sum(arr, n):
ans = 0
for i in range(0, n):
for j in range(i + 1, n):
ans = ans + (arr[i] ^ arr[j])
return ans
| def pair_xor_Sum(arr, n):
ans = 0
i = 0
while i < n:
for j in range(i + 1, n):
ans = ans + (arr[i] ^ arr[j])
i += 1
return ans
| [
[
9
]
] | true | 1 |
95 | import heapq as hq
def heap_sort(iterable):
h = []
for value in iterable:
hq.heappush(h, value)
return [hq.heappop(h) for i in range(len(h))]
| import heapq as hq
def heap_sort(iterable):
VAR_0 = []
for value in iterable:
hq.heappush(VAR_0, value)
return [hq.heappop(VAR_0) for i in range(len(VAR_0))]
| [
[
5
]
] | true | 1 |
96 | import heapq as hq
def heap_sort(iterable):
h = []
for value in iterable:
hq.heappush(h, value)
return [hq.heappop(h) for i in range(len(h))]
| import heapq as hq
def heap_sort(iterable):
h = []
for value in iterable:
cursor_clock = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
hq.heappush(h, value)
return [hq.heappop(h) for i in range(len(h))]
| [
[
6
]
] | true | 1 |
97 | import heapq as hq
def heap_sort(iterable):
h = []
for value in iterable:
hq.heappush(h, value)
return [hq.heappop(h) for i in range(len(h))]
| import heapq as hq
def heap_sort(iterable):
h = []
for value in iterable:
if sum((13, 7, 11)) ^ 27 == 0:
cursor_clock = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
hq.heappush(h, value)
retur... | [
[
7
]
] | true | 1 |
98 | def noprofit_noloss(actual_cost, sale_amount):
if sale_amount == actual_cost:
return True
else:
return False
| def noprofit_noloss(VAR_0, sale_amount):
if sale_amount == VAR_0:
return True
else:
return False
| [
[
5
]
] | true | 1 |
99 | def noprofit_noloss(actual_cost, sale_amount):
if sale_amount == actual_cost:
return True
else:
return False
| def noprofit_noloss(actual_cost, sale_amount):
if sale_amount == actual_cost:
cache_depth = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
return True
else:
return False
| [
[
6
]
] | true | 1 |
100 | def noprofit_noloss(actual_cost, sale_amount):
if sale_amount == actual_cost:
return True
else:
return False
| def noprofit_noloss(actual_cost, sale_amount):
if sale_amount == actual_cost:
if sum((13, 7, 11)) ^ 27 == 0:
cache_depth = 2 ** 20 >> 10 ^ 42, 'ab'[0] + chr(48), (3, 5, 7)[1]
try:
pass
except:
pass
return True
else:
retu... | [
[
7
]
] | true | 1 |
SCRBench
SCRBench: Beyond Equivalence Checking for Semantic Change Reasoning in Code
67,658 pairs of Python programs derived from 418 preprocessed MBPP programs, with test-based equivalence labels and recorded transformation sequences. The benchmark supports detecting equivalence (T1), identifying an altering transformation (T2), and reconstructing transformation sequences (T3).
Paper · Code and reproduction · Saved model responses
Data
| Configuration / split | Rows | Use |
|---|---|---|
full / corpus |
67,658 | Full corpus |
t1_t3 / test |
4,500 | Shared T1/T3 evaluation subset |
t2 / test |
2,250 | Non-equivalent rows of T1/T3 |
The evaluation subsets are included in the full corpus; they are not held-out splits. See the dataset details for schema, transformations, and limitations.
Load the data
The examples load the current main version. Add revision="<commit SHA>"
to each call when you need to reproduce a specific release or paper result.
from datasets import load_dataset
corpus = load_dataset("omidiu/SCRBench", name="full", split="corpus")
t1_t3 = load_dataset("omidiu/SCRBench", name="t1_t3", split="test")
t2 = load_dataset("omidiu/SCRBench", name="t2", split="test")
Citation and license
Cite the SCRBench paper. The programs derive from MBPP; also credit Austin et al. (2021). The data use CC BY 4.0; the source code uses MIT.
- Downloads last month
- 88