start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
w = 21 | w += 1 | w = 22 |
e = 0; i = 1; n = [1, 3, 4, 2] | e = n.index(i + 1) | e = 3; i = 1; n = [1, 3, 4, 2] |
a = [0, 2, 5]; e = 0; u = 1 | e = max(0, a[u] - 1) | a = [0, 2, 5]; e = 1; u = 1 |
i = 8 | i *= 2 | i = 16 |
a = '00000' | a += '0' | a = '000000' |
x = [7, 2, 4, 6, 5, 9, 12, 11] | x = sorted(x) | x = [2, 4, 5, 6, 7, 9, 11, 12] |
h = 60; l = ['1', '78']; y = 1 | [y, h] = map(int, l) | h = 78; l = ['1', '78']; y = 1 |
p = 10 | p = p // 10 | p = 1 |
e = {'a': 0, 'b': 0}; j = 99 | e[chr(j)] = 0 | e = {'a': 0, 'b': 0, 'c': 0}; j = 99 |
i = 12; n = {(0): 0, (1): 0, (2): 0, (3): 0, (4): 0, (5): 0, (6): 0, (7): 0, (8): 0, (9): 0, (10): 0, (11): 0} | n[i] = 0 | i = 12; n = {0: 0, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0, 8: 0, 9: 0, 10: 0, 11: 0, 12: 0} |
k = ['f', 'g']; v = 'g' | k.remove(v) | k = ['f']; v = 'g' |
a = [100, 99, 98]; v = 'b' | a.append(ord(v)) | a = [100, 99, 98, 98]; v = 'b' |
r = [[1, 0]]; y = [[1, 0]] | r.append(y.pop(0)) | r = [[1, 0], [1, 0]]; y = [] |
l = 'N'; x = 'IM' | x += l | l = 'N'; x = 'IMN' |
d = ['{']; i = '[' | i = d.pop() | d = []; i = '{' |
k = [11, 3]; o = ['4', '2', '5', '1'] | o.append(str(k[1])) | k = [11, 3]; o = ['4', '2', '5', '1', '3'] |
k = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2]]; x = 0; y = 2; z = 1 | k.append([x, y, z]) | k = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2], [0, 2, 1]]; x = 0; y = 2; z = 1 |
h = [[3, 6, 9], [0, 3, 0], [0, 0, 0]]; i = 1; j = 2; v = [3, 3, 3] | h[i][j] = h[i][j - 1] + v[j] | h = [[3, 6, 9], [0, 3, 6], [0, 0, 0]]; i = 1; j = 2; v = [3, 3, 3] |
b = 3; p = [4, 4] | p.append(b) | b = 3; p = [4, 4, 3] |
t = '111' | t += '1' | t = '1111' |
a = [6, 5, 4]; i = 2; y = [6, 5] | y.append(a[i]) | a = [6, 5, 4]; i = 2; y = [6, 5, 4] |
a = 1; b = 2; r = 5 | a, b = b, r | a = 2; b = 5; r = 5 |
a = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1], [1, 4, 6, 4], [1]]; i = 4 | a[i].append(1) | a = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1], [1, 4, 6, 4, 1], [1]]; i = 4 |
c = 'e'; m = 'b' | m += c | c = 'e'; m = 'be' |
i = 1; j = '2'; p = '100'; s = '101103' | p = s[i:i + len(j)] | i = 1; j = '2'; p = '0'; s = '101103' |
c = Counter({'a': 2, 'b': 3, 'c': 2, 'd': 1, 'e': 1}); k = 'd'; u = [('a', 2), ('b', 3), ('c', 2)] | u.append((k, c[k])) | c = Counter({'b': 3, 'a': 2, 'c': 2, 'd': 1, 'e': 1}); k = 'd'; u = [('a', 2), ('b', 3), ('c', 2), ('d', 1)] |
n = 0; p = [0, 0]; x = [1, 1] | p[x[n] - 1] = 1 | n = 0; p = [1, 0]; x = [1, 1] |
b = [2, 1, 3, 5, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14]; d = 2; i = 3; p = [2, 3, 1]; z = [4, 6, 4] | z[d] = b[p[d] - 1 + i] | b = [2, 1, 3, 5, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14]; d = 2; i = 3; p = [2, 3, 1]; z = [4, 6, 5] |
j = 2; x = 2 | j = x | j = 2; x = 2 |
i = 0; j = 0; s = 'abba' | x = tuple(sorted(s[i:j + 1])) | i = 0; j = 0; s = 'abba'; x = ('a',) |
h = 3; s = 2, -4 | h += s[1] | h = -1; s = (2, -4) |
g = [1, 3, 4, 2]; l = 4 | w = g.index(l) | g = [1, 3, 4, 2]; l = 4; w = 2 |
p = '1' | i = int(p) | i = 1; p = '1' |
o = 'f'; z = {'a', 'k', 's', 'r', 'e', 'y', 'n', 'i', 'j', 'w', 'c', 'm', 'd', 'u', 'g', 'l', 'v', 'q', 'p', ...} | z.add(o.lower()) | o = 'f'; z = {'c', 'j', 'l', 'p', 'w', 'i', 'y', 'd', 'f', 'v', 'e', 'r', 'm', 'k', 'a', 'q', Ellipsis, 'u', 's', 'n', 'g'} |
d = [[2, 4]]; m = {(1): 1, (2): 2} | m[2] = d[0][1] | d = [[2, 4]]; m = {1: 1, 2: 4} |
h = [1, 2, 3, 4]; i = 3; m = 6; v = 6 | v = m + h[i] | h = [1, 2, 3, 4]; i = 3; m = 6; v = 10 |
a = 5; d = 0; m = 13 | d += m // a | a = 5; d = 2; m = 13 |
e = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 1], [0, 0, 0, 2, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]]; i = 2; j = 5 | e[i][j] = max(e[i][j - 1], e[i - 1][j]) | e = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 1], [0, 0, 0, 2, 0, 1], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]]; i = 2; j = 5 |
e = [[3, 2, 1, 1, 1], [4, 3, 2], [1, 1, 4, 1]]; l = 1 | q = e[l] | e = [[3, 2, 1, 1, 1], [4, 3, 2], [1, 1, 4, 1]]; l = 1; q = [4, 3, 2] |
o = ['we']; p = 'do' | o.append(p) | o = ['we', 'do']; p = 'do' |
i = 1; j = 1; m = None | m = i, j | i = 1; j = 1; m = (1, 1) |
p = 2199023255552 | p *= 2 | p = 4398046511104 |
c = 'hk'; i = 7; l = 2; s = 'ifailuhkqq' | c = list(s[i:i + l]) | c = ['k', 'q']; i = 7; l = 2; s = 'ifailuhkqq' |
n = '1000000000000000000000000' | n += '0' | n = '10000000000000000000000000' |
o = '1 1 3 3 6 8 9 9 '; x = 10 | o += str(x) + ' ' | o = '1 1 3 3 6 8 9 9 10 '; x = 10 |
i = 3; t = 1 | t = i - 1 | i = 3; t = 2 |
a = 5; i = 4; t = [1, 3, 4, 5, 6, 2] | a = t[i] | a = 6; i = 4; t = [1, 3, 4, 5, 6, 2] |
b = '01000000'; i = 6 | b = b[:i] + '1' + b[i + 1:] | b = '01000010'; i = 6 |
g = ['be', 'or']; p = ' - - - - - to' | p = ' ' + ' '.join(g) | g = ['be', 'or']; p = ' be or' |
y = '1 5 3' | y = list(map(int, y.split())) | y = [1, 5, 3] |
j = 2; u = [3, 4, 5, 2, 7] | u[j], u[j + 1] = u[j + 1], u[j] | j = 2; u = [3, 4, 2, 5, 7] |
f = 5; n = 3 | f = min(n, 43) | f = 3; n = 3 |
b = [1, 2, 1, 2, 1, 2, 1, 2]; i = 0 | v += b[i] | b = [1, 2, 1, 2, 1, 2, 1, 2]; i = 0; v = 55 |
j = ['{', '{']; n = '[' | n = j.pop() | j = ['{']; n = '{' |
a = ['c']; b = ['c']; c = 1; i = 'c' | c = b.count(i) - a.count(i) | a = ['c']; b = ['c']; c = 0; i = 'c' |
i = 1; s = 'aeiouuoiea'; t = [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] | t[ord(s[i]) - ord('a')] += 1 | i = 1; s = 'aeiouuoiea'; t = [1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
f = 'bcde'; g = ['bcdef', 'abcdefg'] | g.append(f) | f = 'bcde'; g = ['bcdef', 'abcdefg', 'bcde'] |
i = 1; v = ['I', 'came', 'from', 'the', 'moon.', 'He', 'went', 'She', 'went', 'to', 'the', 'drawing', 'room.']; w = ['came', 'from'] | w.append(v[i + 2].lower()) | i = 1; v = ['I', 'came', 'from', 'the', 'moon.', 'He', 'went', 'She', 'went', 'to', 'the', 'drawing', 'room.']; w = ['came', 'from', 'the'] |
a = [1, 2, 3, 3]; i = 0; l = 3 | l += a[i] | a = [1, 2, 3, 3]; i = 0; l = 4 |
r = 1 | r += 1 | r = 2 |
b = 6.217248937900877e-15 | b /= 2 | b = 3.1086244689504383e-15 |
c = 'a'; l = {'a': 2, 'b': 2, 'ab': 2, 'bb': 1, 'abb': 2} | x = (l[c] * l[c] - l[c]) / 2 | c = 'a'; l = {'a': 2, 'b': 2, 'ab': 2, 'bb': 1, 'abb': 2}; x = 1.0 |
f = ['b', 'c']; i = 'b' | f.remove(i) | f = ['c']; i = 'b' |
q = 5 | q = q + 1 | q = 6 |
b = ['1', '2', '3', '4', '10', '11']; i = 3; l = 6 | l = l + int(b[i]) | b = ['1', '2', '3', '4', '10', '11']; i = 3; l = 10 |
a = [[2, 3]]; i = {(2): [[2, 3]], (3): [[1, 4]], (4): [[4, 4]]}; x = 3 | a = i[x] | a = [[1, 4]]; i = {2: [[2, 3]], 3: [[1, 4]], 4: [[4, 4]]}; x = 3 |
l = ['a', 'ab']; x = 'ab' | l.append(x) | l = ['a', 'ab', 'ab']; x = 'ab' |
q = [2.7, 4.1, None]; w = 5.5; y = 2 | q[y] = w | q = [2.7, 4.1, 5.5]; w = 5.5; y = 2 |
c = 'a'; d = ['a', 'B', 'c']; i = 1 | c = d[i] | c = 'B'; d = ['a', 'B', 'c']; i = 1 |
k = 72; t = ( 850478588567862317521167644239926010288584608120796235886430763388588680378079017697280000000000000000 ) | t *= k | k = 72; t = 61234458376886086861524070385274672740778091784697328983823014963978384987221689274204160000000000000000 |
d = 7; i = 4; j = 2; p = [[0, 0, 0, 0, 0], [0, 0, 2, 0, 5], [0, 2, 0, 0, 0], [0, 0, 0, 0, 1], [0, 5, 0, 1, 0]] | p[i][j] = d | d = 7; i = 4; j = 2; p = [[0, 0, 0, 0, 0], [0, 0, 2, 0, 5], [0, 2, 0, 0, 0], [0, 0, 0, 0, 1], [0, 5, 7, 1, 0]] |
i = 0; l = 'gurwgrb'; s = 'zfzahm ' | s += l[i] | i = 0; l = 'gurwgrb'; s = 'zfzahm g' |
l = [1, 2, 1, 2, 1] | l.sort() | l = [1, 1, 1, 2, 2] |
a = [[4, 4], [3, 3]]; i = 1; p = 9 | a[i].append(p) | a = [[4, 4], [3, 3, 9]]; i = 1; p = 9 |
s = ['1', '20']; z = 97 | z = int(s[1]) | s = ['1', '20']; z = 20 |
q = 4 | h = q * [''] | h = ['', '', '', '']; q = 4 |
c = Counter({'A': 2, 'B': 2, 'C': 1}) | c['_'] = 0 | c = Counter({'A': 2, 'B': 2, 'C': 1, '_': 0}) |
g = {2, 3}; t = [{0, 1, 4}] | t.append(g) | g = {2, 3}; t = [{0, 1, 4}, {2, 3}] |
e = 0; t = {'1': [5, 2, 1, 8], '0': []}; y = 10 | t[str(e)].append(y) | e = 0; t = {'1': [5, 2, 1, 8], '0': [10]}; y = 10 |
j = 1 | k = j + 1 | j = 1; k = 2 |
a = 'a', 'f', 'i'; i = 1; j = 5; s = 'ifailuhkqq' | a = tuple(sorted(list(s[i:j]))) | a = ('a', 'f', 'i', 'l'); i = 1; j = 5; s = 'ifailuhkqq' |
o = [42] | o.pop() | o = [] |
p = 55 | r += p | p = 55; r = 139 |
i = 0 | i -= 1 | i = -1 |
d = 1; f = [1, 1, 1, 1] | f.append(d) | d = 1; f = [1, 1, 1, 1, 1] |
k = 1.0000000000000005e-71 | k = k / 10 | k = 1.0000000000000005e-72 |
a = 45; i = 1; k = 2 | a ^= a >> (k << i) | a = 47; i = 1; k = 2 |
x = 11 | x += 10 | x = 21 |
a = [1, 14]; d = deque([]) | d.append(a[1]) | a = [1, 14]; d = deque([14]) |
a = ['9']; e = 1; l = 2; s = '91011' | a.append(s[e:e + l]) | a = ['9', '10']; e = 1; l = 2; s = '91011' |
m = ['2', '5'] | d = int(m[1]) | d = 5; m = ['2', '5'] |
k = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42] | o = k[0] | k = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42]; o = 3 |
i = 4; m = 1; w = [0, 1, 2, 3, 3, 3, 2, 1] | w[i] = w[i] - m | i = 4; m = 1; w = [0, 1, 2, 3, 2, 3, 2, 1] |
c = [1, 2, 1, 2, 1, 0, 0, 0]; i = 5 | c[i] = c[i - 1] + 1 | c = [1, 2, 1, 2, 1, 2, 0, 0]; i = 5 |
i = 2; j = 1; o = [[[-1, -1], [-1, 0], [-1, 1], [-1, 2], [-1, 3]], [[0, -1], [-1, -1], [0, -1], [-1, -1], [0, -1]], [[1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, - 1]], [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1]]] | o[i][j][1] = o[i][j - 1][1] + 1 | i = 2; j = 1; o = [[[-1, -1], [-1, 0], [-1, 1], [-1, 2], [-1, 3]], [[0, -1], [-1, -1], [0, -1], [-1, -1], [0, -1]], [[1, -1], [-1, 0], [-1, -1], [-1, -1], [-1, -1]], [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1]]] |
i = 2; z = {(0): 'black', (1): 'black', (2): 'white', (3): 'white', (4): 'black'} | z[i] = 'grey' | i = 2; z = {0: 'black', 1: 'black', 2: 'grey', 3: 'white', 4: 'black'} |
i = 'h'; j = 2; o = {(2): ['a', 'b', 'c', 'd', 'f', 'g'], (3): ['e']} | o[j].append(i) | i = 'h'; j = 2; o = {2: ['a', 'b', 'c', 'd', 'f', 'g', 'h'], 3: ['e']} |
x = {(1): 'one'} | x[2] = 'two' | x = {1: 'one', 2: 'two'} |
a = [[0, 0], [0, 1]]; p = [[[0, 0], [1, 0]], [[0, 1], [1, 0]]] | a = p[0] | a = [[0, 0], [1, 0]]; p = [[[0, 0], [1, 0]], [[0, 1], [1, 0]]] |
b = 8; f = 21; i = 21; u = 8 | i = f + u * b | b = 8; f = 21; i = 85; u = 8 |