start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
i = 109; w = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l'] | w.append(chr(i)) | i = 109; w = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm'] |
y = ['cgatcg', 'gc'] | p = y[0] | p = 'cgatcg'; y = ['cgatcg', 'gc'] |
o = 2 | o = int(1) | o = 1 |
d = ['a', 'b']; j = 1 | f = d[j] | d = ['a', 'b']; f = 'b'; j = 1 |
c = ['c', 'd', 'e', 'f', 'g', 'h', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w']; i = 10; r = 'o' | r = c[i - 1] | c = ['c', 'd', 'e', 'f', 'g', 'h', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w']; i = 10; r = 'p' |
c = 1; e = [0, 1, 1, 1, 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]; j = 2 | c = c + e[j] | c = 2; e = [0, 1, 1, 1, 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]; j = 2 |
e = [3, 5, 4, 7, 16]; v = 16 | o = e.index(v) | e = [3, 5, 4, 7, 16]; o = 4; v = 16 |
c = ['4', '1', '5']; o = ['2', '3', '6', '7', '8'] | o.extend(c) | c = ['4', '1', '5']; o = ['2', '3', '6', '7', '8', '4', '1', '5'] |
b = [1, 5]; c = deque([]) | c.append((b[0], b[1])) | b = [1, 5]; c = deque([(1, 5)]) |
l = [['bcdef', 'abcdefg', 'bcde', 'bcdef']] | i = l[0] if l else None | i = ['bcdef', 'abcdefg', 'bcde', 'bcdef']; l = [['bcdef', 'abcdefg', 'bcde', 'bcdef']] |
j = [1, 2, 3, -250, 100]; v = [[1, 2, 3, -1, -2], [-5, -8, -1, 2, -150]] | v.append(j) | j = [1, 2, 3, -250, 100]; v = [[1, 2, 3, -1, -2], [-5, -8, -1, 2, -150], [1, 2, 3, -250, 100]] |
i = 2; t = [20, 30, 10]; z = 50 | z += t[i] | i = 2; t = [20, 30, 10]; z = 60 |
k = {'c', 'b', 'd', 'a', 'e'}; q = {'c', 'b', '\n', 'd', 'a'} | k = k.intersection(q) | k = {'a', 'b', 'c', 'd'}; q = {'c', '\n', 'd', 'b', 'a'} |
f = 'e'; o = {'a': 2, 'b': 2, 'c': 2, 'd': 2} | o[f] = 1 | f = 'e'; o = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 1} |
e = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233]; t = 377 | e.append(t) | e = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377]; t = 377 |
i = 0; j = 0 | s = i, j | i = 0; j = 0; s = (0, 0) |
a = [4, 2, 4, 6, 1]; i = 2; v = 12 | v -= a[i] | a = [4, 2, 4, 6, 1]; i = 2; v = 8 |
l = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200, 0] | j = [l[0]] | j = [1]; l = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200, 0] |
b = [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]; w = 'u' | b[ord(w) - ord('a')] += 1 | b = [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]; w = 'u' |
d = 1; i = 1; p = [3, 4] | d += pow(i + 1, p[1]) | d = 17.0; i = 1; p = [3, 4] |
d = 5; e = 5; v = [(0, 0), (1, 1), (2, 2), (3, 3), (4, 4)] | v.append((e, d)) | d = 5; e = 5; v = [(0, 0), (1, 1), (2, 2), (3, 3), (4, 4), (5, 5)] |
r = [0, 1, 1, 1, 999]; x = [0, 1, 1, 1, 999] | x = r[::-1] | r = [0, 1, 1, 1, 999]; x = [999, 1, 1, 1, 0] |
e = 510510; x = [0, 2, 6, 30, 210, 2310, 30030] | x.append(e) | e = 510510; x = [0, 2, 6, 30, 210, 2310, 30030, 510510] |
h = {(2): 1, (3): 1, (4): 1, (5): 1, (6): 1, (7): 1, (12): 1, (13): 1, (14): 1, (15): 1, (16): 1, (17): 1, (18): 1, (19): 1, (20): 1}; i = 21 | h[i] = h.get(i, 0) + 1 | h = {2: 1, 3: 1, 4: 1, 5: 1, 6: 1, 7: 1, 12: 1, 13: 1, 14: 1, 15: 1, 16: 1, 17: 1, 18: 1, 19: 1, 20: 1, 21: 1}; i = 21 |
q = {'give': 1, 'one': 1}; y = 'grand' | q[y] = 1 | q = {'give': 1, 'one': 1, 'grand': 1}; y = 'grand' |
h = '6 6 2015' | e = list(map(int, h.split(' '))) | e = [6, 6, 2015]; h = '6 6 2015' |
x = 802743475 | x = int(4294967296 - x) | x = 3492223821 |
f = -9; u = [7, 10, 9, 8, 7, 11, 6, 0, -2] | u.append(f) | f = -9; u = [7, 10, 9, 8, 7, 11, 6, 0, -2, -9] |
i = 11; s = 'be'; u = ['ab', 'cd', 'ef', 'gh', 'ij', 'ab', 'cd', 'ef', 'gh', 'ij', '', '', '', '', '', '', '', '', ''] | u[i] = s | i = 11; s = 'be'; u = ['ab', 'cd', 'ef', 'gh', 'ij', 'ab', 'cd', 'ef', 'gh', 'ij', '', 'be', '', '', '', '', '', '', ''] |
m = 32; p = 2 | m += p | m = 34; p = 2 |
w = ['i', 'l', 'u', 'h', 'k', 'q', 'q'] | w.sort() | w = ['h', 'i', 'k', 'l', 'q', 'q', 'u'] |
c = 'B'; w = ['B', 'A'] | w.append(c) | c = 'B'; w = ['B', 'A', 'B'] |
l = [[1, 20]]; q = [[2, 24], [4, 20], [3, 3]] | q = [list(k) for k in l] | l = [[1, 20]]; q = [[1, 20]] |
i = 'o'; j = 'Io' | j += i | i = 'o'; j = 'Ioo' |
k = ['2', '4']; s = {(1): [2]} | s.setdefault(int(k[0]), []).append(int(k[1])) | k = ['2', '4']; s = {1: [2], 2: [4]} |
i = [1, 1]; t = 6 | t = t + i[1] | i = [1, 1]; t = 7 |
f = 28657; s = 46368; t = 46368 | t = f + s | f = 28657; s = 46368; t = 75025 |
r = 1597; y = 2584 | r = y | r = 2584; y = 2584 |
q = 15 | q += 1 | q = 16 |
c = 2; g = 1; k = [[1, 1, 1], [1, 1, 1], [1, 2, 2], [1, 2, 3]]; m = 1 | m += k[c][g] | c = 2; g = 1; k = [[1, 1, 1], [1, 1, 1], [1, 2, 2], [1, 2, 3]]; m = 3 |
e = 'AD'; i = 8; u = ['A', 'A', 'B', 'C', 'A', 'A', 'A', 'D', 'A'] | e += u[i] | e = 'ADA'; i = 8; u = ['A', 'A', 'B', 'C', 'A', 'A', 'A', 'D', 'A'] |
i = 1; u = 'ABB' | u = u[:i + 1] + u[i + 2:] | i = 1; u = 'AB' |
c = 'haveaniceday'; i = 1; j = 1; r = 5; t = [['h', 'a', 'v', 'e'], ['a', 0, 0, 0], [0, 0, 0, 0]] | t[i][j] = c[r] | c = 'haveaniceday'; i = 1; j = 1; r = 5; t = [['h', 'a', 'v', 'e'], ['a', 'n', 0, 0], [0, 0, 0, 0]] |
i = 0; m = 6; r = [[], [], [], [], [], []] | r[i] = [(0) for _ in range(m)] | i = 0; m = 6; r = [[0, 0, 0, 0, 0, 0], [], [], [], [], []] |
i = 9; x = {'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5, 'f': 6, 'g': 7, 'h': 8, 'i': 9} | x[letters[i]] = i + 1 | i = 9; q = 'Qwtxg5wNs2'; x = {'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5, 'f': 6, 'g': 7, 'h': 8, 'i': 9, '2': 10} |
i = 3; j = 2 | o = max(o, i + j) | i = 3; j = 2; o = 5 |
a = 'B9'; k = ['0', '0', '0', '0', '1', '0', '0', '0'] | k = bin(int(a, 16))[2:] | a = 'B9'; k = '10111001' |
r = 4 | x = r | r = 4; x = 4 |
f = []; g = 'zfzahm' | f.append(g) | f = ['zfzahm']; g = 'zfzahm' |
i = 9; x = 9 | m = x // i | i = 9; m = 1; x = 9 |
k = [1, 1, 1, 2, 3]; z = 8 | z -= k.pop() | k = [1, 1, 1, 2]; z = 5 |
d = [2, 3, 2, 1, 3, 1] | d = list() | d = [] |
c = [[112, 42, 83, 119], [56, 125, 56, 49], [15, 78, 101, 43], [62, 98, 114, 108]]; p = 0; q = 0; u = 3; z = 3 | a = a + max(max(max(c[p][q], c[p][u]), c[z][q]), c[z][u]) | a = 48; c = [[112, 42, 83, 119], [56, 125, 56, 49], [15, 78, 101, 43], [62, 98, 114, 108]]; p = 0; q = 0; u = 3; z = 3 |
i = [['3', '4', '8', '5', '1', '2'], ['11', '10', '6', '7']]; n = 4; x = 2 | i.append(['.' for x in range(n)]) | i = [['3', '4', '8', '5', '1', '2'], ['11', '10', '6', '7'], ['.', '.', '.', '.']]; n = 4; x = 2 |
s = ['i', 'f', 'a'] | s.sort() | s = ['a', 'f', 'i'] |
f = ['EFGH']; z = 0 | z = sum(map(len, f)) | f = ['EFGH']; z = <map object at 0x7f1bf4244650> |
h = 2; n = {(203): 2, (204): 3, (205): 2}; x = 205 | n[x] = h + 1 | h = 2; n = {203: 2, 204: 3, 205: 3}; x = 205 |
n = 1.200000000000001e-92 | n = n / 10 | n = 1.2000000000000011e-93 |
m = '1111111111111111111111111111111' | m += '1' | m = '11111111111111111111111111111111' |
g = [4, 4, 0, 0, 0]; i = 2 | g[i] += 1 | g = [4, 4, 1, 0, 0]; i = 2 |
d = deque(['1', '2']); s = ['append', '3'] | getattr(d, s[0])(s[1]) | d = deque(['1', '2', '3']); s = ['append', '3'] |
l = ['1', '6', '16'] | l = list(map(int, l)) | l = [1, 6, 16] |
a = 9; p = [5, 10] | p.append(a) | a = 9; p = [5, 10, 9] |
i = 0; j = 0; k = 1; l = [[0, 0, 0]] | l.append([i, j, k]) | i = 0; j = 0; k = 1; l = [[0, 0, 0], [0, 0, 1]] |
i = 0; j = 0; v = [4, 2] | j = v[i] | i = 0; j = 4; v = [4, 2] |
i = 0; l = 3; m = [1, 3, 1, 2]; r = [0, 0, 0, 0] | r[i] = l - m[i] | i = 0; l = 3; m = [1, 3, 1, 2]; r = [2, 0, 0, 0] |
n = 1.2000000000000003e-10 | n = n / 10 | n = 1.2000000000000002e-11 |
d = 94429536874976; n = {(140058364340736): [4]}; p = []; y = [4] | y = n.get(d, p) | d = 94429536874976; n = {140058364340736: [4]}; p = []; y = [] |
b = {'a': 1, 'b': 0, 'c': 0, 'd': 0, 'e': 0, 'f': 0, 'g': 0, 'h': 0}; s = 'b' | b[s] += 1 | b = {'a': 1, 'b': 1, 'c': 0, 'd': 0, 'e': 0, 'f': 0, 'g': 0, 'h': 0}; s = 'b' |
a = 1000000007; j = 2; m = 3 | j = m * (m - 1) % a | a = 1000000007; j = 6; m = 3 |
d = '2 5 100\n' | d = [int(x) for x in d.split()] | d = [2, 5, 100] |
i = 1 | i = i + 2 | i = 3 |
e = 22; t = 24; u = 2 | e = t - u | e = 22; t = 24; u = 2 |
c = [6, 5, 8, 4, 7, 10, 9]; i = 0 | d = c[i] | c = [6, 5, 8, 4, 7, 10, 9]; d = 6; i = 0 |
f = 14930352; s = 24157817; t = 24157817 | t = f + s | f = 14930352; s = 24157817; t = 39088169 |
c = 1; i = 4; r = 3 | c, r = i // 5, i % 5 | c = 0; i = 4; r = 4 |
x = [[], []] | x.append([]) | x = [[], [], []] |
a = 26; h = [0, 7, 6, 5, 4, 27] | h += [a] | a = 26; h = [0, 7, 6, 5, 4, 27, 26] |
r = 0 | h.add(r) | h = {0}; r = 0 |
b = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 0, 64, 1, 67, 0, 68, 1, 71, 0, 72, 1, 75, 0, 76]; i = 77 | b.append(b[-1] ^ i) | b = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 0, 64, 1, 67, 0, 68, 1, 71, 0, 72, 1, 75, 0, 76, 1]; i = 77 |
a = 'lmno' | b = len(a) | a = 'lmno'; b = 4 |
k = 3 | b = k | b = 3; k = 3 |
i = 3; j = 3 | j = i + 1 | i = 3; j = 4 |
k = 5 | k = k - 1 | k = 4 |
z = ['c', 'd', 'c'] | z.sort() | z = ['c', 'c', 'd'] |
i = 2 | i = i - 2 | i = 0 |
j = 'SOSSOSSOS' | q = 'SOS' * (len(j) // 3) | j = 'SOSSOSSOS'; q = 'SOSSOSSOS' |
i = 'abc'; q = ['1', 'xy'] | i = i + q[1] | i = 'abcxy'; q = ['1', 'xy'] |
o = '10000' | o += '0' | o = '100000' |
u = 1 | u += 1 | u = 2 |
r = [0, 2, 1]; x = 0; y = 2; z = 2 | r = [x, y, z] | r = [0, 2, 2]; x = 0; y = 2; z = 2 |
d = 4 | n = d | d = 4; n = 4 |
x = [[0, 0, 0, 0, 0, 0], [0, 1, 1, 1, 0, 1], [0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 0, 1], [0, 0, 0, 0, 0, 0]] | d = id(x) | d = 139758038571840; x = [[0, 0, 0, 0, 0, 0], [0, 1, 1, 1, 0, 1], [0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 0, 1], [0, 0, 0, 0, 0, 0]] |
s = ['e', 'e', 'd', 'e', 'd', 'd', 'e', 'e', 'd'] | s.reverse() | s = ['d', 'e', 'e', 'd', 'd', 'e', 'd', 'e', 'e'] |
f = 'x'; k = 1; z = {(2): ['y'], (1): []} | z[k].append(f) | f = 'x'; k = 1; z = {2: ['y'], 1: ['x']} |
a = [1, 3, 4, 5, 6, 8, 9, 12] | j = set(a) | a = [1, 3, 4, 5, 6, 8, 9, 12]; j = {1, 3, 4, 5, 6, 8, 9, 12} |
j = 4; k = 'e-d-'; s = 'abcdefghijklmnopqrstuvwxyz' | k += s[j] | j = 4; k = 'e-d-e'; s = 'abcdefghijklmnopqrstuvwxyz' |
j = ''; n = 4 | n = len(j) | j = ''; n = 0 |
i = 'b'; v = [1, 1, 1, 2] | v.append(ord(i) - 96) | i = 'b'; v = [1, 1, 1, 2, 2] |
b = 1; n = 5 | n += b | b = 1; n = 6 |
Subsets and Splits