start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
g = ['4', 'the']; i = [(0, '-'), (6, '-'), (0, '-'), (6, '-'), (4, '-'), (1, 'or'), (2, 'not' ), (4, 'is'), (2, 'to')] | i.append((int(g[0]), g[1])) | g = ['4', 'the']; i = [(0, '-'), (6, '-'), (0, '-'), (6, '-'), (4, '-'), (1, 'or'), (2, 'not'), (4, 'is'), (2, 'to'), (4, 'the')] |
c = 'do'; y = 3 | y = len(c) | c = 'do'; y = 2 |
b = {'c': 1, 'd': 1, 'e': 1, 'a': -1, 'b': -1}; y = 'c' | b[y] = b.get(y, 0) - 1 | b = {'c': 0, 'd': 1, 'e': 1, 'a': -1, 'b': -1}; y = 'c' |
f = {'a': 0, 'b': 0, 'c': 0, 'd': 0}; i = 'e' | f[i] = 0 | f = {'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0}; i = 'e' |
d = ['a']; i = 1; j = 1; s = 'abba' | d.append(''.join(sorted(s[j:j + i]))) | d = ['a', 'b']; i = 1; j = 1; s = 'abba' |
d = 0.25; h = 5; k = 1; n = 1.0 | d *= (n - k) / (h - 1 - k) | d = 0.0; h = 5; k = 1; n = 1.0 |
n = 4; p = 0 | p = n | n = 4; p = 4 |
l = ['M', 1, 3] | l[2] -= 1 | l = ['M', 1, 2] |
f = 12; i = 1; j = 3; z = [20, 7, 8, 2, 5] | f = min(f, z[i] - z[j]) | f = 5; i = 1; j = 3; z = [20, 7, 8, 2, 5] |
b = [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, 0, 0, 0, 0, 0, 0]; l = 2 | u = b[l] | b = [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, 0, 0, 0, 0, 0, 0]; l = 2; u = 1 |
h = ''; s = 'GAAATAAA'; w = 0 | h = s[w] | h = 'G'; s = 'GAAATAAA'; w = 0 |
i = 99991; q = 2; w = 3 | q = q * w % i | i = 99991; q = 6; w = 3 |
k = 98 | k += 1 | k = 99 |
u = [5, 10, 3] | u = list(zip(u, list(range(len(u))))) | u = [(5, 0), (10, 1), (3, 2)] |
q = [0, 0, 0, 0, 0, 0, 0, 0, 0] | q.append(0) | q = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
e = 1.2000000000000005e-30 | e = e / 10 | e = 1.2000000000000005e-31 |
v = [3, 5, 6] | v = list(reversed(v)) | v = [6, 5, 3] |
n = 1.2000000000000011e-73 | n = n / 10 | n = 1.2000000000000011e-74 |
q = [1, 1, 4, 1, 1]; w = 5 | j = sum(q[1:w]) | j = 7; q = [1, 1, 4, 1, 1]; w = 5 |
a = 2; k = 100; z = [0, 100, 0, -100, 0, 0] | z[a] += k | a = 2; k = 100; z = [0, 100, 100, -100, 0, 0] |
a = [(1, 1), (1, 2)]; i = 1; j = 2 | a.append((i, j - 1)) | a = [(1, 1), (1, 2), (1, 1)]; i = 1; j = 2 |
i = 1; j = 2; z = [2, 0, 0, 0] | i, j = 0, len(z) - 1 | i = 0; j = 3; z = [2, 0, 0, 0] |
b = 3; f = [1, 0, 0, 0, 0, 0]; g = [999, 1, 1, 1, 0]; i = 0; y = 5 | b = g[i] + f[min(i + 1, y)] | b = 999; f = [1, 0, 0, 0, 0, 0]; g = [999, 1, 1, 1, 0]; i = 0; y = 5 |
f = [[0, 0, 1], [0, 0, 1]]; i = 0; j = 1 | f[i][j] = 1 | f = [[0, 1, 1], [0, 0, 1]]; i = 0; j = 1 |
n = '3' | n = int(n) | n = 3 |
u = 16 | u = 2 * u | u = 32 |
l = 2081776; y = 't' | l ^= 1 << ord(y) - 95 | l = 4178928; y = 't' |
c = '1 '; m = [1, 2, 6, 3]; t = 1 | c = c + str(m[t]) + ' ' | c = '1 2 '; m = [1, 2, 6, 3]; t = 1 |
j = [0, 1, 1, 1, 999]; r = [1002, 3, 2, 1, 0] | r = list(j) | j = [0, 1, 1, 1, 999]; r = [0, 1, 1, 1, 999] |
b = {(2, 2, 2): 4, (1, 1, 1): 23}; g = 2, 2, 2; p = 23 | p += b[g] | b = {(2, 2, 2): 4, (1, 1, 1): 23}; g = (2, 2, 2); p = 27 |
m = 58; p = 2 | m += p | m = 60; p = 2 |
d = 7; h = 4; x = 7 | x = d + h | d = 7; h = 4; x = 11 |
r = [10, 8, -12]; v = [[11, 2, 4], [4, 5, 6]] | v.append(r) | r = [10, 8, -12]; v = [[11, 2, 4], [4, 5, 6], [10, 8, -12]] |
g = 'eg' | v = g[0] | g = 'eg'; v = 'e' |
z = ['.', 'X', '.'] | r.append(z) | r = [['.', 'X', '.']]; z = ['.', 'X', '.'] |
g = [4, 3, 2, 1]; l = 0; r = 2 | g[l:r + 1] = sorted(g[l:r + 1]) | g = [2, 3, 4, 1]; l = 0; r = 2 |
k = 2 | k = k + 1 | k = 3 |
a = [999, 1, 1, 1, 0]; i = 1; s = [0, 0, 2, 1, 0] | s[i] = s[i + 1] + a[i] | a = [999, 1, 1, 1, 0]; i = 1; s = [0, 3, 2, 1, 0] |
s = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | s.append(0) | s = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
i = 50; r = {(10): 3, (20): 2, (30): 1} | r[i] = r.get(i, 0) + 1 | i = 50; r = {10: 3, 20: 2, 30: 1, 50: 1} |
p = ['c', 'a', 'b', ' ', ' '] | l = len(p) | l = 5; p = ['c', 'a', 'b', ' ', ' '] |
q = [[2, 3], [4, -1], [5, -1], [6, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; r = '-1'; x = 3 | q[x][1] = int(r) | q = [[2, 3], [4, -1], [5, -1], [6, -1], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; r = '-1'; x = 3 |
t = 3 | t = t + 1 | t = 4 |
n = 4 | g = [[None for j in range(n)] for i in range(n)] | g = []; n = -63 |
h = 79.5; p = ['Harsh', '25', '26.5', '28\n']; u = 'Harsh' | o[u] = h / (len(p) - 1) | h = 79.5; o = {'Harsh': 26.5}; p = ['Harsh', '25', '26.5', '28\n']; u = 'Harsh' |
l = 1; n = 3 | l = n | l = 3; n = 3 |
b = 5.960464477539062e-07 | b /= 2 | b = 2.980232238769531e-07 |
m = 0; r = 1 | v = r - m | m = 0; r = 1; v = 1 |
e = 'lovely'; t = defaultdict(None, {'ive': 1, 'got': 1, 'a': 1}) | t[e] = 1 | e = 'lovely'; t = defaultdict(None, {'ive': 1, 'got': 1, 'a': 1, 'lovely': 1}) |
a = 3; t = [[1], [0], []]; u = 1 | t[a - 1].append(u - 1) | a = 3; t = [[1], [0], [0]]; u = 1 |
h = 3; p = '103'; s = ['9', '9', '9', '1', '0', '0', '0', '1', '0', '0', '1'] | p = ''.join(map(str, s[:h])) | h = 3; p = '999'; s = ['9', '9', '9', '1', '0', '0', '0', '1', '0', '0', '1'] |
a = '('; t = ['{', '{', '[', '[', '('] | t.append(a) | a = '('; t = ['{', '{', '[', '[', '(', '('] |
i = 3; l = 4584; o = [(167, 84), (421, 84), (283, 192), (433, 298), (164, 275), (320, 133)] | l += (o[i][0] - o[i - 1][0]) * (o[i][1] + o[i - 1][1]) | i = 3; l = 78084; o = [(167, 84), (421, 84), (283, 192), (433, 298), (164, 275), (320, 133)] |
g = 1000000000; i = 0; k = 2; n = [1, 1, 1, 2, 2] | g = n[i + k - 1] - n[i] | g = 0; i = 0; k = 2; n = [1, 1, 1, 2, 2] |
c = 'd'; x = [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] | x[ord(c) - 97] += 1 | c = 'd'; x = [0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
d = ['w', 'x', 'x', 'y', 'v']; k = 0 | d[k + 1] = d[k] | d = ['w', 'w', 'x', 'y', 'v']; k = 0 |
v = 10; x = 10 | u = (v ** 2 + x ** 2) ** 0.5 | u = 14.142135623730951; v = 10; x = 10 |
c = 0; i = 1; p = 'dhkc'; s = 'dkhc'; u = 'chk' | p = s[:c] + u[i] + u[:i] + s[c] + u[i + 1:] | c = 0; i = 1; p = 'hcdk'; s = 'dkhc'; u = 'chk' |
y = 1 | y -= 1 | y = 0 |
c = ']'; i = 0; s = '{{[[(())]]}}' | c = s[i] | c = '{'; i = 0; s = '{{[[(())]]}}' |
f = {'\n': 0, 'a': 1, 'e': 1, 'i': 2, 'o': 2, 'u': 1}; j = 6; r = '\naeiouuoiea' | f[r[j]] += 1 | f = {'\n': 0, 'a': 1, 'e': 1, 'i': 2, 'o': 2, 'u': 2}; j = 6; r = '\naeiouuoiea' |
n = ['a']; o = 'bb' | n = list(o) | n = ['b', 'b']; o = 'bb' |
q = [0, 0, 1, 0]; u = 2; v = 3 | q[v] = u | q = [0, 0, 1, 2]; u = 2; v = 3 |
p = '910001001'; u = 3 | p = ('', p[u:])[exists] | d = True; p = '001001'; u = 3 |
g = 'A' | m = m + g | g = 'A'; m = 'mlqA' |
b = [3]; x = 4 | x = b.pop() | b = []; x = 3 |
l = -1; r = 1 | m = l + (r - l) // 2 | l = -1; m = 0; r = 1 |
x = 144115188075855872 | x *= 2 | x = 288230376151711744 |
r = ['32,62', '42,68', '12,98'] | s = [(int(n.split(',')[0]), int(n.split(',')[1])) for n in r] | r = ['32,62', '42,68', '12,98']; s = [(32, 62), (42, 68), (12, 98)] |
i = 'o'; n = 'I' | n += i | i = 'o'; n = 'Io' |
m = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; x = 0; y = 1; z = 1 | z = m[y][x] | m = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; x = 0; y = 1; z = 2 |
i = 0; t = 'd'; u = 'dkhc' | t = u[:i] | i = 0; t = ''; u = 'dkhc' |
i = 0; q = ['2'] | q[i] = int(q[i]) | i = 0; q = [2] |
a = 'c'; q = {'c': 0, 'd': 1, 'b': 1}; y = 1 | y = q[a] | a = 'c'; q = {'c': 0, 'd': 1, 'b': 1}; y = 0 |
c = 1; l = [] | c = len(l) | c = 0; l = [] |
o = 1.5777218104420236e-30; t = 2 | o /= t | o = 7.888609052210118e-31; t = 2 |
c = {(1): {1, 2, 3}}; l = 0; z = 1 | l += len(c[z]) | c = {1: {1, 2, 3}}; l = 3; z = 1 |
m = [1, 2] | h = m[0] | h = 1; m = [1, 2] |
q = '3'; v = '2' | v, q = [int(v), int(q)] | q = 3; v = 2 |
g = 'h'; n = 'anic' | g = g + n[k] | g = 'hn'; k = True; n = 'anic' |
h = 'remove'; m = '9'; w = 'discard 9' | h, m = w.split() | h = 'discard'; m = '9'; w = 'discard 9' |
a = 2; i = 3; x = [4, 5, 7, 5] | a = len(x) - i | a = 1; i = 3; x = [4, 5, 7, 5] |
w = 3 | t = [-1] * (w + 1) | t = [-1, -1, -1, -1]; w = 3 |
l = True; r = 3; x = '9100010001' | x = ('', x[r:])[l] | l = True; r = 3; x = '0010001' |
e = 1 | w = e + 1 | e = 1; w = 2 |
a = 21; i = 3; j = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42] | a = j[i] | a = 36; i = 3; j = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42] |
i = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'e': 1, 'f': 1, 'g': 1}; j = 'h' | i[j] = 1 | i = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'e': 1, 'f': 1, 'g': 1, 'h': 1}; j = 'h' |
i = 1; q = [2, 0]; s = [[0, 2], [1, 1]] | q[i] += sum(s[i]) | i = 1; q = [2, 2]; s = [[0, 2], [1, 1]] |
n = 8; o = [[2, 3], [-1, 4], [-1, 5], [6, -1], [7, 8], [9, -1], [-1, -1], [10, 11], [-1, -1], [-1, -1], [-1, -1]] | o[n - 1][0] = o[n - 1][1] | n = 8; o = [[2, 3], [-1, 4], [-1, 5], [6, -1], [7, 8], [9, -1], [-1, -1], [11, 11], [-1, -1], [-1, -1], [-1, -1]] |
i = 3; n = [4, 4, 4, 1, 0] | n[i] += 1 | i = 3; n = [4, 4, 4, 2, 0] |
n = 1; z = 1 | o = min(z, n) | n = 1; o = 1; z = 1 |
l = ['a', 'b', 'r', 'a', 'c', 'k', 'd', 'a', 'b', 'r', 'a']; s = 'abracadabra' | s = ''.join(l) | l = ['a', 'b', 'r', 'a', 'c', 'k', 'd', 'a', 'b', 'r', 'a']; s = 'abrackdabra' |
d = [-1, -1, 0, -1]; l = 6; x = 3 | d[x] = l | d = [-1, -1, 0, 6]; l = 6; x = 3 |
a = '111111111111111' | a += '0' | a = '1111111111111110' |
l = ['CANDY', '5']; r = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 10)]) | r[' '.join(l[:len(l) - 1])] = int(l[len(l) - 1]) | l = ['CANDY', '5']; r = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 10), ('CANDY', 5)]) |
c = [0, 1, 2, 3, 2, 2, 1, 1]; i = 7; s = 1 | c[i] = c[i] - s | c = [0, 1, 2, 3, 2, 2, 1, 0]; i = 7; s = 1 |
c = '1'; s = '0101'; t = 2 | c += s[t] | c = '10'; s = '0101'; t = 2 |
m = 1000000007; r = 4; x = 16 | r = r * x % m | m = 1000000007; r = 64; x = 16 |
c = 'g'; s = [2, 2, 2, 2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | s[ord(c) - 97] += 1 | c = 'g'; s = [2, 2, 2, 2, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
i = {1260, 1581, -786, -939, 630, 315, -1572}; s = -297 | i.add(s) | i = {1260, 1581, -786, -939, 630, -297, 315, -1572}; s = -297 |