start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
i = '3'; p = 2; u = {(2): 0, (1): 1} | u[int(i)] = p | i = '3'; p = 2; u = {2: 0, 1: 1, 3: 2} |
i = 18; m = [0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1, 0, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0]; t = [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] | m[i] = t[i] - 1 | i = 18; m = [0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0]; t = [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] |
c = ['22', '5', '6', '33', '1', '4']; i = 5; o = [22, 5, 6, 33, 1] | o = o + [int(c[i])] | c = ['22', '5', '6', '33', '1', '4']; i = 5; o = [22, 5, 6, 33, 1, 4] |
h = 'DD__FQ_QQF'; q = ['AABCBC'] | h = q[0] if q else None | h = 'AABCBC'; q = ['AABCBC'] |
i = 16777216 | i = i * 2 | i = 33554432 |
d = 'ifailuhkqq'; i = 1; j = 8; r = 'kq' | r = ''.join(sorted(d[j:j + i + 1])) | d = 'ifailuhkqq'; i = 1; j = 8; r = 'qq' |
r = {'G': -1.0, 'A': 4.0, 'T': -1.0} | s = {c: r[c] for c in r if r[c] > 0} | r = []; s = {} |
q = [0] | q[m_i] = 1 | k = False; q = [1] |
r = ['f', 'a'] | r.sort() | r = ['a', 'f'] |
j = 0; u = [1] | u.append(j) | j = 0; u = [1, 0] |
a = 1; v = 1 | v = a | a = 1; v = 1 |
a = 66520193; w = 2401 | w *= a | a = 66520193; w = 159714983393 |
i = 1; o = ['5', '8', '14']; s = 5; t = 0 | t = int(o[i]) - s | i = 1; o = ['5', '8', '14']; s = 5; t = 3 |
b = ['l', 'm', 'o']; k = 'n' | b.append(k) | b = ['l', 'm', 'o', 'n']; k = 'n' |
a = [4, 8, 3, 11]; j = 3; p = 3 | a[p - 1] = a[j] | a = [4, 8, 11, 11]; j = 3; p = 3 |
b = [['-', '-', '-', '-', '-', 'to'], ['be'], [], ['be'], ['-', 'that'], [], [], [], [], [], [], []]; d = 'question'; x = 5 | b[x].append(d) | b = [['-', '-', '-', '-', '-', 'to'], ['be'], [], ['be'], ['-', 'that'], ['question'], [], [], [], [], [], []]; d = 'question'; x = 5 |
b = 't' | b = ord(b) | b = 116 |
e = [3, 2, 1]; i = 1 | i = e[0] - 1 | e = [3, 2, 1]; i = 2 |
i = 5; v = 4 | v = v ^ i | i = 5; v = 1 |
i = 0; j = 10; l = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ifailuh', 'ifailuhk', 'ifailuhkq']; s = 'ifailuhkqq' | l.append(s[i:j]) | i = 0; j = 10; l = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ifailuh', 'ifailuhk', 'ifailuhkq', 'ifailuhkqq']; s = 'ifailuhkqq' |
i = 1; k = 1; n = 3 | k = n - 1 - k + i | i = 1; k = 2; n = 3 |
p = 86642072; s = 1000000007 | p = p * p % s | p = 587905248; s = 1000000007 |
b = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 1, 2, 3, 3, 1, 4, 1, 4, 3, 1, 1, 1, 2, 1] | b = b[65:] | b = [] |
b = [10, 1, 10, 1, 10]; i = 3; q = [0, 0, 18, 27, 0]; w = [0, 9, 9, 0, 0] | w[i] = max(q[i - 1] + b[i - 1] - 1, w[i - 1]) | b = [10, 1, 10, 1, 10]; i = 3; q = [0, 0, 18, 27, 0]; w = [0, 9, 9, 27, 0] |
b = [1, 1, 3, 3, 6, 8, 9, 9, 10, 12, 13, 16, 16, 18, 20, 21, 21]; i = 1; n = 22 | b += [n] * i | b = [1, 1, 3, 3, 6, 8, 9, 9, 10, 12, 13, 16, 16, 18, 20, 21, 21, 22]; i = 1; n = 22 |
i = 0; j = {(0): ['a', 'b', 'c', 'd', 'd', 'e']} | b = j[i] | b = ['a', 'b', 'c', 'd', 'd', 'e']; i = 0; j = {0: ['a', 'b', 'c', 'd', 'd', 'e']} |
x = 1; z = 3 | a = abs(x - z) | a = 2; x = 1; z = 3 |
i = 0; m = [[1, 3, 1], [2, 1, 2], [3, 3, 3]] | g.append(sum(m[i])) | g = [5]; i = 0; m = [[1, 3, 1], [2, 1, 2], [3, 3, 3]] |
x = [[1, 5], [4, 7], [5, 7]]; y = [1, 5] | x.remove(y) | x = [[4, 7], [5, 7]]; y = [1, 5] |
l = 168.0 | l = l / 3 | l = 56.0 |
i = 5; j = 6; q = 'ifailuhkqq'; s = 'luhkqq' | s = q[i:j] | i = 5; j = 6; q = 'ifailuhkqq'; s = 'u' |
i = 73 | l = int(i / 5) * 5 + 5 | i = 73; l = 75 |
k = 0, 1 | h = k[1] | h = 1; k = (0, 1) |
i = 1; q = 'This$#is%'; r = 'i #' | q += r[i] | i = 1; q = 'This$#is% '; r = 'i #' |
i = 4 | e = e + i | e = 6.718281828459045; i = 4 |
a = [2, 3, 4, 2, 3, 6, 8, 4, 5]; i = 1; w = [0, 0, 1, 2, 1, 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] | w[a[i]] -= 1 | a = [2, 3, 4, 2, 3, 6, 8, 4, 5]; i = 1; w = [0, 0, 1, 1, 1, 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] |
l = 2 | i = i + l | i = -17; l = 2 |
g = 'abaa'; h = ['b', 'a', 'a'] | g = ''.join(h) | g = 'baa'; h = ['b', 'a', 'a'] |
d = ['remove', '9']; s = {2, 3, 4, 5, 6, 7, 8, 9} | s.remove(int(d[1])) | d = ['remove', '9']; s = {2, 3, 4, 5, 6, 7, 8} |
t = -1; x = '7' | t = len(x) - 1 | t = 0; x = '7' |
b = 3; f = 6; n = 12 | r = (n - f) % b | b = 3; f = 6; n = 12; r = 0 |
p = 15 | x.append(p) | p = 15; x = [15] |
c = [5, 1, 2]; e = 4 | c.append(e) | c = [5, 1, 2, 4]; e = 4 |
f = 0, 2; h = {(0, 1)} | h.add(f) | f = (0, 2); h = {(0, 1), (0, 2)} |
c = 22; i = 111 | c -= i | c = -89; i = 111 |
e = 'i' | e = chr(ord(e) - 32) | e = 'I' |
s = ['10', '5', '20', '20', '4', '5', '2', '25', '1'] | y = int(s[0]) | s = ['10', '5', '20', '20', '4', '5', '2', '25', '1']; y = 10 |
i = 1; j = 0; n = 'cdcd'; w = 'd' | w = n[j:j + i + 1] | i = 1; j = 0; n = 'cdcd'; w = 'cd' |
d = 0; i = 0; o = 6 | d += abs(i - o) | d = 6; i = 0; o = 6 |
f = [4, 0, 1, 2, 3]; v = [4, 0, 1, 2, 3]; x = 2 | v = f[:x] | f = [4, 0, 1, 2, 3]; v = [4, 0]; x = 2 |
k = {(0): [], (1): [1], (2): []}; r = 7; s = 1 | k[s].append(r) | k = {0: [], 1: [1, 7], 2: []}; r = 7; s = 1 |
e = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'ab': 1}; l = 'bc' | e[l] = e.get(l, 0) + 1 | e = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'ab': 1, 'bc': 1}; l = 'bc' |
a = ['a']; e = 'a' | e = ''.join(a) | a = ['a']; e = 'a' |
g = [[[], -2], [[], -1], [[3], -1], [[2], -1]]; j = [[[], -2], [[], -1], [[3], -1], [[2], -1]]; s = 2 | g[s][1] = 0 | g = [[[], -2], [[], -1], [[3], 0], [[2], -1]]; j = [[[], -2], [[], -1], [[3], -1], [[2], -1]]; s = 2 |
c = 1 | c += 1 | c = 2 |
r = 2 | r *= 2 | r = 4 |
h = {'131072', '8192', '2', '65536', '512', '16384', '4096', '64', '32768', '4', '8', '32', '16', '256', ...}; i = 19 | h.add(str(2 ** i)) | h = {'131072', '16384', '32768', '4096', '64', '32', '512', '8192', '256', '65536', '8', '2', Ellipsis, '16', '524288', '4'}; i = 19 |
b = 'cgatcg'; h = 'cg'; i = 1; l = 2 | h = b[i:i + l] | b = 'cgatcg'; h = 'ga'; i = 1; l = 2 |
a = [4, 3, 5, 1, 2]; f = {(1): 4, (2): 3, (3): 5, (4): 1}; i = 4 | f[i + 1] = a[i] | a = [4, 3, 5, 1, 2]; f = {1: 4, 2: 3, 3: 5, 4: 1, 5: 2}; i = 4 |
h = '00001000'; j = '00011000' | h = j | h = '00011000'; j = '00011000' |
k = 2; q = ['3', '1\n'] | k = int(q[1]) | k = 1; q = ['3', '1\n'] |
a = [2, 1, 3]; j = 0; u = 3 | u = a[j] | a = [2, 1, 3]; j = 0; u = 2 |
e = 'index', 'height' | n = len(e) | e = ('index', 'height'); n = 2 |
x = {(1): 'one', (2): 'two', (3): 'three'} | x[4] = 'four' | x = {1: 'one', 2: 'two', 3: 'three', 4: 'four'} |
x = 'i' | z[x] = 1 | x = 'i'; z = {'i': 1} |
j = 'abcd'; t = ['b'] | j = ''.join(t) | j = 'b'; t = ['b'] |
a = '4' | a = int(a) | a = 4 |
b = {'a': 2, 'c': 1, 'd': 0, 'b': 2}; x = 'd' | b[x] += 1 | b = {'a': 2, 'c': 1, 'd': 1, 'b': 2}; x = 'd' |
y = 4 | o = y | o = 4; y = 4 |
e = 'c' | o[e] = o.get(e, 0) + 1 | e = 'c'; o = {'c': 1} |
i = 7; l = [[6], [5], [4], [3], [2], [1], [0], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []]; u = 6 | l[u].append(i) | i = 7; l = [[6], [5], [4], [3], [2], [1], [0, 7], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []]; u = 6 |
h = ['e', 'd', 'a', 'y']; j = [['h', 'a', 'v', 'e'], ['a', 'n', 'i', 'c']] | j.append(h) | h = ['e', 'd', 'a', 'y']; j = [['h', 'a', 'v', 'e'], ['a', 'n', 'i', 'c'], ['e', 'd', 'a', 'y']] |
i = 4; r = ['4', '5', '6']; x = 1 | i += int(r[x]) | i = 9; r = ['4', '5', '6']; x = 1 |
o = 2; p = 1024; s = 630354; v = 1000000007 | s = (s + o * p) % v | o = 2; p = 1024; s = 632402; v = 1000000007 |
a = [-2, -3, -1, -4, -6] | f = v = a[0] | a = [-2, -3, -1, -4, -6]; f = -2; v = -2 |
n = [[1], [0], [], [], [], []]; x = 2; y = 3 | n[x - 1].append(y - 1) | n = [[1], [0, 2], [], [], [], []]; x = 2; y = 3 |
b = 'to'; i = 18; m = 20; s = 'is' | s = '-' if i < m // 2 else b | b = 'to'; i = 18; m = 20; s = 'to' |
d = {(1): 2, (2): 1}; i = 2 | d[i] += 1 | d = {1: 2, 2: 2}; i = 2 |
i = 3; q = [1, 1, 1, 4, 1]; x = 1 | q[i] = x | i = 3; q = [1, 1, 1, 1, 1]; x = 1 |
a = [1]; y = -1 | y = a.pop() | a = []; y = 1 |
c = [['-'], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []]; i = 6, '-' | c[i[0]].append(i[1]) | c = [['-'], [], [], [], [], [], ['-'], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []]; i = (6, '-') |
i = -1; y = 0 | i = y | i = 0; y = 0 |
m = 4; y = 3 | y += m | m = 4; y = 7 |
e = '5' | e = int(e) | e = 5 |
k = {0, 1, 2, 3}; l = 0 | k.remove(l) | k = {1, 2, 3}; l = 0 |
a = 11 | a += 1 | a = 12 |
g = [[1, 3, 4], [2, 2, 3]]; k = [1, 2, 4] | g.append(k) | g = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; k = [1, 2, 4] |
d = {(1): 2}; n = 2 | d[n] = 1 | d = {1: 2, 2: 1}; n = 2 |
p = 3; w = [595, 159, 750, 516, 405, 86, 923, 854, 246, 190]; z = 1936 | z = z + w[p] | p = 3; w = [595, 159, 750, 516, 405, 86, 923, 854, 246, 190]; z = 2452 |
a = [3, 2, 2, 6]; b = [2, 2, 2, 2, 2, 2] | b = [min(a)] * len(a) | a = [3, 2, 2, 6]; b = [2, 2, 2, 2] |
i = 1; j = 7; l = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ifailuh', 'ifailuhkqq', 'f', 'fa', 'fai', 'fail', 'failu']; s = 'ifailuhkqq' | l.append(s[i:j]) | i = 1; j = 7; l = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ifailuh', 'ifailuhkqq', 'f', 'fa', 'fai', 'fail', 'failu', 'failuh']; s = 'ifailuhkqq' |
h = ['7283455864', '6731158619', '8988242643', '3830589324', '5633845374', '6473530293', '7053106601']; i = '0834282956' | h.append(i) | h = ['7283455864', '6731158619', '8988242643', '3830589324', '5633845374', '6473530293', '7053106601', '0834282956']; i = '0834282956' |
n = '11' | n = n[:-1] | n = '1' |
b = [2, 4]; q = [4, 2] | p = [(q[i] != b[i]) for i in range(len(q))] | b = [2, 4]; p = []; q = [] |
p = ['07895462130', '919875641230', '9195969878'] | s = len(p) | p = ['07895462130', '919875641230', '9195969878']; s = 3 |
c = 10; x = 3.3113299523037925 | x = x * 2 % c | c = 10; x = 6.622659904607585 |
f = {('i',): [(0, 0)], ('f', 'i'): [(0, 1)], ('a', 'f', 'i'): [(0, 2)], ( 'a', 'f', 'i', 'i'): [(0, 3)]}; i = 0; j = 5; y = 'a', 'f', 'i', 'i', 'l' | f[y] = f.get(y, []) + [(i, j - 1)] | f = {('i',): [(0, 0)], ('f', 'i'): [(0, 1)], ('a', 'f', 'i'): [(0, 2)], ('a', 'f', 'i', 'i'): [(0, 3)], ('a', 'f', 'i', 'i', 'l'): [(0, 4)]}; i = 0; j = 5; y = ('a', 'f', 'i', 'i', 'l') |
b = 1; c = [[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 = 3; x = 6 | x += sum(c[s + 2][b:b + 3]) | b = 1; c = [[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 = 3; x = 9 |
a = 2; j = [1, 1] | j.append(a) | a = 2; j = [1, 1, 2] |
a = [1, 2, 3]; i = 0; j = 0 | r.append(a[i] ^ a[j]) | a = [1, 2, 3]; i = 0; j = 0; r = [0] |
Subsets and Splits