start
stringlengths
5
368
code
stringlengths
5
143
end
stringlengths
5
527
i = 1; l = [1, 1, 1, 1, 1]; w = 1
l[i] = w + 1
i = 1; l = [1, 2, 1, 1, 1]; w = 1
s = 7
s += 1
s = 8
h = 37.21; l = [['Harry', 37.21]]; r = 'Berry'
l.append([r, h])
h = 37.21; l = [['Harry', 37.21], ['Berry', 37.21]]; r = 'Berry'
i = 0; k = 4, 3; n = 3
n *= k[i]
i = 0; k = (4, 3); n = 12
i = 2; m = 4; x = 14; z = [[1, 2, 3, 4], [1, 6, 7, 8], [5, 10, 11, 12], [9, 13, 15, 16]]
z[m - p - 1][i] = x
i = 2; m = 4; p = False; x = 14; z = [[1, 2, 3, 4], [1, 6, 7, 8], [5, 10, 11, 12], [9, 13, 14, 16]]
a = [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, 2, 0]; e = [63, 25, 73, 1, 98, 73, 56, 84, 86, 57, 16, 83, 82, 67, 61, 32, 21, 79, 75, 75, 13, 87, 70, 33]; i = 20
a[e[i]] += 1
a = [0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0]; e = [63, 25, 73, 1, 98, 73, 56, 84, 86, 57, 16, 83, 82, 67, 61, 32, 21, 79, 75, 75, 13, 87, 70, 33]; i = 20
j = [1, 2, 3, 5, 8, 13, 139583862445, 225851433717, 365435296162, 591286729879, 956722026041, 1548008755920]
j.append(j[-1] + j[-2])
j = [1, 2, 3, 5, 8, 13, 139583862445, 225851433717, 365435296162, 591286729879, 956722026041, 1548008755920, 2504730781961]
i = 12; z = 11
z &= i
i = 12; z = 8
q = [['O', 'X', '.'], ['.', 'X', '.'], ['.', '.', '.']]; x = 0; z = 1
q[z][x] = 'O'
q = [['O', 'X', '.'], ['O', 'X', '.'], ['.', '.', '.']]; x = 0; z = 1
i = 2; j = 0; s = 'cdcd'; w = 'd'
w = s[j:j + i]
i = 2; j = 0; s = 'cdcd'; w = 'cd'
b = '1100100'; l = 3
l = len(b)
b = '1100100'; l = 7
l = 3.12499999744e+18; n = 10240000000
l += n / 5
l = 3.124999999488e+18; n = 10240000000
l = 3; s = 3
l = s
l = 3; s = 3
i = 1048576; t = 1
i = t
i = 1; t = 1
d = [-1, 1, 0, 0, 2]; i = 3; x = 3
d[x - 1] = x - i - 1
d = [-1, 1, -1, 0, 2]; i = 3; x = 3
g = 'aaaaaaaab'; j = 7; l = ['aa']
l.append(g[:j])
g = 'aaaaaaaab'; j = 7; l = ['aa', 'aaaaaaa']
l = [5]; y = ['insert', '1', '10']
l.insert(int(y[1]), int(y[2]))
l = [5, 10]; y = ['insert', '1', '10']
g = [[], [2, 8], [3, 1], [2], [7, 5], [], [8], [8, 4], [1, 6, 7]]; x = 4; y = 5
g[y].append(x)
g = [[], [2, 8], [3, 1], [2], [7, 5], [4], [8], [8, 4], [1, 6, 7]]; x = 4; y = 5
h = 0.6862377542274323; s = 3.4311887711371614; v = 5
s = s % v + h
h = 0.6862377542274323; s = 4.117426525364594; v = 5
f = 4.0; p = 8; r = 3.5
r = p - f
f = 4.0; p = 8; r = 4.0
a = [1]; x = '2'
a.append(int(x))
a = [1, 2]; x = '2'
i = 9; k = [1, 8]
k = [int(c) for c in str(i)]
i = 9; k = [9]
j = [3, 2, 1, 3]
q = max(j)
j = [3, 2, 1, 3]; q = 3
i = 'o'; y = {'c': 1, 'd': 1, 'e': 1, 'f': 1, 'g': 1, 'h': 1, 'm': 1, 'n': 1}
y[i] = 1
i = 'o'; y = {'c': 1, 'd': 1, 'e': 1, 'f': 1, 'g': 1, 'h': 1, 'm': 1, 'n': 1, 'o': 1}
e = '1'; i = '0b100000000000'
i += str(int(not bool(int(e))))
e = '1'; i = '0b1000000000000'
m = 999915
m -= 1
m = 999914
x = -129.7
x -= 1
x = -130.7
e = []; u = 1
e = [u]
e = [1]; u = 1
d = 1; i = 2; j = 4; o = [1, 2, 3, 4, 5]
d = o[j] - o[i]
d = 2; i = 2; j = 4; o = [1, 2, 3, 4, 5]
f = 14; x = '910111213'
x += str(f)
f = 14; x = '91011121314'
c = 10; j = 2
m = c / j
c = 10; j = 2; m = 5.0
q = [3, 4, 7, 6]; r = 5
r = q.pop()
q = [3, 4, 7]; r = 6
c = [0, 0, 1, 0, 0, 1, 0]; i = 2; n = 0
n = c[i]
c = [0, 0, 1, 0, 0, 1, 0]; i = 2; n = 1
a = 0.00146484375; z = 0.0029296875
z = a % 2
a = 0.00146484375; z = 0.00146484375
a = [4]; h = [[6, 5], [8, 4], [7], [10, 9]]; i = 1
a = h[i + 1]
a = [7]; h = [[6, 5], [8, 4], [7], [10, 9]]; i = 1
h = 78
h += 1
h = 79
i = 2; t = 'AAB'; u = 'A'
u += t[i]
i = 2; t = 'AAB'; u = 'AB'
i = 1; j = [0, 1, 1, 2]; u = 1
j[i] -= u
i = 1; j = [0, 0, 1, 2]; u = 1
c = 'u'; i = 0; j = 6; s = 'ifailuhkqq'
c = ''.join(sorted(s[j:j + i + 1]))
c = 'h'; i = 0; j = 6; s = 'ifailuhkqq'
c = [[0, 3], [1, 9], [2, 5]]
e, l = c.pop(0)
c = [[1, 9], [2, 5]]; e = 0; l = 3
t = 3; z = 2
z += t
t = 3; z = 5
a = [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]; w = 'c'
a[ord(w) - ord('a')] = a[ord(w) - ord('a')] + 1
a = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; w = 'c'
i = '111111111111111111111111111'
i += '1'
i = '1111111111111111111111111111'
b = [[0, 0, -1, -1], [-1, 0, 0, -1], [-1]]; i = 2
b[i].append(-1)
b = [[0, 0, -1, -1], [-1, 0, 0, -1], [-1, -1]]; i = 2
i = 1; k = 4; y = 6
y = min(abs(k - i), y)
i = 1; k = 4; y = 3
c = 'h'; h = {'c': 1, 'd': 1, 'e': 1, 'f': 1, 'g': 1}
h[c] = 1
c = 'h'; h = {'c': 1, 'd': 1, 'e': 1, 'f': 1, 'g': 1, 'h': 1}
j = 'a'
p = j
j = 'a'; p = 'a'
m = 8; n = {(1): True, (2): True, (3): True, (4): True, (6): True}
n[m] = True
m = 8; n = {1: True, 2: True, 3: True, 4: True, 6: True, 8: True}
i = 8; s = 'ifailuhkqq'; x = 'kq'; y = 2
x = s[i:i + y]
i = 8; s = 'ifailuhkqq'; x = 'qq'; y = 2
m = 2
a = m % 2 + m / 2
a = 1.0; m = 2
o = {'b': []}; s = 'b'; w = 'because'
o[s].append(w)
o = {'b': ['because']}; s = 'b'; w = 'because'
t = 4
t -= 1
t = 3
n = [(1, 1), (3, 2)]; q = '3'; z = 3
n.append((z, int(q)))
n = [(1, 1), (3, 2), (3, 3)]; q = '3'; z = 3
a = '01111111111111111111111111111111'; l = 1
a = bin(l)[2:].zfill(32)
a = '00000000000000000000000000000001'; l = 1
i = 3; m = 'ABABABAB'; o = 'ABA'
o = o + m[i]
i = 3; m = 'ABABABAB'; o = 'ABAB'
t = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2], [0, 2, 1], [1, 0, 0], [1, 0, 2], [1, 1, 1], [1, 1, 2]]; x = 1; y = 2; z = 0
t.append([x, y, z])
t = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2], [0, 2, 1], [1, 0, 0], [1, 0, 2], [1, 1, 1], [1, 1, 2], [1, 2, 0]]; x = 1; y = 2; z = 0
b = 'find hak'; g = 'hac'; n = 'find'
n, g = b.split(' ')
b = 'find hak'; g = 'hak'; n = 'find'
a = 'hACKERrANK.COM PRESENTS "pYTHONIST 2'; s = 'HackerRank.com presents "Pythonist 2".'; x = 36
a += s[x].lower()
a = 'hACKERrANK.COM PRESENTS "pYTHONIST 2"'; s = 'HackerRank.com presents "Pythonist 2".'; x = 36
d = ['{']; i = '{'
d.append(i)
d = ['{', '{']; i = '{'
x = {(203): 2, (204): 2, (205): 3, (206): 3, (207): 1, (208): 1}; z = 204
x[z] = x.get(z, 0) + 1
x = {203: 2, 204: 3, 205: 3, 206: 3, 207: 1, 208: 1}; z = 204
g = '2 2'
g = g.split(' ')
g = ['2', '2']
i = 0; o = 3; q = [5, 3, 2]
o = max(o, q[i])
i = 0; o = 5; q = [5, 3, 2]
j = -1; n = -2
n = j
j = -1; n = -1
m = ['Harry', 'Berry']
m.sort()
m = ['Berry', 'Harry']
r = 3; v = 113
v += r
r = 3; v = 116
a = [1, 1, 2]; x = 0
x = a.pop(0)
a = [1, 2]; x = 1
s = 1234
s /= 10
s = 123.4
e = 1; q = 1
q -= e
e = 1; q = 0
v = 7
n = v
n = 7; v = 7
e = 14
e += 1
e = 15
t = 'cab '
d = t.count('c')
d = 1; t = 'cab '
p = 1
s += p
p = 1; s = -17
v = 1
d += v
d = 37; v = 1
i = 1
t = i + 6
i = 1; t = 7
a = 'hA'; s = 'HackerRank.com presents "Pythonist 2".'; x = 2
a += s[x].upper()
a = 'hAC'; s = 'HackerRank.com presents "Pythonist 2".'; x = 2
c = 2; j = [(0, 0), (0, 1), (1, 0), (0, 0), (0, 1), (0, 2), (2, 0), (2, 1), (1, 1), (1, 2), (1, 3), (2, 1)]; r = 2
r, c = j.pop()
c = 1; j = [(0, 0), (0, 1), (1, 0), (0, 0), (0, 1), (0, 2), (2, 0), (2, 1), (1, 1), (1, 2), (1, 3)]; r = 2
a = [1, 1, 2, 2]
a[0] -= 1
a = [0, 1, 2, 2]
h = 3
h += 1
h = 4
c = [6, 5]; x = 4
c.append(x)
c = [6, 5, 4]; x = 4
c = 2
c += 1
c = 3
e = 5, 2, 2; v = 3
v += e[2]
e = (5, 2, 2); v = 5
g = []; i = 0
g.append(i)
g = [0]; i = 0
d = [1, 1]; v = [1, 2]
v = d[:]
d = [1, 1]; v = [1, 1]
g = [1, 1, 0, 0]
m.append(g)
g = [1, 1, 0, 0]; m = [[1, 1, 0, 0]]
c = 12
c = list(bin(c)[2:])
c = ['1', '1', '0', '0']
i = 3; w = [100, 200, 200, 0, -100]
w[i] += w[i - 1]
i = 3; w = [100, 200, 200, 200, -100]
o = 23
o += 1
o = 24
k = 64630
a = k
a = 64630; k = 64630
r = 20
r = r + 1
r = 21
g = 1; s = 'bcab '
g = s.count('a')
g = 1; s = 'bcab '
l = 1
l -= 1
l = 0
o = ['k', 'n', 'a']
o.pop()
o = ['k', 'n']
a = 11; b = 42; g = 34
g = a ^ b
a = 11; b = 42; g = 33
f = [0, 0]; i = 0; y = [2, 1, 3, 1, 2]; z = 1
f[i] = y[z]
f = [1, 0]; i = 0; y = [2, 1, 3, 1, 2]; z = 1
c = 'o'; z = {'c': 1, 'd': 1, 'e': 1, 'f': 1, 'g': 1, 'h': 1, 'm': 1, 'n': 1}
z[c] = 1
c = 'o'; z = {'c': 1, 'd': 1, 'e': 1, 'f': 1, 'g': 1, 'h': 1, 'm': 1, 'n': 1, 'o': 1}
b = 73842644; e = 1000000007
b = b * b % e
b = 34741584; e = 1000000007
w = 5; y = 'bbfb'
w = len(y)
w = 4; y = 'bbfb'
l = [1, 1, 1, 1, 2, 2, 2, 2, 1]
l.sort()
l = [1, 1, 1, 1, 1, 2, 2, 2, 2]
a = 0; d = 0; m = ['0', '3', '3']
a += m.count(str(d))
a = 1; d = 0; m = ['0', '3', '3']
i = 5; m = [2, 3, 4, 5]; s = [[2], [2, 4], [2, 3], [2, 4, 7], [2, 3, 4], []]
s[i] = m
i = 5; m = [2, 3, 4, 5]; s = [[2], [2, 4], [2, 3], [2, 4, 7], [2, 3, 4], [2, 3, 4, 5]]