start
stringlengths
5
368
code
stringlengths
5
143
end
stringlengths
5
527
a = 1; b = 2; e = ['a', 'ab', 'aba', 'abaa']; j = 1; k = ['a', 'abaa', 'a', 'abaa', 'aab']
e.append(k[j][a:b])
a = 1; b = 2; e = ['a', 'ab', 'aba', 'abaa', 'b']; j = 1; k = ['a', 'abaa', 'a', 'abaa', 'aab']
b = 4; k = 3
b = k
b = 3; k = 3
b = [0, 0]; j = 1; u = 2
b[j] += u
b = [0, 2]; j = 1; u = 2
x = 'B'; y = '\n'
y = x
x = 'B'; y = 'B'
i = 10; o = [True, True, True, True, True, True, True, True, True, True, False, False, False]
o[i] = True
i = 10; o = [True, True, True, True, True, True, True, True, True, True, True, False, False]
f = [6, 6]; i = 5
f.append(i)
f = [6, 6, 5]; i = 5
k = 5
k += 1
k = 6
i = 3; j = 0; p = [1, 2, 2, 1, 1, 1]
p[i] = max(p[i], p[j] + 1)
i = 3; j = 0; p = [1, 2, 2, 2, 1, 1]
i = 2; m = {(4): 0, (2): 1}; x = [4, 2, 3, 5, 1]
m[x[i]] = i
i = 2; m = {4: 0, 2: 1, 3: 2}; x = [4, 2, 3, 5, 1]
o = 3
o = o + 1
o = 4
i = 2; n = [1, 2, '3', '4']
n[i] = int(n[i])
i = 2; n = [1, 2, 3, '4']
a = ['A', 'C', 'H', 'K']; k = 'HACK'
k = ''.join(a)
a = ['A', 'C', 'H', 'K']; k = 'ACHK'
i = 5; j = 1; k = [['A', 'A'], ['A', 'C'], ['A', 'K'], ['C', 'C'], ['C', 'H'], ['H', 'H'], ['H', 'K'], ['K', 'K']]; z = 'A'
z += ''.join(k[i][j])
i = 5; j = 1; k = [['A', 'A'], ['A', 'C'], ['A', 'K'], ['C', 'C'], ['C', 'H'], ['H', 'H'], ['H', 'K'], ['K', 'K']]; z = 'AH'
h = [1, 2, 3, 4, 5]; x = 0
l = h[x]
h = [1, 2, 3, 4, 5]; l = 1; x = 0
c = [15, 78, 101, 43]; m = [[112, 42, 83, 119], [56, 125, 56, 49]]
m.append(c)
c = [15, 78, 101, 43]; m = [[112, 42, 83, 119], [56, 125, 56, 49], [15, 78, 101, 43]]
b = {'203': 1, '204': 2, '205': 2, '206': 1, '207': 1, '208': 1}; k = '203'
b[k] = b.get(k, 0) + 1
b = {'203': 2, '204': 2, '205': 2, '206': 1, '207': 1, '208': 1}; k = '203'
h = ['remove', '7']; s = {2, 3, 4, 5, 6, 7}
getattr(s, h[0])(*list(map(int, h[1:])))
h = ['remove', '7']; s = {2, 3, 4, 5, 6}
b = 2; g = [1, 3]; y = 21
y += min(g) * b
b = 2; g = [1, 3]; y = 23
c = deque(['{']); i = '{'
c.append(i)
c = deque(['{', '{']); i = '{'
e = [9, 90, 99, 900]; j = 4
e.append(e[j - 1] + 9)
e = [9, 90, 99, 900, 909]; j = 4
a = [1, 2, 2, 3]
q = max(a)
a = [1, 2, 2, 3]; q = 3
p = 5
p += 1
p = 6
i = 1; l = ['o', 'i', 'd', 'd', 'l', 'e', '-', 'O', 'u', 't', 'z']; s = 109
s = ord(l[i])
i = 1; l = ['o', 'i', 'd', 'd', 'l', 'e', '-', 'O', 'u', 't', 'z']; s = 105
h = ( 138683118545689835737939019720389406345902876772687432540821294940160000000000000 ); k = 60
h *= k
h = 8320987112741390144276341183223364380754172606361245952449277696409600000000000000; k = 60
b = 6; g = [1, 2]
g = list(range(1, b + 1))
b = 6; g = [1, 2, 3, 4, 5, 6]
i = 2.524354896707238e-28
i /= 2
i = 1.262177448353619e-28
i = 7; o = [6, 8, 10, 11, 15, 16, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
o[i] += o[i - 1]
i = 7; o = [6, 8, 10, 11, 15, 16, 20, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
l = 27
l -= 1
l = 26
q = ['2', '2', '3']
q = list(map(int, q))
q = [2, 2, 3]
a = [1]; b = 2; r = 1000000007; s = 1; x = 0
b = (b + sum(a[x:]) * (s + 1)) % r
a = [1]; b = 4; r = 1000000007; s = 1; x = 0
b = ['i', 'if', 'ifa', 'ifai', 'ifail']; x = 'ifailu'
b.append(x)
b = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu']; x = 'ifailu'
d = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'e': 1, 'f': 0, 'g': 0, 'h': 0}; i = 'i'
d[i] = 0
d = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'e': 1, 'f': 0, 'g': 0, 'h': 0, 'i': 0}; i = 'i'
x = 32
u.add(x)
u = {32}; x = 32
a = [(12, 4, 0), (16, 5, 1)]; d = 3; i = 2; n = 3; t = 3
a.append((n * (t + d) + i, t + d, i))
a = [(12, 4, 0), (16, 5, 1), (20, 6, 2)]; d = 3; i = 2; n = 3; t = 3
c = ( 'In the third category he included those Brothers..., breathless from his gallop and his excitement. ' ); k = 74; t = ( 'In the third category he included those Brothers (the majority) who saw no' )
t += c[k]
c = 'In the third category he included those Brothers..., breathless from his gallop and his excitement. '; k = 74; t = 'In the third category he included those Brothers (the majority) who saw noa'
b = 'ABABABAB'; f = 'B'; i = 2
f = b[i]
b = 'ABABABAB'; f = 'A'; i = 2
l = 3; o = 5
l = o
l = 5; o = 5
i = 5; s = 'aeiouuoiea'; t = [1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]
t[ord(s[i]) - ord('a')] += 1
i = 5; s = 'aeiouuoiea'; t = [1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0]
n = 2
r = [0] * (n + 1)
n = 2; r = [0, 0, 0]
x = 4
x = x * x % 100000
x = 16
g = 2000000003; s = '1000000003'
g += int(s)
g = 3000000006; s = '1000000003'
a = 1; y = 0
y = a + 1 if a > 0 else 0
a = 1; y = 2
h = 3; s = 'aba'
q = len(s) - h
h = 3; q = 0; s = 'aba'
b = [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, 0, 0, 0, 0, 0]; i = 2
b[i * j] = 1
b = [1, 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, 0, 0, 0, 0]; i = 2; j = False
j = 0; u = [[2], [2, 3]]
j = len(u) - 1
j = 1; u = [[2], [2, 3]]
c = 'e'; v = 'w'
v = c.lower()
c = 'e'; v = 'e'
o = ( '1 1 3 3 6 8 9 9 10 12 13 16 16 18 20 21 21 22 23 24 25 25 25 27 27 30 30 32 32 32 33 33 ' ); x = 33
o += str(x) + ' '
o = '1 1 3 3 6 8 9 9 10 12 13 16 16 18 20 21 21 22 23 24 25 25 25 27 27 30 30 32 32 32 33 33 33 '; x = 33
m = 'NAME'; s = {'MARKS', 'ID'}
s.add(m)
m = 'NAME'; s = {'MARKS', 'NAME', 'ID'}
i = [['i love to', 'love to dance', 'i like to', 'to dance i', 'like to play', 'to play chess']]
s = i[0] if i else None
i = [['i love to', 'love to dance', 'i like to', 'to dance i', 'like to play', 'to play chess']]; s = ['i love to', 'love to dance', 'i like to', 'to dance i', 'like to play', 'to play chess']
c = 9; k = [1, 3, 5, 7]
k.append(c)
c = 9; k = [1, 3, 5, 7, 9]
d = ['e', 'f', 'a']; i = 0
d.pop(i)
d = ['f', 'a']; i = 0
h = {'ive': 1, 'got': 1, 'a': 1, 'lovely': 1, 'bunch': 1, 'of': 1}; m = 'coconuts'
h[m] = 1
h = {'ive': 1, 'got': 1, 'a': 1, 'lovely': 1, 'bunch': 1, 'of': 1, 'coconuts': 1}; m = 'coconuts'
k = 0; p = [[], []]; v = 0; w = [[1, 0, 5], [1, 1, 7], [1, 0, 3], [2, 1, 0], [2, 1, 1]]
p[v].append(w[k][2])
k = 0; p = [[5], []]; v = 0; w = [[1, 0, 5], [1, 1, 7], [1, 0, 3], [2, 1, 0], [2, 1, 1]]
l = 2; r = 3
l, r = l - 1, r - 1
l = 1; r = 2
b = 2; n = 3; v = [2, 3, 1, 2, 3, 2, 3, 3]
b = min(b, v[n])
b = 2; n = 3; v = [2, 3, 1, 2, 3, 2, 3, 3]
s = '91011'
s = s[i:]
i = -32; s = '91011'
a = [['.', '.', '.', '.', '.', '.'], ['.', '.', '.', '.', '.', '.'], ['.', '.', '.', '.', '.', '.'], ['1', '1', '1', '.', '.', '.'], ['1', '1', '1', '.', '.', '.'], ['.', '1', '1', '.', '.', '.']]; i = 1; j = 1
a[i][j] = 'O' if a[i][j] == '.' else '.'
a = [['.', '.', '.', '.', '.', '.'], ['.', 'O', '.', '.', '.', '.'], ['.', '.', '.', '.', '.', '.'], ['1', '1', '1', '.', '.', '.'], ['1', '1', '1', '.', '.', '.'], ['.', '1', '1', '.', '.', '.']]; i = 1; j = 1
b = 3; j = 2
b = b * j
b = 6; j = 2
a = 2; b = 10; f = 217780714829400616616559748756331655332094; i = 134
f += a ^ b << i
a = 2; b = 10; f = 435561429658801233233119497512663310663936; i = 134
k = [33, 11, 44, 55]
k.sort()
k = [11, 33, 44, 55]
a = 8; q = [3, 4, 5, 12]
q.append(a)
a = 8; q = [3, 4, 5, 12, 8]
k = 1.2000000000000005e-32; u = 1.2000000000000005e-31
u = k % 10
k = 1.2000000000000005e-32; u = 1.2000000000000005e-32
i = 0; j = 1; s = 'ifailuhkqq'; w = 'i'
w = ''.join(sorted(s[j:j + i + 1]))
i = 0; j = 1; s = 'ifailuhkqq'; w = 'f'
l = -1; p = [[2, 3], [4, -1], [5, -1], [6, -1], [7, 8], [-1, 9], [-1, -1], [10, 11], [-1, -1]]; r = -1
p.append([l, r])
l = -1; p = [[2, 3], [4, -1], [5, -1], [6, -1], [7, 8], [-1, 9], [-1, -1], [10, 11], [-1, -1], [-1, -1]]; r = -1
j = [1, 2, 3, 4, 10, 20, 30, 40, 100]; p = 200
j.append(p)
j = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; p = 200
m = 12
m += 1
m = 13
a = 66; b = 190
a = b
a = 190; b = 190
c = [1, 1, 1, 1, 1, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; x = 'e'
c[ord(x) - 97] += 1
c = [1, 1, 1, 1, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; x = 'e'
h = ['000', '001', '002', '003', '004', '005', '006', '048', '049', '050', '051', '052', '053', '054']; n = 55
h.append('0' + str(n))
h = ['000', '001', '002', '003', '004', '005', '006', '048', '049', '050', '051', '052', '053', '054', '055']; n = 55
s = '07:05:45PM'
i = s[-2:]
i = 'PM'; s = '07:05:45PM'
z = 2
z += 1
z = 3
a = 43; b = 159; c = 88
a ^= a & ((a | b) ^ c)
a = 8; b = 159; c = 88
b = 4.973799150320701e-14
b /= 2
b = 2.4868995751603507e-14
a = 2; u = 1000000007
a = a * a % u
a = 4; u = 1000000007
c = 'e'; s = 'h'
s = c.lower()
c = 'e'; s = 'e'
h = '3'; q = 'abc'
q = q[:-int(h)]
h = '3'; q = ''
a = [0, 0, 1, 2, 1, 1, 1, 3, 2, 1]; e = [2, 4, 2, 6, 1, 7, 8, 9, 2, 1]; i = 1
a[i] = a[i + 1] + 1 if e[i] > e[i + 1] else 1
a = [0, 2, 1, 2, 1, 1, 1, 3, 2, 1]; e = [2, 4, 2, 6, 1, 7, 8, 9, 2, 1]; i = 1
i = 1; q = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
q[i] = q[i - 1] + 1
i = 1; q = [1, 2, 1, 1, 1, 1, 1, 1, 1, 1]
a = 1; b = 2; m = '0-0'
m = str(a) + '-' + str(b)
a = 1; b = 2; m = '1-2'
a = 3; c = [1, 2, 4, 4]; x = 1
c[x + 1] = a
a = 3; c = [1, 2, 3, 4]; x = 1
p = ['AA', 'AC', 'AK', 'CC', 'CK']; t = 'AH'
p.append(t)
p = ['AA', 'AC', 'AK', 'CC', 'CK', 'AH']; t = 'AH'
a = 4; b = 6; j = 6
a, b = j - 1, j + 1
a = 5; b = 7; j = 6
c = 'd'; e = 'd'
e += c
c = 'd'; e = 'dd'
a = 16; h = ['o', 'k', 'f', 'f', 'n', 'g', '-', 'O', 'u', 't', 'z']; i = 7; j = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
h[i] = j[a]
a = 16; h = ['o', 'k', 'f', 'f', 'n', 'g', '-', 'X', 'u', 't', 'z']; i = 7; j = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
e = 'b'; n = {'a': -3, 'b': 2}
n[e] += 1
e = 'b'; n = {'a': -3, 'b': 3}
d = [1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880]; f = 10
d.append(d[f - 1] * f)
d = [1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800]; f = 10
h = {(0): 'grey', (1): 'grey', (2): 'white', (3): 'white', (4): 'grey'}; x = 0
h[x] = 'black'
h = {0: 'black', 1: 'grey', 2: 'white', 3: 'white', 4: 'grey'}; x = 0
c = [6, 2, 5]; i = 1; j = 2
c[i] = c[j]
c = [6, 5, 5]; i = 1; j = 2
w = 1
w += 1
w = 2
c = [False, False, False, False]; u = 0
c[u] = True
c = [True, False, False, False]; u = 0
v = [11, 22, 35, 55, 58, 62, 66]; z = {1, 2, 3, 4, 5, 6, 8, 9, 66, 11, 35, 22, 55, 58, 62}
z.difference_update(v)
v = [11, 22, 35, 55, 58, 62, 66]; z = {1, 2, 3, 4, 5, 6, 8, 9}
j = {(5, 4), (5, 5), (4, 6), (5, 3)}; x = 5; y = 6
j.add((x, y))
j = {(5, 4), (4, 6), (5, 5), (5, 6), (5, 3)}; x = 5; y = 6
t = '0b11111111111111111'
t += '1'
t = '0b111111111111111111'
d = []; f = ['dummy', [('a',)], [], [], []]; n = 'a', 'b'
d.append(n)
d = [('a', 'b')]; f = ['dummy', [('a',)], [], [], []]; n = ('a', 'b')
t = '5\n10 1 10 1 10\n'
t = t.split('\n')
t = ['5', '10 1 10 1 10', '']
l = [0, 1, 3, 7, 15, 31, 63, 127, 255, 97151, 94303, 88607, 77215, 54431, 8863, 17727, 35455, 70911]; w = 70911
w = (1 + l[-1] * 2) % p
l = [0, 1, 3, 7, 15, 31, 63, 127, 255, 97151, 94303, 88607, 77215, 54431, 8863, 17727, 35455, 70911]; p = 86; w = 9
e = [1, 2, 1, 3, 2]; h = 1; i = 2
h = e[i]
e = [1, 2, 1, 3, 2]; h = 1; i = 2
i = 0; v = 9
a = a + v * (i + 1)
a = 9; i = 0; v = 9
p = 1.7999999999999998e-35
p /= 10
p = 1.7999999999999998e-36
i = 1; n = 'This$#is% M'; r = '$a '
n += r[i]
i = 1; n = 'This$#is% Ma'; r = '$a '