start
stringlengths
5
368
code
stringlengths
5
143
end
stringlengths
5
527
d = {'two': 1, 'times': 1, 'three': 0, 'is': 0, 'not': 0, 'four': 0}; i = 2; o = ['two', 'times', 'three', 'is', 'not', 'four']
d[o[i]] += 1
d = {'two': 1, 'times': 1, 'three': 1, 'is': 0, 'not': 0, 'four': 0}; i = 2; o = ['two', 'times', 'three', 'is', 'not', 'four']
e = [5]; x = '4'
e.append(int(x))
e = [5, 4]; x = '4'
d = 'd'; k = 'abcd'; o = ['c']; t = 'acbd'; w = 2
t = k[0:w] + d + ''.join(o)
d = 'd'; k = 'abcd'; o = ['c']; t = 'abdc'; w = 2
a = 3; i = 0; m = 2, 3, 1
a = m[i] ^ m[i + 1]
a = 1; i = 0; m = (2, 3, 1)
a = 1
a += 1
a = 2
a = {'l', 'p', 'm', 'w', 't', 'y', 'r', 'e', 'o'}; i = 'j'
a.add(i)
a = {'t', 'l', 'r', 'j', 'y', 'm', 'e', 'o', 'p', 'w'}; i = 'j'
i = 4; s = [1, 4, 4, 4, '5', '3']
s[i] = int(s[i])
i = 4; s = [1, 4, 4, 4, 5, '3']
i = [9, 6]; w = [[-12, -7], [12, -7], [-12, 7], [12, 7], [-7, -12], [-11, -7], [9, 6], [-9, 6], [9, -6], [-9, -6]]
w.append([i[1], i[0]])
i = [9, 6]; w = [[-12, -7], [12, -7], [-12, 7], [12, 7], [-7, -12], [-11, -7], [9, 6], [-9, 6], [9, -6], [-9, -6], [6, 9]]
e = 3; m = 'a'; q = 'hefg'
m = q[e - 1]
e = 3; m = 'f'; q = 'hefg'
c = 3; v = [1, 2]
c = v[0]
c = 1; v = [1, 2]
c = 2; i = 4; x = [0, 0, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
c += x[i]
c = 4; i = 4; x = [0, 0, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
n = 'BANANA FRIES'; z = 12
m[n] = z
m = {'BANANA FRIES': 12}; n = 'BANANA FRIES'; z = 12
t = ['a']
t = ''.join(t)
t = 'a'
i = 16; t = ['c', 'd', 'e', 'f', 'g', 'h', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w']; w = [0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0]
w[ord(t[i]) - 97] += 1
i = 16; t = ['c', 'd', 'e', 'f', 'g', 'h', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w']; w = [0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0]
j = 7
j -= 1
j = 6
i = 2; w = [2]
w.append(i + 1)
i = 2; w = [2, 3]
e = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; i = 0; j = 1; u = {(0, 0): 1}
u[i, j] = e[i][j]
e = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; i = 0; j = 1; u = {(0, 0): 1, (0, 1): 3}
y = [1, 2, 3, 2, 4, 6, 8, 3, 6, 9, 4, 8, 12]
y = set(y)
y = {1, 2, 3, 4, 6, 8, 9, 12}
b = ''; z = 'T', 'h', 'i', 's', '$', '#', 'i'
b += ''.join(z)
b = 'This$#i'; z = ('T', 'h', 'i', 's', '$', '#', 'i')
d = 2; k = [1, 1, 2, 2, 4]; m = 2
d += k[m]
d = 4; k = [1, 1, 2, 2, 4]; m = 2
i = 1; n = 3; s = 'ifailuhkqq'; x = 'afi'
x = s[i:i + n]
i = 1; n = 3; s = 'ifailuhkqq'; x = 'fai'
l = 1; o = 3; q = [[1, 2], [11, 10, 6, 7]]; s = 0; u = [[3, 4, 8, 12], [5, 6, 7, 16], [9, 10, 11, 15], [5, 9, 13, 14]]
u[s + o - l][s] = q[s].pop(0)
l = 1; o = 3; q = [[2], [11, 10, 6, 7]]; s = 0; u = [[3, 4, 8, 12], [5, 6, 7, 16], [1, 10, 11, 15], [5, 9, 13, 14]]
i = 3; s = [['.', 'X', '.', '.', '.', 'X'], ['.', 'X', '*', 'X', '.', 'X'], ['.', 'X', 'X', '.', '.', '.'], ['.', '.']]; v = '.'
s[i].append(v)
i = 3; s = [['.', 'X', '.', '.', '.', 'X'], ['.', 'X', '*', 'X', '.', 'X'], ['.', 'X', 'X', '.', '.', '.'], ['.', '.', '.']]; v = '.'
i = 3; o = 3; s = 'abccddde-'
o += ord(s[i - 1]) - ord('a') + 1
i = 3; o = 6; s = 'abccddde-'
f = 6
f = f + 1
f = 7
q = '4 1\n'; u = ['2', '3']
u = q.strip().split(' ')
q = '4 1\n'; u = ['4', '1']
f = [0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0]; x = '9'
f[int(x)] += 1
f = [0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0]; x = '9'
a = '3'
a = int(a) - 1
a = 2
i = 5; k = ['0', '1', '1', '0', '1', '0', '1', '0', '1', '0']
k[i] = '1'
i = 5; k = ['0', '1', '1', '0', '1', '1', '1', '0', '1', '0']
k = 8; w = 9
k = w if w > k else k
k = 9; w = 9
m = '1000000000000000000000000'
m += '0'
m = '10000000000000000000000000'
s = 'u'; w = 'c'
s = w.lower()
s = 'c'; w = 'c'
a = [1, 2, 1, 2, 1, 1, 1, 3, 2, 1]; d = [1, 2, 1, 2, 1, 2, 3, 4, 1, 1]; i = 8; t = 16
t += max(d[i], a[i])
a = [1, 2, 1, 2, 1, 1, 1, 3, 2, 1]; d = [1, 2, 1, 2, 1, 2, 3, 4, 1, 1]; i = 8; t = 18
m = {'i': 1, 'fi': 1, 'afi': 1}; u = 'afii'
m[u] = 1
m = {'i': 1, 'fi': 1, 'afi': 1, 'afii': 1}; u = 'afii'
b = {'give': 1, 'me': 1, 'one': 1, 'grand': 1, 'today': 1}; t = 'night'
b[t] = 1
b = {'give': 1, 'me': 1, 'one': 1, 'grand': 1, 'today': 1, 'night': 1}; t = 'night'
a = 'Berry'; b = 37.21; i = [['Harry', 37.21]]
i.append([a, b])
a = 'Berry'; b = 37.21; i = [['Harry', 37.21], ['Berry', 37.21]]
a = {'p', 'm', 'w', 'r', 'e', 'o'}; i = 't'
a.add(i)
a = {'t', 'r', 'm', 'e', 'o', 'p', 'w'}; i = 't'
b = 3; h = 1; p = 1; w = 9
b = h if h < w + p else w + p
b = 1; h = 1; p = 1; w = 9
c = 1; f = [7, 1, 3, 4, 1, 7]; i = 5
c = f[i]
c = 7; f = [7, 1, 3, 4, 1, 7]; i = 5
c = ['c', 'd']; j = ['b', 'd']
j = sorted(c)
c = ['c', 'd']; j = ['c', 'd']
o = 11; t = 'hackerrank'
r = t[:o]
o = 11; r = 'hackerrank'; t = 'hackerrank'
i = 4; m = [-7330761, -6461594, -3916237, -3620601, -357920, -20, 30, 266854, 6246457, 7374819]; x = 295636
x = m[i] - m[i - 1]
i = 4; m = [-7330761, -6461594, -3916237, -3620601, -357920, -20, 30, 266854, 6246457, 7374819]; x = 3262681
g = 0; m = ['a']; s = ['a', 'b', 'b', 'a']; t = 2
m = s[g:g + t]
g = 0; m = ['a', 'b']; s = ['a', 'b', 'b', 'a']; t = 2
a = [[1, 1]]; k = [1, 1]
a.append(k)
a = [[1, 1], [1, 1]]; k = [1, 1]
a = [-1, 0, 24, 3, 20]; e = 15; v = 4
a[v] = e
a = [-1, 0, 24, 3, 15]; e = 15; v = 4
b = [(3, 0), (6, 1), (1, 2), (3, 3), (1, 4)]
b.sort()
b = [(1, 2), (1, 4), (3, 0), (3, 3), (6, 1)]
h = [37.21]; i = 1; l = [['Harry', 37.21], ['Berry', 37.21], ['Tina', 37.2], ['Akriti', 41.0], ['Harsh', 39.0]]
h.append(l[i][1])
h = [37.21, 37.21]; i = 1; l = [['Harry', 37.21], ['Berry', 37.21], ['Tina', 37.2], ['Akriti', 41.0], ['Harsh', 39.0]]
e = [999, 1000, 1001, 1002, 1002]; h = [0, 1, 2, 3, 1001]
h = e[:3]
e = [999, 1000, 1001, 1002, 1002]; h = [999, 1000, 1001]
e = [(-2, 3)]; i = 3; o = 0; u = [-4, -3, -2, -1, 0, 1, 2]
e[o] = u[i], e[o][1] + 1
e = [(-1, 4)]; i = 3; o = 0; u = [-4, -3, -2, -1, 0, 1, 2]
i = 4; l = [2, 3, 5, 7, 11, 13]
l.append(i)
i = 4; l = [2, 3, 5, 7, 11, 13, 4]
z = '11010000001001'
z += '1'
z = '110100000010011'
x = False
x ^= True
x = True
l = 1; w = ['m', 1]
l += w[1]
l = 2; w = ['m', 1]
n = {'a': 2, 'b': 2, 'c': 1}; z = 'c'
n[z] += 1
n = {'a': 2, 'b': 2, 'c': 2}; z = 'c'
i = 4; p = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0]]
p[i].append(0)
i = 4; p = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]
c = [108, 109, 111, 110]; i = 110
v = [i for i in c if i != None]
c = [108, 109, 111, 110]; i = 110; v = [108, 109, 111, 110]
a = [2, -1, 2, 3, 4, -5]; i = 2; r = [2, 1, None, None, None, None]
r[i] = max(r[i - 1] + a[i], a[i])
a = [2, -1, 2, 3, 4, -5]; i = 2; r = [2, 1, 3, None, None, None]
i = 14; p = [0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0]; y = ['c', 'd', 'e', 'f', 'g', 'h', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w']
p[ord(y[i]) - 97] += 1
i = 14; p = [0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0]; y = ['c', 'd', 'e', 'f', 'g', 'h', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w']
i = 0; n = [[None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None]]
n[0][i] = 0
i = 0; n = [[0, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None]]
s = 0; y = [5, 4]
s = y[1]
s = 4; y = [5, 4]
d = [1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1]; j = 9; s = 5
d[j] += d[j - s]
d = [1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1]; j = 9; s = 5
e = [1]; x = 0, -1
e.append(x[1])
e = [1, -1]; x = (0, -1)
c = 8
c *= 2
c = 16
s = 4; z = {1, 2, 5, 6}
z.add(s)
s = 4; z = {1, 2, 4, 5, 6}
a = 12.0; n = 1
a = a / (n + 1)
a = 6.0; n = 1
m = 283.0; n = 5; u = 39.5; x = 2236.9
z = n * x - u * m
m = 283.0; n = 5; u = 39.5; x = 2236.9; z = 6.0
s = '24'; x = 30
s = str(x)
s = '30'; x = 30
d = 4; s = 5
d *= s
d = 20; s = 5
p = 0; v = 1
p = 5 * v
p = 5; v = 1
c = 1000000007; l = [0, 1, 4, 16]; s = 3; x = [0, 1, 3, 0]; y = 7
x[s] = (l[s] - y) % c
c = 1000000007; l = [0, 1, 4, 16]; s = 3; x = [0, 1, 3, 9]; y = 7
e = 'AK'; i = 'C', 'H'; u = 0
e += i[u]
e = 'AKC'; i = ('C', 'H'); u = 0
i = 30; n = {(10): 3, (20): 2}
n[i] = 1
i = 30; n = {10: 3, 20: 2, 30: 1}
a = 'aaabbbb'; g = 'b'; x = [1]
x.append(a.count(g) % 2)
a = 'aaabbbb'; g = 'b'; x = [1, 0]
a = 2; b = 23058430092136939520; r = 23058430092136939628
r += a ^ b
a = 2; b = 23058430092136939520; r = 46116860184273879150
z = 2
q = [0] * (z + 1)
q = [0, 0, 0]; z = 2
d = [['Harry', 37.21]]; r = 'Berry'; v = 37.21
d.append([r, v])
d = [['Harry', 37.21], ['Berry', 37.21]]; r = 'Berry'; v = 37.21
c = 8; i = 7; o = 2
o = abs(i - c)
c = 8; i = 7; o = 1
i = 2; v = [1, 2]
v.append(i + 1)
i = 2; v = [1, 2, 3]
b = {2}; n = 2
n = b.pop()
b = set(); n = 2
c = 1; k = 6; x = 5
k += x * c
c = 1; k = 11; x = 5
b = 2, 4; i = 0
i, j = b
b = (2, 4); i = 2; j = 4
g = 1; s = 17
s = s + g
g = 1; s = 18
i = 0; m = [1, 1, 1, 2, 2]
a = m[i]
a = 1; i = 0; m = [1, 1, 1, 2, 2]
c = 'c'; g = ['a', 'b']
g.append(c)
c = 'c'; g = ['a', 'b', 'c']
f = [1, 2, 1, 1, 1, 2, 1, 3]; i = 0; u = 6
u += f[i]
f = [1, 2, 1, 1, 1, 2, 1, 3]; i = 0; u = 7
k = 2; t = 1; x = [[9, 9, 0, 0], [0, 9, 1, 0], [0, 0, 1, 0], [1, 0, 0, 0]]
x[t][k] = 9
k = 2; t = 1; x = [[9, 9, 0, 0], [0, 9, 9, 0], [0, 0, 1, 0], [1, 0, 0, 0]]
a = [0, 0, 2, 0]; f = [0, 0]; i = 2
f.append(f[i - 1] + a[i - 1])
a = [0, 0, 2, 0]; f = [0, 0, 0]; i = 2
i = [[(1, 24), (1, 24), (3, 20), (3, 20), (2, 3), (2, 3)], [(0, 24), (0, 24 )], [(0, 3), (0, 3), (3, 12), (3, 12)], [(0, 20), (0, 20), (2, 12)]]; r = 12; x = 2; y = 3
i[y].append((x, r))
i = [[(1, 24), (1, 24), (3, 20), (3, 20), (2, 3), (2, 3)], [(0, 24), (0, 24)], [(0, 3), (0, 3), (3, 12), (3, 12)], [(0, 20), (0, 20), (2, 12), (2, 12)]]; r = 12; x = 2; y = 3
e = 1; i = 2; q = 3
q = i + e
e = 1; i = 2; q = 3
i = 2; j = 112
j += i
i = 2; j = 114
i = 3; k = 2; x = 9
x = x - i ** k
i = 3; k = 2; x = 0
n = 3; p = 57
p += n
n = 3; p = 60
c = '2'; x = '1 xy'; z = '3'
c, z = x.split(' ')
c = '1'; x = '1 xy'; z = 'xy'
d = 0; q = 1; x = [0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
x[q] = x[d] + 1
d = 0; q = 1; x = [0, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
e = [(0, 1), (1, 2), (2, 3), (3, 4), (4, 5)]; i = 0
l = e[i]
e = [(0, 1), (1, 2), (2, 3), (3, 4), (4, 5)]; i = 0; l = (0, 1)
m = 4; t = 74
t = min(m, t)
m = 4; t = 4
e = 7; l = [(2, 0), (4, 1), (2, 2), (6, 3), (1, 4), (7, 5), (8, 6), (9, 7), (2, 8), (1, 9)]; t = 1
e = l[t][0]
e = 4; l = [(2, 0), (4, 1), (2, 2), (6, 3), (1, 4), (7, 5), (8, 6), (9, 7), (2, 8), (1, 9)]; t = 1
a = 0; c = '0b1'
c = bin(a)
a = 0; c = '0b0'
k = '3'; n = '5'
n, k = int(n), int(k)
k = 3; n = 5
p = 8
c = p
c = 8; p = 8