start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
k = 2 | v = k | k = 2; v = 2 |
q = 6.710886400000001e-19; w = 5; y = 3.3554432000000005e-18 | y -= w * q | q = 6.710886400000001e-19; w = 5; y = 0.0 |
i = 4; n = [(1, 4.0), (2, 2.0)]; p = 4 | n.append((i, p / i)) | i = 4; n = [(1, 4.0), (2, 2.0), (4, 1.0)]; p = 4 |
g = [1, 1, 2, 3, 5]; w = 1000000007 | g.append((g[-1] + g[-2]) % w) | g = [1, 1, 2, 3, 5, 8]; w = 1000000007 |
d = 7; i = 3; s = 'kkkkkkz' | d = s[:d].rfind(s[i]) | d = 5; i = 3; s = 'kkkkkkz' |
b = [1, 1]; c = 2 | b += [c ** 2] | b = [1, 1, 4]; c = 2 |
p = [[0, 3, 4, 1000000000, 1000000000], [3, 0, 1000000000, 6, 1000000000], [4, 1000000000, 0, 1000000000, 1000000000], [1000000000, 6, 1000000000, 0, 1000000000], [1000000000, 1000000000, 1000000000, 1000000000, 0]]; r = 2; x = 5; y = 2 | p[x - 1][y - 1] = r | p = [[0, 3, 4, 1000000000, 1000000000], [3, 0, 1000000000, 6, 1000000000], [4, 1000000000, 0, 1000000000, 1000000000], [1000000000, 6, 1000000000, 0, 1000000000], [1000000000, 2, 1000000000, 1000000000, 0]]; r = 2; x = 5; y = 2 |
i = 4; n = 0; t = ['-1', '1'] | n, i = int(t[0]), int(t[1]) | i = 1; n = -1; t = ['-1', '1'] |
x = 2 | x += 1 | x = 3 |
a = ['a', 'b']; m = 3 | a = list(map(chr, list(range(97, 97 + m)))) | a = ['a', 'b', 'c']; m = 3 |
a = '99911'; m = 999101 | a = str(m) | a = '999101'; m = 999101 |
j = 5; k = 1; l = ['l']; s = 'ifailuhkqq' | l = sorted(s[j:j + k]) | j = 5; k = 1; l = ['u']; s = 'ifailuhkqq' |
n = 2 | c = [None] * n | c = [None, None]; n = 2 |
z = '0 1' | z = z.split() | z = ['0', '1'] |
d = 9; f = 91 | d = f | d = 91; f = 91 |
b = ['+-++++++++', '+-++++++++', '+-------++', '+-++++++++', '+------+++', '+-+++-++++', '+++++-++++']; l = '+++++-++++' | b.append(l) | b = ['+-++++++++', '+-++++++++', '+-------++', '+-++++++++', '+------+++', '+-+++-++++', '+++++-++++', '+++++-++++']; l = '+++++-++++' |
i = 5; v = [0, 0, 0, 0, 0, 1] | v[i] //= 10 | i = 5; v = [0, 0, 0, 0, 0, 0] |
e = [2, 1, 3] | l = [[val, ind] for ind, val in enumerate(e)] | e = [2, 1, 3]; l = [[2, 0], [1, 1], [3, 2]] |
c = 'd'; l = {'a': 2, 'b': 2, 'c': 1} | l.setdefault(c, 0) | c = 'd'; l = {'a': 2, 'b': 2, 'c': 1, 'd': 0} |
i = 'u'; k = 2; r = 'Q' | r = chr((ord(i) + k - 97) % 26 + 97) | i = 'u'; k = 2; r = 'w' |
l = [1]; r = 0 | l = l[:r] | l = []; r = 0 |
i = 1; j = 1; x = [(0, 0), (1, 1), (0, 2), (1, 2), (1, 0)] | x.append((i - 1, j)) | i = 1; j = 1; x = [(0, 0), (1, 1), (0, 2), (1, 2), (1, 0), (0, 1)] |
p = 89; s = 144 | p = s | p = 144; s = 144 |
p = ['4', '3'] | m = int(p[1]) | m = 3; p = ['4', '3'] |
f = {'give': 1, 'me': 1, 'one': 1, 'grand': 1, 'today': 1, 'night': 1}; j = 'give' | f[j] -= 1 | f = {'give': 0, 'me': 1, 'one': 1, 'grand': 1, 'today': 1, 'night': 1}; j = 'give' |
k = {'a': 1, 'ab': 1, 'abc': 1}; x = 'abcd' | k[x] = 1 | k = {'a': 1, 'ab': 1, 'abc': 1, 'abcd': 1}; x = 'abcd' |
i = 1 | x = i | i = 1; x = 1 |
t = 'GGGGGG'; v = ['BGBBGB', 'GGGGGG', 'BGBBGB'] | v.append(t) | t = 'GGGGGG'; v = ['BGBBGB', 'GGGGGG', 'BGBBGB', 'GGGGGG'] |
i = 2; x = 76 | x += i | i = 2; x = 78 |
i = 19; k = 0 | k = int(i) | i = 19; k = 19 |
i = 2; z = {(2): 1} | z[i] += 1 | i = 2; z = {2: 2} |
v = 1 | d.add(v) | d = {1}; v = 1 |
e = ['a', 'q']; z = 97, 114 | e = list(map(chr, z)) | e = ['a', 'r']; z = (97, 114) |
p = {'1': 5, '2': 4, '3': 5, '6': 4, '5': 4, '4': 5, '8': 1}; x = '5' | p[x] = p.get(x, 0) + 1 | p = {'1': 5, '2': 4, '3': 5, '6': 4, '5': 5, '4': 5, '8': 1}; x = '5' |
r = '{' | p.append(r) | p = ['{']; r = '{' |
b = ['B', 'B', 'R', 'R', 'Y', 'Y', '_'] | b = [cell for cell in b if cell != '_'] | b = ['B', 'B', 'R', 'R', 'Y', 'Y'] |
b = [[], []] | b.append([]) | b = [[], [], []] |
r = 4 | r = r - 1 | r = 3 |
i = 2; j = 1; k = [1, 9, 'X', 2]; m = [[1, 1, 1, 2], [1, 'X', 1, 2], [1, 8, 9, 2], [1, 2, 3, 4]] | k = [m[i - 1][j], m[i + 1][j], m[i][j - 1], m[i][j + 1]] | i = 2; j = 1; k = ['X', 2, 1, 9]; m = [[1, 1, 1, 2], [1, 'X', 1, 2], [1, 8, 9, 2], [1, 2, 3, 4]] |
b = 1.0; l = 2.0 | b, l = 0, 1 | b = 0; l = 1 |
i = 0; l = 3 | l /= i + 1 | i = 0; l = 3.0 |
j = 0; l = 1; s = 'abba' | i.append(s[j:j + l]) | i = ['a']; j = 0; l = 1; s = 'abba' |
a = 31; i = 11; j = 21 | a = i ^ j | a = 30; i = 11; j = 21 |
c = [1, 2, 1, 2, 1, 1, 1, 1, 1, 1]; i = 5; s = [1, 2, 1, 2, 1, 1, 1, 3, 2, 1] | c[i] = max(s[i], c[i - 1] + 1) | c = [1, 2, 1, 2, 1, 2, 1, 1, 1, 1]; i = 5; s = [1, 2, 1, 2, 1, 1, 1, 3, 2, 1] |
f = 3; w = 'bbfb' | f = len(w) | f = 4; w = 'bbfb' |
i = 1; p = [3, 0, 0] | p[i] += 1 | i = 1; p = [3, 1, 0] |
i = 2; k = [2, 1, 3]; p = [0, 1, 0, 0] | p[k[i]] = i | i = 2; k = [2, 1, 3]; p = [0, 1, 0, 2] |
m = 6; o = [2, 3, 5] | m = o[0] | m = 2; o = [2, 3, 5] |
g = 2; p = 5.0 | p -= g | g = 2; p = 3.0 |
d = {'a': 0, 'b': 0, 'c': 1, 'd': 1, 'e': 2, 'f': 1, 'g': 1, 'h': 1}; i = 'b' | d[i] += 1 | d = {'a': 0, 'b': 1, 'c': 1, 'd': 1, 'e': 2, 'f': 1, 'g': 1, 'h': 1}; i = 'b' |
s = 'aabbcd' | a = list(set(s)) | a = ['a', 'b', 'c', 'd']; s = 'aabbcd' |
f = [2, 1]; j = 1; m = [1, 1] | f[j] += m[j] | f = [2, 2]; j = 1; m = [1, 1] |
a = '0110101010'; o = 0 | o = a.find('010') | a = '0110101010'; o = 3 |
i = 7; l = 5 | l = i | i = 7; l = 7 |
d = 29; j = 7; k = 1 | d = 4 * j + 1 + k | d = 30; j = 7; k = 1 |
r = '3'; x = 0; y = [[2, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]] | y[x][1] = int(r) | r = '3'; x = 0; y = [[2, 3], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]] |
n = 'world' | e = set(n) | e = {'l', 'r', 'd', 'o', 'w'}; n = 'world' |
i = 5; j = 3; x = [[True, False, False, False], [True, False, False, False], [True, True, False, False], [False, False, True, False], [False, False, True, True], [False, False, True, False]] | x[i][j] = True | i = 5; j = 3; x = [[True, False, False, False], [True, False, False, False], [True, True, False, False], [False, False, True, False], [False, False, True, True], [False, False, True, True]] |
x = 3 | s = [0] * x | s = [0, 0, 0]; x = 3 |
e = 2; n = 1; p = 2 | p += n % 10 * e | e = 2; n = 1; p = 4 |
h = 6; w = 'gfedcbagfedcba' | k.append(w[h]) | h = 6; k = ['a']; w = 'gfedcbagfedcba' |
c = 8, 1 | n = max(c[1], n) | c = (8, 1); n = 77 |
y = 3 | y -= 1 | y = 2 |
e = 7420738134810; v = [0, 2, 6, 30, 210, 2310, 30030, 510510, 9699690, 223092870, 6469693230, 200560490130] | v.append(e) | e = 7420738134810; v = [0, 2, 6, 30, 210, 2310, 30030, 510510, 9699690, 223092870, 6469693230, 200560490130, 7420738134810] |
q = 5; t = 'aa'; x = 4 | q = x + len(t) | q = 6; t = 'aa'; x = 4 |
c = 7; o = 'gfedcbagfedcba'; z = {'g': 1.0, 'f': 1.0, 'e': 1.0, 'd': 1.0, 'c': 1.0, 'b': 1.0, 'a': 0.0} | z[o[c]] -= 1 | c = 7; o = 'gfedcbagfedcba'; z = {'g': 0.0, 'f': 1.0, 'e': 1.0, 'd': 1.0, 'c': 1.0, 'b': 1.0, 'a': 0.0} |
e = [0, 9, 27, 63, 135, 279, 603979767, 1207959543, 2415919095, 4831838199, 9663676407, 19327352823]; i = 31 | e.append(e[-1] + 9 * 2 ** i) | e = [0, 9, 27, 63, 135, 279, 603979767, 1207959543, 2415919095, 4831838199, 9663676407, 19327352823, 38654705655]; i = 31 |
q = 2 | q += 1 | q = 3 |
b = [1, 3]; v = [1] | b = sorted(v) | b = [1]; v = [1] |
u = '999'; x = '1000' | u = x | u = '1000'; x = '1000' |
s = [(1, 0), (1, 1), (1, 1), (1, 0), (1, 2), (0, 0)]; t = 0; w = 2 | t, w = s.pop() | s = [(1, 0), (1, 1), (1, 1), (1, 0), (1, 2)]; t = 0; w = 0 |
l = '1111111111111111111111' | l = l + '1' | l = '11111111111111111111111' |
a = ['z', '{']; x = 'z' | x = a[len(a) - 1] | a = ['z', '{']; x = '{' |
j = 9 | j = j + 1 | j = 10 |
c = 3; d = 0; l = [[(3, 1)], [(3, 0), (1, 2), (2, 3)], [(1, 1)], [(2, 1), (0, 4)], []]; u = 4 | l[u].append((d, c)) | c = 3; d = 0; l = [[(3, 1)], [(3, 0), (1, 2), (2, 3)], [(1, 1)], [(2, 1), (0, 4)], [(0, 3)]]; u = 4 |
g = 'aaaaabbbbaaaa'; k = 0; n = 8; p = 'aaaaabb' | p = g[k:n] | g = 'aaaaabbbbaaaa'; k = 0; n = 8; p = 'aaaaabbb' |
g = 2; v = 8; x = 1 | v += g * x | g = 2; v = 10; x = 1 |
n = [('ac ', 0)]; r = 0; t = 'c' | n.append((t, r + 1)) | n = [('ac ', 0), ('c', 1)]; r = 0; t = 'c' |
d = 8; n = 3 | d += 2 ** (n - 1) | d = 12; n = 3 |
f = 1; l = {(1): 1, (0): 0, (2): 1}; n = 1 | f = l.get(n) | f = 1; l = {1: 1, 0: 0, 2: 1}; n = 1 |
k = 20 | k += 1 | k = 21 |
d = [4978, 11735, 14216, 14470, 38120, 51135, 64630, 67060, 73429, 99233]; i = 4; v = 14470 | v = d[i] | d = [4978, 11735, 14216, 14470, 38120, 51135, 64630, 67060, 73429, 99233]; i = 4; v = 38120 |
c = [2, 4]; g = [[1, 3], [2, 4], [3, 3], [4, 3]]; i = 0 | c = g[i] | c = [1, 3]; g = [[1, 3], [2, 4], [3, 3], [4, 3]]; i = 0 |
c = 2, 4, 1000000007; m = 3; n = 2; p = 1000000007 | c = n, m, p | c = (2, 3, 1000000007); m = 3; n = 2; p = 1000000007 |
b = [9, 8, 3]; l = [[2, 3, 1], [9, 1, 7]] | l.append(b) | b = [9, 8, 3]; l = [[2, 3, 1], [9, 1, 7], [9, 8, 3]] |
p = '555555' | p += '3' | p = '5555553' |
k = 2; n = 1 | n += k | k = 2; n = 3 |
x = 562949953421312 | x *= 2 | x = 1125899906842624 |
g = 9; i = 1; j = 4; l = [1, 3, 2, 6, 1, 2] | g = l[i] + l[j] | g = 4; i = 1; j = 4; l = [1, 3, 2, 6, 1, 2] |
f = {1, 3}; s = 3 | f.remove(s) | f = {1}; s = 3 |
n = 2 | p = [0] * n | n = 2; p = [0, 0] |
f = 4; r = 2 | f = r + 1 | f = 3; r = 2 |
a = 17; i = 2; u = 4; x = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200] | a += x[u + i] + x[i] - x[u + i - 1] - x[i + 1] | a = 26; i = 2; u = 4; x = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200] |
a = 4; k = 3; m = 6 | m = k + a | a = 4; k = 3; m = 7 |
b = 0; c = [1, 2, 100]; v = [-1, -1, 2] | n += c[b] * v[b] | b = 0; c = [1, 2, 100]; n = -86; v = [-1, -1, 2] |
j = [2, 2, 4, 4, 5, 8] | c = j[i] | c = 2; i = False; j = [2, 2, 4, 4, 5, 8] |
c = ['a', 'b', 'c', 'd', 'e', 'f', 'g']; v = 7 | c.append(chr(ord('a') + v)) | c = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']; v = 7 |
m = 92; p = 2 | m += p | m = 94; p = 2 |
o = 2; r = 1 | r += o | o = 2; r = 3 |
f = 15; y = [2, 3, 4, 5, 6, 7, 12, 13, 14] | y.append(f) | f = 15; y = [2, 3, 4, 5, 6, 7, 12, 13, 14, 15] |
Subsets and Splits