start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
n = 5 | l = [0] * n | l = [0, 0, 0, 0, 0]; n = 5 |
i = 2; x = ['d', 'c', 'b', 'b'] | i = len(x) - 1 | i = 3; x = ['d', 'c', 'b', 'b'] |
i = 0; t = [[0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0]] | t[0][i] = 1 | i = 0; t = [[1, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0]] |
c = [1, 1, 1, 2, 1]; i = 3 | c[i - 1] += 1 | c = [1, 1, 2, 2, 1]; i = 3 |
d = 4; h = [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, 0, 0, 0, 0, 0, 0]; s = set() | s.add(h[d]) | d = 4; h = [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, 0, 0, 0, 0, 0, 0]; s = {0} |
c = 5; h = 4; i = 2; v = [{(1): 1}, {(0): 1, (2): 1}, {(1): 1, (3): 1}, {(2): 1, (4): 1}, {(3): 1, (5): 1}, {(4): 1}] | v[i][h] = c | c = 5; h = 4; i = 2; v = [{1: 1}, {0: 1, 2: 1}, {1: 1, 3: 1, 4: 5}, {2: 1, 4: 1}, {3: 1, 5: 1}, {4: 1}] |
e = 'b '; i = 3; m = ['c', 'a', 'b', ' ', ' '] | e = ''.join(m[i:i + 2]) | e = ' '; i = 3; m = ['c', 'a', 'b', ' ', ' '] |
i = 3; l = 16; y = [1, 5, 10, 12, 111, 200, 1000] | l += y[i] | i = 3; l = 28; y = [1, 5, 10, 12, 111, 200, 1000] |
j = 2 | j += 1 | j = 3 |
i = 12; w = [0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1] | w[i] += 1 | i = 12; w = [0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1] |
j = 3 | j += 1 | j = 4 |
g = {'a': 3, 'b': 1}; x = 'b' | g[x] += 1 | g = {'a': 3, 'b': 2}; x = 'b' |
i = 0; l = [100, 100, 0, 0, -100, -100] | a += l[i] | a = 127; i = 0; l = [100, 100, 0, 0, -100, -100] |
g = [1, 0, 1]; p = 51 | p += sum(g) | g = [1, 0, 1]; p = 53 |
e = 4 | e *= 2 | e = 8 |
j = [22, 79, 21]; r = '22*79-' | r += str(j[-1]) | j = [22, 79, 21]; r = '22*79-21' |
d = [2, 1, '3', '1', '4']; j = 2 | d[j] = int(d[j]) | d = [2, 1, 3, '1', '4']; j = 2 |
p = 256; u = ['1', '2', '4', '8', '16', '32', '64', '128'] | u.append(str(p)) | p = 256; u = ['1', '2', '4', '8', '16', '32', '64', '128', '256'] |
o = [2, 4]; p = [4, 9] | p.remove(o[1]) | o = [2, 4]; p = [9] |
s = {'a': 2}; x = 'b' | s[x] = 1 | s = {'a': 2, 'b': 1}; x = 'b' |
i = 91 | i += 1 | i = 92 |
q = 2; s = 1, -1, 5 | q += s[2] | q = 7; s = (1, -1, 5) |
p = [0, 1] | m = p[1] | m = 1; p = [0, 1] |
k = '2 3' | a, b = [int(n) for n in k.split()] | a = 2; b = 3; k = '2 3' |
s = 1.200000000000001e-66; x = 1.200000000000001e-65 | x = s % 10 | s = 1.200000000000001e-66; x = 1.200000000000001e-66 |
s = [2, 1, 4] | j = s | j = [2, 1, 4]; s = [2, 1, 4] |
c = '3'; w = '9' | c, w = int(c), int(w) | c = 3; w = 9 |
x = 'i' | b.append(x) | b = ['i']; x = 'i' |
j = ['i', 'f,i', 'a,f,i', 'a,f,i,i', 'a,f,h,i,i,k,l,u', 'a,f,h,i,i,k,l,q,u', 'a,f,h,i,i,k,l,q,q,u', 'f']; u = ['a', 'f'] | j.append(','.join(u)) | j = ['i', 'f,i', 'a,f,i', 'a,f,i,i', 'a,f,h,i,i,k,l,u', 'a,f,h,i,i,k,l,q,u', 'a,f,h,i,i,k,l,q,q,u', 'f', 'a,f']; u = ['a', 'f'] |
g = [1, 1, 1]; x = '0' | g.append(int(x)) | g = [1, 1, 1, 0]; x = '0' |
m = 3; u = 3 | x = u - m | m = 3; u = 3; x = 0 |
g = [5, 2] | del g[0] | g = [2] |
h = 7; i = 13; y = [0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0] | h += y[i] % 2 | h = 8; i = 13; y = [0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0] |
a = [1, 2, 2]; c = [1, 2, 0]; u = 2; v = 2 | c[u] = c[u - 1] + 1 if v > a[u - 1] else 1 | a = [1, 2, 2]; c = [1, 2, 1]; u = 2; v = 2 |
c = '3 4\n'; i = ['10', '3'] | i = c.split() | c = '3 4\n'; i = ['3', '4'] |
c = 2; f = -1; j = 2 | j, f, c = -1, -1, 0 | c = 0; f = -1; j = -1 |
b = '\\.*,*'; p = '\\.*,*' | b = p | b = '\\.*,*'; p = '\\.*,*' |
f = '1'; i = 0; s = '16' | f = f + s[i] | f = '11'; i = 0; s = '16' |
f = 'bcd'; t = ['b', 'c'] | t = sorted(f) | f = 'bcd'; t = ['b', 'c', 'd'] |
r = 0; x = 5 | r += x | r = 5; x = 5 |
j = []; q = [4, 5] | q = j | j = []; q = [] |
l = [4, 4]; r = [[1, 4]] | r.append(l) | l = [4, 4]; r = [[1, 4], [4, 4]] |
d = [None, None, None, None] | d.append(None) | d = [None, None, None, None, None] |
h = 1; j = 2; l = [0, 0, 1, 2, 1, 1, 0, 0] | l[j] = l[j] - h | h = 1; j = 2; l = [0, 0, 0, 2, 1, 1, 0, 0] |
c = [1, 5, 3, 4, 2] | c.sort() | c = [1, 2, 3, 4, 5] |
k = '5'; n = '15' | n, k = [int(n), int(k)] | k = 5; n = 15 |
i = 0; j = 4; l = 'ifailuhkqq'; o = ['i', 'if', 'ifa', 'ifai'] | o.append(l[i:j + 1]) | i = 0; j = 4; l = 'ifailuhkqq'; o = ['i', 'if', 'ifa', 'ifai', 'ifail'] |
p = ['1', '2'] | w = int(p[0]) | p = ['1', '2']; w = 1 |
i = 7; t = [2, 4, 2, 6, 1, 7, 8, 9, 2, 1]; v = [0, 0, 0, 0, 0, 0, 0, 0, 2, 1] | v[i] = v[i + 1] + 1 if t[i] > t[i + 1] else 1 | i = 7; t = [2, 4, 2, 6, 1, 7, 8, 9, 2, 1]; v = [0, 0, 0, 0, 0, 0, 0, 3, 2, 1] |
d = [1, 0, 0]; f = 3; i = 7; l = [9, 7, 5, 3, 1] | d[l.index(i) % f] += 1 | d = [1, 1, 0]; f = 3; i = 7; l = [9, 7, 5, 3, 1] |
g = b'2 5\n1 0 5\n1 1 7\n1 0 3\n2 1 0\n2 1 1\n\n\n\n'; q = '2 5\n' | g = list(map(int, q.strip().split(' '))) | g = [2, 5]; q = '2 5\n' |
i = 20; j = 4; l = 3; s = '010203' | i = int(s[j:j + l]) | i = 3; j = 4; l = 3; s = '010203' |
j = 1.2000000000000002e-22; x = 1.2000000000000003e-23 | j = x % 10 | j = 1.2000000000000003e-23; x = 1.2000000000000003e-23 |
a = 2; b = 10995116277760; c = 10995116277826 | c += a ^ b | a = 2; b = 10995116277760; c = 21990232555588 |
i = 3; p = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42]; s = 21 | s = p[i] | i = 3; p = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42]; s = 36 |
n = 1; t = 5 | t += n | n = 1; t = 6 |
f = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; n = [[1, 2, 1], [3, 2, 2], [4, 3, 4]] | j = 2 * len(f) * len(n) | f = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; j = 18; n = [[1, 2, 1], [3, 2, 2], [4, 3, 4]] |
k = 0 | k += 1 | k = 1 |
o = 3; r = 4; y = [-1, 4, 1, 2, 0, 0] | y[r] = o | o = 3; r = 4; y = [-1, 4, 1, 2, 3, 0] |
a = [6, 6, 2015]; n = [9, 6, 2015] | r = 15 * (n[0] - a[0]) | a = [6, 6, 2015]; n = [9, 6, 2015]; r = 45 |
t = 'love'; u = 'to' | t = u.strip() | t = 'to'; u = 'to' |
k = 3; l = [9, 6, 3, 5, 2]; p = 5 | p = l[k] ^ l[k - 1] | k = 3; l = [9, 6, 3, 5, 2]; p = 6 |
i = 1; l = 3; r = 'abc'; v = 'abcd' | r = ''.join(sorted(v[i:i + l])) | i = 1; l = 3; r = 'bcd'; v = 'abcd' |
s = 'aba' | o = len(s) | o = 3; s = 'aba' |
i = 1; s = ['4', '2', '6', '1', '10']; u = 4 | u = int(s[i]) | i = 1; s = ['4', '2', '6', '1', '10']; u = 2 |
g = 244 | q = 256 - g | g = 244; q = 12 |
m = 3, 3; v = {(0, 1), (1, 2), (3, 2), (1, 3), (2, 2), (3, 1), (1, 4), (2, 1), (1, 5), (1, 1), (0, 5), (2, 3), ...} | v.add(m) | m = (3, 3); v = {(0, 1), (1, 2), (3, 2), (1, 3), (3, 3), (3, 1), (1, 4), (2, 1), (1, 5), (0, 5), (2, 3), (2, 2), Ellipsis, (1, 1)} |
b = '111111111111111000011101101' | b += '1' | b = '1111111111111110000111011011' |
i = 3; z = [1, 12, 2] | z.append(i) | i = 3; z = [1, 12, 2, 3] |
q = '0000000000000000000000000000' | q += '0' | q = '00000000000000000000000000000' |
i = 2; j = 8; x = 'abcabcddd'; y = {'ab': 0, 'bc': 0, 'ca': 0, 'cd': 0, 'dd': 0} | y[x[j:j + i + 1]] = 0 | i = 2; j = 8; x = 'abcabcddd'; y = {'ab': 0, 'bc': 0, 'ca': 0, 'cd': 0, 'dd': 0, 'd': 0} |
s = 3 | s += 1 | s = 4 |
c = [50] | c = list(filter(c[0].__ne__, c)) | c = [] |
d = deque([(2, 2)]); g = 2, 1 | g = d.popleft() | d = deque([]); g = (2, 2) |
k = [0, 0, 0, 2, 0, 0]; z = [[1, 1, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0], [1, 1, 1, 0, 0, 0], [0, 0, 2, 4, 4, 0]] | z.append(k) | k = [0, 0, 0, 2, 0, 0]; z = [[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]] |
s = ['a'] | del s[i - 1] | i = False; s = [] |
o = [[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]]; s = 6; x = 2; y = 2 | s = o[y][x] + o[y][x + 1] + o[y][x + 2] + o[y + 1][x + 1] + o[y + 2][x] + o[ y + 2][x + 1] + o[y + 2][x + 2] | o = [[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]]; s = 7; x = 2; y = 2 |
e = 8 | e = e << 1 | e = 16 |
t = 3; x = ['4', '3'] | t = int(x[0]) | t = 4; x = ['4', '3'] |
c = '3'; n = [1, 2, 3, 4] | n.append(int(c)) | c = '3'; n = [1, 2, 3, 4, 3] |
i = 1; j = 2; s = 'abcd'; x = 'abcd' | x = ''.join(sorted(s[i:j])) | i = 1; j = 2; s = 'abcd'; x = 'b' |
b = [1, 0, 1] | b.append(1) | b = [1, 0, 1, 1] |
a = '1'; y = 6 | y = y + int(a) | a = '1'; y = 7 |
r = 'cdcd'; w = 'cdd' | w = ''.join(sorted(r)) | r = 'cdcd'; w = 'ccdd' |
m = 524288 | m = m >> 1 | m = 262144 |
n = [5184, 4489, 8464, 9025, 3481, 3364, 9025, 8836, 7056]; p = 83 | n.append(p ** 2) | n = [5184, 4489, 8464, 9025, 3481, 3364, 9025, 8836, 7056, 6889]; p = 83 |
b = 'abb'; i = 1; j = 0; s = 'abcd' | b = ''.join(sorted(s[j:j + i])) | b = 'a'; i = 1; j = 0; s = 'abcd' |
g = 1 | g = g + 2 | g = 3 |
h = 30; q = [1, 5, 14] | q.append(h) | h = 30; q = [1, 5, 14, 30] |
a = [1, 1, 2, 2, 3, 3, 3, 4] | v = a[0] | a = [1, 1, 2, 2, 3, 3, 3, 4]; v = 1 |
a = 47; i = 11; j = 37 | a = i ^ j | a = 46; i = 11; j = 37 |
j = 0; k = 2 | k = j + 1 | j = 0; k = 1 |
d = 108; k = 2; u = 102 | u = d + k | d = 108; k = 2; u = 110 |
e = '0000000000000100' | e = '0' + e | e = '00000000000000100' |
c = 'a'; o = 5; z = 97 | c = chr(o + z) | c = 'f'; o = 5; z = 97 |
y = 1 | y += 1 | y = 2 |
d = 165; i = 3; m = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] | d -= m[i] | d = 135; i = 3; m = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] |
i = '0'; x = '111111111111111' | x += '1' if i == '0' else '0' | i = '0'; x = '1111111111111111' |
h = [['a', 'b', 'c', 'd', 'e'], ['f', 'g', 'h', 'i', 'j'], ['k', 'l', 'm', 'n', 'o'], ['p', 0, 0, 0, 0], [0, 0, 0, 0, 0]]; i = 3; w = 1; z = 'q' | h[i][w] = z | h = [['a', 'b', 'c', 'd', 'e'], ['f', 'g', 'h', 'i', 'j'], ['k', 'l', 'm', 'n', 'o'], ['p', 'q', 0, 0, 0], [0, 0, 0, 0, 0]]; i = 3; w = 1; z = 'q' |
r = [2, 4, 3, 5, 2]; v = 6 | r.append(v) | r = [2, 4, 3, 5, 2, 6]; v = 6 |
Subsets and Splits