start
stringlengths
5
368
code
stringlengths
5
143
end
stringlengths
5
527
k = {1, 2, 3, 6, 8, 10, 11, 21, 55}; l = {1, 2, 3, 4, 5, 6, 7, 8, 9}
s = len(set(l.intersection(k)))
k = {1, 2, 3, 6, 8, 10, 11, 21, 55}; l = {1, 2, 3, 4, 5, 6, 7, 8, 9}; s = 5
i = 'a'
p[i] = p.setdefault(i, 0) + 1
i = 'a'; p = {'a': 1}
a = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'e': 1, 'f': 1}; i = 'g'
a[i] = a.get(i, 0) + 1
a = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'e': 1, 'f': 1, 'g': 1}; i = 'g'
h = [2]; m = [1, 2, 2]; x = 2
h.append(m[x])
h = [2, 2]; m = [1, 2, 2]; x = 2
i = 1; u = 1; z = [1, 3, 5, 7, 9]
u = z[i]
i = 1; u = 3; z = [1, 3, 5, 7, 9]
i = 0; n = [1, 2, 2, 2, 0]; s = 1
s = n[i]
i = 0; n = [1, 2, 2, 2, 0]; s = 1
b = 1; r = 2
b = r
b = 2; r = 2
k = 1, 0; x = 0; y = 0
y, x = k
k = (1, 0); x = 0; y = 1
i = 5; j = 0; z = [1, 2, 2, 3, 3, 1]
z[i] = z[j] + 1
i = 5; j = 0; z = [1, 2, 2, 3, 3, 2]
f = [0, 1, 3, 7, 15, 31, 63, 127, 255, 8863, 17727, 35455, 70911, 41823, 83647, 67295, 34591, 69183]; o = 38367
f.append(o)
f = [0, 1, 3, 7, 15, 31, 63, 127, 255, 8863, 17727, 35455, 70911, 41823, 83647, 67295, 34591, 69183, 38367]; o = 38367
c = [1, 2, 1, 0, 0, 0, 0, 0]; i = 3
c[i] = c[i - 1] + 1
c = [1, 2, 1, 2, 0, 0, 0, 0]; i = 3
f = 1.99365234375; g = 2; j = 12
f = f + j * g ** -j
f = 1.99658203125; g = 2; j = 12
a = [1, 2, 4, 5, 7, 8, 10]; i = 5; s = {1, 2, 4, 5, 7}
s.add(a[i])
a = [1, 2, 4, 5, 7, 8, 10]; i = 5; s = {1, 2, 4, 5, 7, 8}
k = 3
z = [0] * k
k = 3; z = [0, 0, 0]
n = 5; o = [6, -1]
n = o[0]
n = 6; o = [6, -1]
w = {(1): True, (5): True, (3): True, (4): True, (2): True}; y = 1
del w[y]
w = {5: True, 3: True, 4: True, 2: True}; y = 1
d = '9999999999999999999999999999999'
d += '9'
d = '99999999999999999999999999999999'
i = 2; q = [5, 2, 6, 3, 4]; r = 5
r = q[i]
i = 2; q = [5, 2, 6, 3, 4]; r = 6
g = 'd'; i = 18; s = 'saveChangesInTheEditor'
g = s[i]
g = 'i'; i = 18; s = 'saveChangesInTheEditor'
j = 8; k = 3; x = 3
j = max(x * k, j)
j = 9; k = 3; x = 3
s = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42]
i, h = int(s[0]), int(s[0])
h = 3; i = 3; s = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42]
a = [1, 2, 1, 1, 1, 2, 1, 3]; i = 2; k = [1, 3, 0, 0, 0, 0, 0, 0]
k[i] = k[i - 1] + a[i]
a = [1, 2, 1, 1, 1, 2, 1, 3]; i = 2; k = [1, 3, 4, 0, 0, 0, 0, 0]
n = None; s = '\\n'
n = ESCAPES.get(s)
f = {}; n = None; s = '\\n'
c = 1; d = 5; i = 1; y = [(1, 5), (2, 3), (4, 7), (5, 7)]
c, d = y[i]
c = 2; d = 3; i = 1; y = [(1, 5), (2, 3), (4, 7), (5, 7)]
a = [11, 2, 4]; i = 0
x += a[i]
a = [11, 2, 4]; i = 0; x = -40
m = 11
m += 1
m = 12
c = 'defgab'; i = 1; p = 3
p = ord(c[i]) - ord('a')
c = 'defgab'; i = 1; p = 4
j = [1, 3, 3]; n = 0; x = [[1, 3, 3], [1, 3, 3], [1, 1, 1], [1, 3, 3]]
h = [str(j) for j in x[n]]
h = ['1', '3', '3']; j = [1, 3, 3]; n = 0; x = [[1, 3, 3], [1, 3, 3], [1, 1, 1], [1, 3, 3]]
b = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ifailuh', 'ailuhkqq', 'i', 'il', 'ilu', 'iluh', 'iluhk']; x = 'iluhkq'
b.append(x)
b = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ifailuh', 'ailuhkqq', 'i', 'il', 'ilu', 'iluh', 'iluhk', 'iluhkq']; x = 'iluhkq'
t = 30; x = [1, 2, 3, 4, 10, 20]
x.append(t)
t = 30; x = [1, 2, 3, 4, 10, 20, 30]
a = [3, 1]
a[-1] += 1
a = [3, 2]
u = 3
e = [[(0) for _ in range(9)] for _ in range(u)]
e = [[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]]; u = 3
a = 0; b = 0; c = 1; j = 2
j = j + a + b + c
a = 0; b = 0; c = 1; j = 3
b = 21763925850248139909408980
b >>= 1
b = 10881962925124069954704490
g = 32768; j = 16384
j = g
g = 32768; j = 32768
i = 2; n = 2; s = 0; x = 0
s = x - i ** n
i = 2; n = 2; s = -4; x = 0
i = 1; j = 2; u = [3, 3, 1]; v = [[0, 2, 1], [1, 1, 1], [2, 0, 0]]
u[j] += v[i][j]
i = 1; j = 2; u = [3, 3, 2]; v = [[0, 2, 1], [1, 1, 1], [2, 0, 0]]
m = 103316; u = ['84', '86', '95']
m += int(u[1]) * int(u[2])
m = 111486; u = ['84', '86', '95']
i = 102; w = {'a': 'c', 'b': 'd', 'c': 'e', 'd': 'f', 'e': 'g'}; x = 2
w[chr(i)] = chr(ord('a') + (i - ord('a') + x) % 26)
i = 102; w = {'a': 'c', 'b': 'd', 'c': 'e', 'd': 'f', 'e': 'g', 'f': 'h'}; x = 2
e = [(0, 1)]; i = 1, 1
e.append(i)
e = [(0, 1), (1, 1)]; i = (1, 1)
a = 'aaabb'; c = 'aaabb'; x = -2; y = -8
a = c[x:y:-1]
a = 'baaa'; c = 'aaabb'; x = -2; y = -8
a = '2'; t = '3'
a += t
a = '23'; t = '3'
k = 3
f = {i: [] for i in range(k)}
f = {0: [], 1: [], 2: []}; k = 3
y = [[0, 4, 6, 10], [0, 2, 3]]
k, o = y
k = [0, 4, 6, 10]; o = [0, 2, 3]; y = [[0, 4, 6, 10], [0, 2, 3]]
a = {'ive': 1, 'got': 1}; x = 'a'
a[x] = 1
a = {'ive': 1, 'got': 1, 'a': 1}; x = 'a'
i = 1; j = 3; k = 3
i = j - k
i = 0; j = 3; k = 3
a = [1, 2, 1, 1, 1, 2, 1, 3]; i = 0
d = a[i]
a = [1, 2, 1, 1, 1, 2, 1, 3]; d = 1; i = 0
a = {(1): [1, 2, 1], (2): []}; j = 2; k = 1
a[j].append(k)
a = {1: [1, 2, 1], 2: [1]}; j = 2; k = 1
n = 12
n //= 10
n = 1
n = 91; s = 4; u = 4
u, s = n, n + 1
n = 91; s = 92; u = 91
i = 0
i += 1
i = 1
d = [-1, -1, -1]
d.append(-1)
d = [-1, -1, -1, -1]
a = 3; w = [0, 1, 1, 2]
w.append(int(a))
a = 3; w = [0, 1, 1, 2, 3]
i = 1; j = 2; r = [['1', '1', '1', '2'], ['1', '9', '1', '2'], ['1', '8', '9', '2'], ['1', '2', '3', '4']]; z = '8'
z = max(r[i - 1][j], r[i + 1][j], r[i][j - 1], r[i][j + 1])
i = 1; j = 2; r = [['1', '1', '1', '2'], ['1', '9', '1', '2'], ['1', '8', '9', '2'], ['1', '2', '3', '4']]; z = '9'
a = [4, 16, 36, 64, 100, 144, 196, 256, 324, 400, 1764, 1936, 2116, 2304, 2500, 2704, 2916, 3136, 3364]; i = 60
a.append(i * i)
a = [4, 16, 36, 64, 100, 144, 196, 256, 324, 400, 1764, 1936, 2116, 2304, 2500, 2704, 2916, 3136, 3364, 3600]; i = 60
k = 11; n = 49; v = 59
v = k ^ n
k = 11; n = 49; v = 58
i = 18; u = 70368744177664; v = 64
u = 1 << v - i - 1
i = 18; u = 35184372088832; v = 64
d = 14; p = 4; s = 11
p = d ^ s
d = 14; p = 5; s = 11
f = {'Harsh': [25.0, 26.5, 28.0], 'Anurag': []}; i = 1; u = ['Anurag', '26', '28', '30']
f[u[0]].append(float(u[i]))
f = {'Harsh': [25.0, 26.5, 28.0], 'Anurag': [26.0]}; i = 1; u = ['Anurag', '26', '28', '30']
d = {'a': 1}; i = 'a'
d[i] = d.get(i, 0) + 1
d = {'a': 2}; i = 'a'
q = 4; r = 6
q = r + 1
q = 7; r = 6
y = 24
y += 1
y = 25
n = 1.0000000000000002e-12; s = 1.11111111111
s += n % 10
n = 1.0000000000000002e-12; s = 1.1111111111110001
b = {'CALIFORNIA': 0}; i = 1; s = 'HAWAII'
b[s] = i
b = {'CALIFORNIA': 0, 'HAWAII': 1}; i = 1; s = 'HAWAII'
b = 1; j = 2; n = 4; t = 2; y = 0
b = n - j - t - y
b = 0; j = 2; n = 4; t = 2; y = 0
b = 4; o = 9; y = 2
o = y * b
b = 4; o = 8; y = 2
w = 7
w += 1
w = 8
g = '910'; j = 11
g = g + str(j)
g = '91011'; j = 11
d = '11111111111111100001110110'
d += '1'
d = '111111111111111000011101101'
k = [('Tina', 37.2), ('Berry', 37.21), ('Harry', 37.21), ('Harsh', 39.0), ( 'Akriti', 41.0)]
g = sorted({grade for name, grade in k})[1]
g = 37.21; k = [('Tina', 37.2), ('Berry', 37.21), ('Harry', 37.21), ('Harsh', 39.0), ('Akriti', 41.0)]
c = ['9875', '4']
n, k = int(c[0]), int(c[1])
c = ['9875', '4']; k = 4; n = 9875
i = 1; j = 7; s = 'failu'; u = 'ifailuhkqq'
s = u[i:j]
i = 1; j = 7; s = 'failuh'; u = 'ifailuhkqq'
b = 2; l = 2; s = 1
r = l // s * (b // s)
b = 2; l = 2; r = 4; s = 1
i = 2; j = 2
j = i
i = 2; j = 2
f = 0; m = 2; o = ['0', '1']
f, m = [int(x) for x in o]
f = 0; m = 1; o = ['0', '1']
c = 0; l = [2, 1, 3]; n = 1
l[c] = l[n]
c = 0; l = [1, 1, 3]; n = 1
q = {'two': 0, 'times': 1, 'three': 1, 'is': 1, 'not': 1, 'four': 1}; x = 'times'
q[x] -= 1
q = {'two': 0, 'times': 0, 'three': 1, 'is': 1, 'not': 1, 'four': 1}; x = 'times'
e = 5
e -= 1
e = 4
z = [3, 3]
k = z[1]
k = 3; z = [3, 3]
j = 1; x = ['2', 'not']
j = int(x[0])
j = 2; x = ['2', 'not']
g = 20; u = 10
u = g
g = 20; u = 20
i = 0; j = 0; t = set()
t.add((i, j))
i = 0; j = 0; t = {(0, 0)}
k = {(0): None, (1): None, (2): None, (3): None, (5): None}; x = 0; y = 1
k[y] = x
k = {0: None, 1: 0, 2: None, 3: None, 5: None}; x = 0; y = 1
j = 4; z = [0, 1, 2, 3]
j = z.pop()
j = 3; z = [0, 1, 2]
q = [[], [(2, 24)], [], [], []]; r = 24; x = 1; y = 2
q[y].append((x, r))
q = [[], [(2, 24)], [(1, 24)], [], []]; r = 24; x = 1; y = 2
c = 31; y = [0, 1, 3, 7, 15, 31]
c = (1 + y[-1] * 2) % p
c = 21; p = 42; y = [0, 1, 3, 7, 15, 31]
b = [6, 6, 7]; n = 3
b = [0] * n
b = [0, 0, 0]; n = 3
f = '10'
l = l + int(f)
f = '10'; l = -60
m = 4; x = 2
r = m - x
m = 4; r = 2; x = 2
l = ['5', '3']
n = int(l[0])
l = ['5', '3']; n = 5
h = '1 2'
h = h.split(' ')
h = ['1', '2']
s = 'aaabbb'; y = 3
n = s[y:]
n = 'bbb'; s = 'aaabbb'; y = 3
h = [True, False, False, False, False, False, False, False, False, False]; i = 0; w = 3
h[i + w] = True
h = [True, False, False, True, False, False, False, False, False, False]; i = 0; w = 3
f = [1, 0, 0, 0, 0, 1, 0, 1, 0]; j = 9; k = 3; n = 1; s = '1110011011'
n = n ^ int(s[j - 1]) ^ f[j - k]
f = [1, 0, 0, 0, 0, 1, 0, 1, 0]; j = 9; k = 3; n = 0; s = '1110011011'
i = 2; k = 3; m = [10, 20, 30, 100, 200, 300, 1000]; n = 7; p = [1590, 1530, 1480, 1200, 900, 700, 0]; s = 640
s -= p[i] - p[i + k] - (m[i + k] - m[i]) * (n - k - i)
i = 2; k = 3; m = [10, 20, 30, 100, 200, 300, 1000]; n = 7; p = [1590, 1530, 1480, 1200, 900, 700, 0]; s = 400
k = 6; o = ['b', 'e', 'a', 'b', 'e', 'e', 'f', 'e', 'a', 'b']; w = 'a'
w = o[k]
k = 6; o = ['b', 'e', 'a', 'b', 'e', 'e', 'f', 'e', 'a', 'b']; w = 'f'
j = 124
j += i
i = -9; j = 115
k = 10
k *= 10
k = 100
c = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0]; l = 'Y'
c[ord(l) - 65] += 1
c = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0]; l = 'Y'
a = 8
a = a // 2
a = 4