start
stringlengths
5
368
code
stringlengths
5
143
end
stringlengths
5
527
b = '0'; x = ['1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1']
x.append('0' if b == '1' else '1')
b = '0'; x = ['1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1']
e = [1226800, 926891, 782725, 1023038, 1126293, 692565, 742100, 839471, 1201199, 796265, 953887, 1124602]; t = '1070181'
e.append(int(t))
e = [1226800, 926891, 782725, 1023038, 1126293, 692565, 742100, 839471, 1201199, 796265, 953887, 1124602, 1070181]; t = '1070181'
s = [4, 1, 3, 2]
s.pop()
s = [4, 1, 3]
b = 1; k = 'a'; s = ['a', 'b']
k += s[b]
b = 1; k = 'ab'; s = ['a', 'b']
i = 1, 1, 3; k = [[1, 1, 1], [1, 1, 3], [1, 1, 3]]
k.append(sorted(i))
i = (1, 1, 3); k = [[1, 1, 1], [1, 1, 3], [1, 1, 3], [1, 1, 3]]
v = {'a': 1, 'ab': 1, 'abc': 1, 'abcd': 1, 'b': 1, 'bc': 1}; x = 'bcd'
v[x] = 1
v = {'a': 1, 'ab': 1, 'abc': 1, 'abcd': 1, 'b': 1, 'bc': 1, 'bcd': 1}; x = 'bcd'
j = 1; s = '1234'
r = int(s[i:j])
i = -59; j = 1; r = 1; s = '1234'
f = [34534985349875439875439875349875, 93475349759384754395743975349573495]; r = 4
r = f[1]
f = [34534985349875439875439875349875, 93475349759384754395743975349573495]; r = 93475349759384754395743975349573495
d = {(1): 3, (5): 7, (3): 5, (4): 6}; k = 2; x = 2
d[x] = x + k
d = {1: 3, 5: 7, 3: 5, 4: 6, 2: 4}; k = 2; x = 2
g = 'an'; k = 1; n = 'eday'
g = g + n[k]
g = 'and'; k = 1; n = 'eday'
i = 11; j = 10; x = [-20, -3916237, -357920, -3620601, 7374819, -7330761, 30, 6246457, - 6461594, 266854, -520, -470]
x[i], x[j] = x[j], x[i]
i = 11; j = 10; x = [-20, -3916237, -357920, -3620601, 7374819, -7330761, 30, 6246457, -6461594, 266854, -470, -520]
i = 2; j = 0; n = [[11, 2, 4], [4, 5, 6], [10, 8, -12]]; o = 9
o += n[i][j]
i = 2; j = 0; n = [[11, 2, 4], [4, 5, 6], [10, 8, -12]]; o = 19
j = 2; t = [1, 0, 0, 0]
t[j] = 1
j = 2; t = [1, 0, 1, 0]
j = 0; z = 1
s.append((z, j))
j = 0; s = [(1, 0)]; z = 1
f = 3.435973836799999e-25; o = 3.435973836799999e-25; q = 5
f = o / q
f = 6.871947673599998e-26; o = 3.435973836799999e-25; q = 5
k = [0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
k = [0] * 26
k = [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 = 0.0; t = 6.871947673599998e-26
n += t
n = 6.871947673599998e-26; t = 6.871947673599998e-26
d = [0, 1, 2, 4, 6, 5, 3]; g = 5; x = 6
x = d[g]
d = [0, 1, 2, 4, 6, 5, 3]; g = 5; x = 5
j = 4; k = 'e-d-c-d-'; s = 'abcdefghijklmnopqrstuvwxyz'
k += s[j]
j = 4; k = 'e-d-c-d-e'; s = 'abcdefghijklmnopqrstuvwxyz'
i = 0; l = 7,; s = 6
s += 2 ** i * l[len(l) - i - 1]
i = 0; l = (7,); s = 13
b = {'Harsh': 28.0, 'Anurag': 30.0}; d = {'Harsh': 26.5, 'Anurag': 28.0}; f = {'Harsh': 25.0, 'Anurag': 26.0}; n = 'Harsh'
r = f[n] + d[n] + b[n]
b = {'Harsh': 28.0, 'Anurag': 30.0}; d = {'Harsh': 26.5, 'Anurag': 28.0}; f = {'Harsh': 25.0, 'Anurag': 26.0}; n = 'Harsh'; r = 79.5
l = 1; p = 0; s = [1, 2, 2, 3]
s[p] += l
l = 1; p = 0; s = [2, 2, 2, 3]
j = 1; k = 'e-d-c-b-a-'; s = 'abcdefghijklmnopqrstuvwxyz'
k += s[j] + '-'
j = 1; k = 'e-d-c-b-a-b-'; s = 'abcdefghijklmnopqrstuvwxyz'
i = array([[7, 10], [15, 22]]); l = 140106070893872, 140106530764032; w = set()
w.add(l)
i = array([[ 7, 10], [15, 22]]); l = (140106070893872, 140106530764032); w = {(140106070893872, 140106530764032)}
a = 'POTATO CHIPS'; d = OrderedDict([('BANANA FRIES', 12)]); e = '30'
d[a] = int(e)
a = 'POTATO CHIPS'; d = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30)]); e = '30'
i = 4; l = [1, 12, 5, 111, '200', '1000', '10']
l[i] = int(l[i])
i = 4; l = [1, 12, 5, 111, 200, '1000', '10']
c = '8'; w = '11'
w += c
c = '8'; w = '118'
g = [['3', '4', '8', '12'], ['2', '6', '7', '16'], ['1', '10', '11', '15'], ['5', '9', '13', '14']]; i = 2; l = 1; w = '12'
w = g[l][i]
g = [['3', '4', '8', '12'], ['2', '6', '7', '16'], ['1', '10', '11', '15'], ['5', '9', '13', '14']]; i = 2; l = 1; w = '7'
n = 5
z.append([1000000000] * n)
n = 5; z = [[1000000000, 1000000000, 1000000000, 1000000000, 1000000000]]
i = -2; s = 4
s = s - i
i = -2; s = 6
a = 17
w = len(bin(a)[2:])
a = 17; w = 5
s = 'I love to dance. I like to dance I. like to play chess.'
b = s.split(' ')
b = ['I', 'love', 'to', 'dance.', 'I', 'like', 'to', 'dance', 'I.', 'like', 'to', 'play', 'chess.']; s = 'I love to dance. I like to dance I. like to play chess.'
i = 1, 3, 3; j = [[1, 1, 1], [1, 1, 3], [1, 1, 3], [1, 1, 3], [1, 1, 3]]
j.append(sorted(i))
i = (1, 3, 3); j = [[1, 1, 1], [1, 1, 3], [1, 1, 3], [1, 1, 3], [1, 1, 3], [1, 3, 3]]
j = [[2, 3], [-1, 4], [-1, 5], [6, -1], [7, 8], [-1, 9], [-1, -1], [10, 11], [-1, -1], [-1, -1], [-1, -1]]; n = 3; y = [4]
y.append(j[n - 1][1])
j = [[2, 3], [-1, 4], [-1, 5], [6, -1], [7, 8], [-1, 9], [-1, -1], [10, 11], [-1, -1], [-1, -1], [-1, -1]]; n = 3; y = [4, 5]
j = [False, True, False, True, False, True, True, True, True, True, True, True, True, True, True, True]; m = 6
j[m] = False
j = [False, True, False, True, False, True, False, True, True, True, True, True, True, True, True, True]; m = 6
p = [1, 3, 5, 7]; r = '9'
p.append(int(r))
p = [1, 3, 5, 7, 9]; r = '9'
h = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 1], [0, 0, 0, 2, 2, 2], [0, 1, 1, 2, 2, 3], [0, 1, 2, 2, 2, 3], [0, 1, 2, 3, 0, 0]]; i = 5; j = 5
h[i][j] = h[i - 1][j - 1] + 1
h = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 1], [0, 0, 0, 2, 2, 2], [0, 1, 1, 2, 2, 3], [0, 1, 2, 2, 2, 3], [0, 1, 2, 3, 0, 3]]; i = 5; j = 5
c = ['255', '255', '255']; j = 0; u = ['100,100,88', '80,80,80', '15,75,255']
c = u[j].split(',')
c = ['100', '100', '88']; j = 0; u = ['100,100,88', '80,80,80', '15,75,255']
c = 8
c += 1
c = 9
n = ['HACK', '2']
z = str(n[0])
n = ['HACK', '2']; z = 'HACK'
i = 1; j = 1; m = 1; r = [[0, 2, 1], [1, 1, 1], [2, 0, 0]]
m += r[i][j]
i = 1; j = 1; m = 2; r = [[0, 2, 1], [1, 1, 1], [2, 0, 0]]
q = 6.0; v = 0.0
v = q
q = 6.0; v = 6.0
b = [1, 16, 2, 4]; i = 8
b.append(i)
b = [1, 16, 2, 4, 8]; i = 8
i = 18; p = 17
p &= i
i = 18; p = 16
e = 5; j = 4; s = [1, 3, 4, 5, 6, 2]
e = s[j]
e = 6; j = 4; s = [1, 3, 4, 5, 6, 2]
a = 2; j = 3; o = [3, 3, 9, 9, 5]; v = 7
a = (a + o[j]) % v
a = 4; j = 3; o = [3, 3, 9, 9, 5]; v = 7
l = 1
l += 1
l = 2
f = 1; k = 1; r = 4
f, k = r // 2, r % 2
f = 2; k = 0; r = 4
j = 5
j = j - 1
j = 4
f = 1; h = [(4, 0)]; u = 0
u = f + 1 if len(h) != 0 else 0
f = 1; h = [(4, 0)]; u = 2
r = '1'; u = '4'
u, r = [int(u), int(r)]
r = 1; u = 4
i = 2; n = 6; o = [1, 5, 10, 12, 111, 200, 1000]
n = n + o[i]
i = 2; n = 16; o = [1, 5, 10, 12, 111, 200, 1000]
c = 6; i = 3; n = 4
c = c * (n + 1 - i) // i
c = 4; i = 3; n = 4
j = [2]; p = 1
p = len(j)
j = [2]; p = 1
c = [[0, 2, 1], [1, 1, 1]]; q = [2, 0, 0]
c.append(q)
c = [[0, 2, 1], [1, 1, 1], [2, 0, 0]]; q = [2, 0, 0]
n = [10, 2, 5]
w = n[2]
n = [10, 2, 5]; w = 5
f = ['BANANA', 'FRIES', '12']
r = ' '.join(f[:-1])
f = ['BANANA', 'FRIES', '12']; r = 'BANANA FRIES'
i = 2; n = '99100010001'; r = True
n = ('', n[i:])[r]
i = 2; n = '100010001'; r = True
l = 3; w = 0
l = w + 1
l = 1; w = 0
i = 0; j = 4; s = 'ifailuhkqq'; x = ['i', 'fi', 'afi', 'afii']
x.append(''.join(sorted(s[i:j + 1])))
i = 0; j = 4; s = 'ifailuhkqq'; x = ['i', 'fi', 'afi', 'afii', 'afiil']
b = 44; r = [1, 1, 4, 9, 16, 25, 36, 49, 64, 81, 1156, 1225, 1296, 1369, 1444, 1521, 1600, 1681, 1764, 1849]
r += [b ** 2]
b = 44; r = [1, 1, 4, 9, 16, 25, 36, 49, 64, 81, 1156, 1225, 1296, 1369, 1444, 1521, 1600, 1681, 1764, 1849, 1936]
d = [100, 100, 0, 0, -100, 0]; i = 0
x = x + d[i]
d = [100, 100, 0, 0, -100, 0]; i = 0; x = 23
t = [2, 2, 2, 2, 3, 2, 2, 2]
h = len(set(t))
h = 2; t = [2, 2, 2, 2, 3, 2, 2, 2]
a = [1, 2, 3, 4, 5]; i = 1; p = [5, 1]
p.append(a[i])
a = [1, 2, 3, 4, 5]; i = 1; p = [5, 1, 2]
i = 1; s = [20, 7, 8, 2, 5]; z = [2, 5, 7, 8, 20]
z = s[i:]
i = 1; s = [20, 7, 8, 2, 5]; z = [7, 8, 2, 5]
w = [2, 4, 3, 7, 4, 5]
c = list(w)
c = [2, 4, 3, 7, 4, 5]; w = [2, 4, 3, 7, 4, 5]
d = {(1): [], (2): [], (3): [], (4): [], (5): []}; i = 1; j = 0; u = 4
d[u].append((i, j))
d = {1: [], 2: [], 3: [], 4: [(1, 0)], 5: []}; i = 1; j = 0; u = 4
d = 0; i = 2; k = 2; p = [1, 1, 1, 2, 2]
d = p[i + k - 1] - p[i]
d = 1; i = 2; k = 2; p = [1, 1, 1, 2, 2]
i = 1; t = [0, 0, 1001, 1000, 999]; z = [0, 1, 1, 1, 999]
t[i] = t[i + 1] + z[i]
i = 1; t = [0, 1002, 1001, 1000, 999]; z = [0, 1, 1, 1, 999]
a = [0, 0, 0]; i = 0; p = [1, 3, 5, 7, 9]; w = 3
x = x + (1 + a[i % w]) * p[-i - 1]
a = [0, 0, 0]; i = 0; p = [1, 3, 5, 7, 9]; w = 3; x = -31
i = 3; j = 8; n = 'hilu'; s = 'ifailuhkqq'
n = ''.join(sorted(s[i:j]))
i = 3; j = 8; n = 'hiklu'; s = 'ifailuhkqq'
v = ['e', 'f', 'b', 'a']
n = len(v)
n = 4; v = ['e', 'f', 'b', 'a']
a = 12; k = 7
k = a
a = 12; k = 12
c = ['c', 'd', 'c']; p = 'd'
c.append(p)
c = ['c', 'd', 'c', 'd']; p = 'd'
a = {'a': 2}; u = 'abcdefghhgfedecba'; v = 'b'
a[str(v)] = u.count(v)
a = {'a': 2, 'b': 2}; u = 'abcdefghhgfedecba'; v = 'b'
a = [(0, 1), (1, 0), (0, 0), (2, 1), (1, 2)]; i = 1; j = 1
a.append((i + 1, j + 1))
a = [(0, 1), (1, 0), (0, 0), (2, 1), (1, 2), (2, 2)]; i = 1; j = 1
r = [1, 1, 1, 0, 0, 0]
k.append(r)
k = [[1, 1, 1, 0, 0, 0]]; r = [1, 1, 1, 0, 0, 0]
c = 1.0; t = 2.0; x = 3
c = x / t
c = 1.5; t = 2.0; x = 3
a = 'cdcdcdcdeeeef'; i = 8; t = 'qwertyuiopasfghjklzxvbnm'
t = t.replace(a[i], '')
a = 'cdcdcdcdeeeef'; i = 8; t = 'qwrtyuiopasfghjklzxvbnm'
l = [2, 3, 6, 6, 5]
a = set(l)
a = {2, 3, 5, 6}; l = [2, 3, 6, 6, 5]
c = 4; p = 5
c = p
c = 5; p = 5
u = '100000000000000000000000000000'
u += '0'
u = '1000000000000000000000000000000'
a = 161; i = 16, 64, 100; o = 1000
a = sum(i) % o
a = 180; i = (16, 64, 100); o = 1000
s = ['0', '2']
l = int(s[0])
l = 0; s = ['0', '2']
e = 27
e += 1
e = 28
d = {'S': 1, 'N': 1, 'L': 0, 'R': 2, 'NE': 1, 'NW': 1, 'SE': 2, 'SW': 2}; i = 'N'; o = 1
o += d[i]
d = {'S': 1, 'N': 1, 'L': 0, 'R': 2, 'NE': 1, 'NW': 1, 'SE': 2, 'SW': 2}; i = 'N'; o = 2
s = '2 4 4 6 '; x = '8'
s += str(x) + ' '
s = '2 4 4 6 8 '; x = '8'
e = 3; x = [1, 2, 3, '21', '7', '12', '14', '21']
x[e] = int(x[e])
e = 3; x = [1, 2, 3, 21, '7', '12', '14', '21']
e = 1
e *= 2
e = 2
s = 'baab'
s = [i for i in s]
s = ['b', 'a', 'a', 'b']
q = [2, 4, 11, 12]
h = set(q)
h = {2, 11, 4, 12}; q = [2, 4, 11, 12]
i = 2; j = 1; m = [[1, 1, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0], [1, 1, 1, 0, 0, 0], [0, 0, 2, 4, 4, 0], [0, 0, 0, 2, 0, 0], [0, 0, 1, 2, 4, 0]]; t = 0
t = m[i + 1][j + 1]
i = 2; j = 1; m = [[1, 1, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0], [1, 1, 1, 0, 0, 0], [0, 0, 2, 4, 4, 0], [0, 0, 0, 2, 0, 0], [0, 0, 1, 2, 4, 0]]; t = 2
c = 18.0; x = 225
x = int(c) * int(c)
c = 18.0; x = 324
f = 17711; s = 28657
f = s
f = 28657; s = 28657
d = 1; e = 1; t = [['0', '0', '0', '0'], ['0', '1', '1', '0'], ['0', '0', '1', '0'], ['1', '0', '0', '0']]
t[e][d] = '0'
d = 1; e = 1; t = [['0', '0', '0', '0'], ['0', '0', '1', '0'], ['0', '0', '1', '0'], ['1', '0', '0', '0']]
d = 2; h = 'ifailuhkqq'; i = 2; q = 6561
q += (d + 1) ** (ord(h[i + d]) - ord('a'))
d = 2; h = 'ifailuhkqq'; i = 2; q = 183708
f = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n']; k = 14
f.append(chr(ord('a') + k))
f = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o']; k = 14
b = [2, 3]; r = 10; v = 3
r = v * sum(b[1:])
b = [2, 3]; r = 9; v = 3
x = 2; y = [1, 2, 4]
y.append(x + 1)
x = 2; y = [1, 2, 4, 3]
c = [10, 20, 20, 10, 10, 30, 50, 10, 20]; m = 10
c.remove(m)
c = [20, 20, 10, 10, 30, 50, 10, 20]; m = 10