start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
k = 1, 1; y = 1 | y = k[0] | k = (1, 1); y = 1 |
n = 1.3877787807814457e-16 | n /= 2 | n = 6.938893903907228e-17 |
o = '1111111111111111111' | o += '1' | o = '11111111111111111111' |
a = [[1, 3, 1], [2, 1, 2], [3, 3, 3]] | a = list(zip(*a)) | a = [(1, 2, 3), (3, 1, 3), (1, 2, 3)] |
d = 2; t = 10; v = 0; z = {(0, 1): 10, (1, 0): 10} | z[v, d] = t | d = 2; t = 10; v = 0; z = {(0, 1): 10, (1, 0): 10, (0, 2): 10} |
c = [1, 3, 5, 0, 0]; w = 2 | c[w] = 0 | c = [1, 3, 0, 0, 0]; w = 2 |
i = {}; x = {'cities': [1], 'distance': 0}; y = [] | i[id(x)] = y | i = {139760244072848: []}; x = {'cities': [1], 'distance': 0}; y = [] |
f = 9; r = 0, 3; u = 1 | r = u, f | f = 9; r = (1, 9); u = 1 |
i = 4; j = 1; p = 8 | j = abs(p - i) | i = 4; j = 4; p = 8 |
k = 0; m = 0.625; y = 0.625 | m = (k + y) / 2 | k = 0; m = 0.3125; y = 0.625 |
f = ['73', '87']; y = [] | y.append(int(f[1])) | f = ['73', '87']; y = [87] |
d = 9; i = 9; j = 2; r = 0 | d, r = divmod(i, j) | d = 4; i = 9; j = 2; r = 1 |
a = [1]; x = '1' | a.append(int(x)) | a = [1, 1]; x = '1' |
m = 3; w = 2 | m += w | m = 5; w = 2 |
w = [[2, 0], [1, 0]]; z = 2 | z = len(w) // 2 | w = [[2, 0], [1, 0]]; z = 1 |
m = '3'; n = '2' | n, m = [int(n), int(m)] | m = 3; n = 2 |
k = 3; t = {(3): -1, (4): 1} | t[k] = t.get(k, 0) + 1 | k = 3; t = {3: 0, 4: 1} |
k = 4; n = [1, 2, 3] | n.append(k) | k = 4; n = [1, 2, 3, 4] |
r = '00000000100' | r = '0' + r | r = '000000000100' |
m = 'b' | t.add(m) | m = 'b'; t = {'b'} |
t = [[1, 2], [0, 2], [0, 1]] | n = [False for i in range(len(t))] | n = [False, False, False]; t = [[1, 2], [0, 2], [0, 1]] |
a = []; i = 9 | a.append(str(i)) | a = ['9']; i = 9 |
d = {(0): [], (1): [1], (2): []}; i = 1; k = 3; x = 1, 7, 2, 4 | d[x[i] % k].append(x[i]) | d = {0: [], 1: [1, 7], 2: []}; i = 1; k = 3; x = (1, 7, 2, 4) |
b = [[6, 3], [5, 1], [2, 1]]; y = '1 1\n' | b.append(list(map(int, y.rstrip().split(' ')))) | b = [[6, 3], [5, 1], [2, 1], [1, 1]]; y = '1 1\n' |
a = [1, 4, 5, 3, 2]; i = 3; m = 4; n = -1 | n = m - a[i] | a = [1, 4, 5, 3, 2]; i = 3; m = 4; n = 1 |
l = [1, 2, 2]; r = [1, 1] | l.append(r[0]) | l = [1, 2, 2, 1]; r = [1, 1] |
c = [2, 4, 3]; u = 4 | c.append(u) | c = [2, 4, 3, 4]; u = 4 |
m = 91; p = [1, 0, 0] | m = int(''.join(map(str, p))) | m = 100; p = [1, 0, 0] |
f = 1; i = 3; u = [0, 0, 1, 0, 0, 0] | u[i] = f | f = 1; i = 3; u = [0, 0, 1, 1, 0, 0] |
f = [1, 5, 4, 3, 2, 6] | w = sorted(f) | f = [1, 5, 4, 3, 2, 6]; w = [1, 2, 3, 4, 5, 6] |
r = 'b'; y = 'abab' | z = y.count(r) | r = 'b'; y = 'abab'; z = 2 |
e = 0; m = [(2, 4), (1, 4)] | m.append((m[0][0], m[0][1] + e + 1)) | e = 0; m = [(2, 4), (1, 4), (2, 5)] |
b = [1, 4, 3, 5, 6, 2]; i = 2 | w = b[i] | b = [1, 4, 3, 5, 6, 2]; i = 2; w = 3 |
x = 'MonthNum_1 1226800\n' | n = x.split('\t')[0].split('_')[1] | n = '1 1226800\n'; x = 'MonthNum_1 1226800\n' |
g = 2; i = 3; n = [1, 3, 4, 2, 5, 6] | g = n[i] | g = 2; i = 3; n = [1, 3, 4, 2, 5, 6] |
j = 4; q = [] | q.append(j) | j = 4; q = [4] |
f = 2; k = [[109.85], [155.72], [137.66], [76.17], [139.75], [162.6]]; r = [0.87, 0.47, 151.77] | k.append(r[f:f + 1]) | f = 2; k = [[109.85], [155.72], [137.66], [76.17], [139.75], [162.6], [151.77]]; r = [0.87, 0.47, 151.77] |
f = [[6, '-'], [6, '-']]; x = [6, '-'] | f.append(x) | f = [[6, '-'], [6, '-'], [6, '-']]; x = [6, '-'] |
v = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 2, 'f': 1, 'g': 1, 'h': 1, 'i': 1} | h = list(v.values()) | h = [2, 2, 2, 2, 2, 1, 1, 1, 1]; v = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 2, 'f': 1, 'g': 1, 'h': 1, 'i': 1} |
i = 3; j = 10; o = 'ifailuhkqq'; s = 'iluhkq' | s = o[i:j] | i = 3; j = 10; o = 'ifailuhkqq'; s = 'iluhkqq' |
d = 'a' | a = d[0].upper() + d[1:] + ' ' | a = 'A '; d = 'a' |
h = 240; o = 340; y = 340 | y = o - h | h = 240; o = 340; y = 100 |
b = {'a': 1, 'b': 1, 'c': 1, 'd': 2, 'e': 3, 'f': 2, 'g': 2, 'h': 2}; c = 'c' | b[c] += 1 | b = {'a': 1, 'b': 1, 'c': 2, 'd': 2, 'e': 3, 'f': 2, 'g': 2, 'h': 2}; c = 'c' |
x = '10' | a = int(x, 2) | a = 2; x = '10' |
f = {'c': 0, 'cd': 0}; i = 0; j = 2; s = 'cdcd' | f[''.join(sorted(s[i:i + j + 1]))] = 0 | f = {'c': 0, 'cd': 0, 'ccd': 0}; i = 0; j = 2; s = 'cdcd' |
a = 'cdefghmnopqrstuvw'; b = ['c', 'd', 'e', 'f', 'g', 'h', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w']; i = 1; n = [1] | n.append(a.count(b[i])) | a = 'cdefghmnopqrstuvw'; b = ['c', 'd', 'e', 'f', 'g', 'h', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w']; i = 1; n = [1, 1] |
v = ['3', '2\n'] | k = int(v[1]) | k = 2; v = ['3', '2\n'] |
p = 1; x = 2 | x -= p * 2 | p = 1; x = 0 |
r = 1.1368683772161603e-12 | r /= 2 | r = 5.684341886080801e-13 |
a = 2; b = 5; u = {(1): [2], (2): [1, 3, 5], (3): [2]} | u[b] = [a] | a = 2; b = 5; u = {1: [2], 2: [1, 3, 5], 3: [2], 5: [2]} |
j = '^[4,5,6]\\d{3}\\-?\\d{4}\\-?\\d{4}\\-?\\d{4}'; p = '^[4,5,6]\\d{3}\\-?\\d{4}\\-?\\d{4}\\-?\\d{4}' | j = p | j = '^[4,5,6]\\d{3}\\-?\\d{4}\\-?\\d{4}\\-?\\d{4}'; p = '^[4,5,6]\\d{3}\\-?\\d{4}\\-?\\d{4}\\-?\\d{4}' |
m = [2]; u = '3' | m.append(int(u)) | m = [2, 3]; u = '3' |
t = 6 | t += 1 | t = 7 |
i = 3; k = 2; s = '7891011'; x = '9' | x = s[i:i + k] | i = 3; k = 2; s = '7891011'; x = '10' |
h = [1, 3, 2, 4] | h.pop() | h = [1, 3, 2] |
e = 1; n = 1000000000000; q = 'a' | f = e * (n // len(q)) | e = 1; f = 1000000000000; n = 1000000000000; q = 'a' |
c = 10; d = 2; s = 4 | c += abs(s - d) | c = 12; d = 2; s = 4 |
h = 1001; l = 4 | l = len(str(h)) | h = 1001; l = 4 |
d = 2; n = 8; t = 10, 0 | t = n, d | d = 2; n = 8; t = (8, 2) |
a = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; i = 2; j = 1; t = 48 | t += abs(a[i][j] - a[i][j - 1]) | a = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; i = 2; j = 1; t = 49 |
k = 3; n = 64; s = 8; t = 24 | t = (k - 1) * s + n // pow(s, k - 1) | k = 3; n = 64; s = 8; t = 17.0 |
d = [0, 0, 3, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; x = 100 | d[x - 97] += 1 | d = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; x = 100 |
n = 3 | v = n | n = 3; v = 3 |
c = 5; i = 2; n = [1, 2, 100]; u = 0 | u += n[i] * i - c * (i + 1) | c = 5; i = 2; n = [1, 2, 100]; u = 185 |
n = ['c', 'b', 'a']; p = 4; t = 2; x = 2 | p += ord(n[t]) - ord(n[x]) | n = ['c', 'b', 'a']; p = 4; t = 2; x = 2 |
p = {(1): 1}; x = 1 | p[x] += 1 | p = {1: 2}; x = 1 |
z = [(9, 1), (6, 2), (11, 3), (4, 4), (7, 5)] | z.sort() | z = [(4, 4), (6, 2), (7, 5), (9, 1), (11, 3)] |
i = 2; j = 0; x = 1; y = 0; z = [[1, 1, 1], [1, 1, 1], [0, 0, 0], [0, 0, 0], [0, 0, 0]] | z[i][j] = x + y | i = 2; j = 0; x = 1; y = 0; z = [[1, 1, 1], [1, 1, 1], [1, 0, 0], [0, 0, 0], [0, 0, 0]] |
c = 4; i = 2; j = 2; s = 'haveaniceday'; t = 'i' | t = s[c * j + i] | c = 4; i = 2; j = 2; s = 'haveaniceday'; t = 'a' |
k = 1; s = [[10, 2, 5], [7, 1, 0], [9, 9, 9], [1, 23, 12], [6, 5, 9]]; u = [2, 1, 9]; x = 3 | u.append(s[x][k]) | k = 1; s = [[10, 2, 5], [7, 1, 0], [9, 9, 9], [1, 23, 12], [6, 5, 9]]; u = [2, 1, 9, 23]; x = 3 |
p = 924992306; s = 1000000007 | p = p * p % s | p = 169922316; s = 1000000007 |
h = 4; l = [3, 3, 3] | l.append(h) | h = 4; l = [3, 3, 3, 4] |
j = 0; r = [1, 3, 4, 2]; s = [1] | s.append(r[j + 1]) | j = 0; r = [1, 3, 4, 2]; s = [1, 3] |
a = '2'; v = '3' | a, v = [int(a), int(v)] | a = 2; v = 3 |
n = 8; o = 7; q = 9 | f = max(n, q, o) | f = 9; n = 8; o = 7; q = 9 |
c = [0, 1, 1, 2, 3, 5, 8, 13, 21] | c.append(c[-1] + c[-2]) | c = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34] |
b = {(2, 2, 2): 4}; v = 23; x = 1; y = 1; z = 1 | b[x, y, z] = v | b = {(2, 2, 2): 4, (1, 1, 1): 23}; v = 23; x = 1; y = 1; z = 1 |
p = '5'; q = '6' | p, q = [int(p) - 1, int(q) - 1] | p = 4; q = 5 |
z = '1000000000000000000000000000' | z += '0' | z = '10000000000000000000000000000' |
i = 3; j = 3; l = ['a', 'b']; w = 'abba' | l = [el for el in w[i:j + 1]] | i = 3; j = 3; l = ['a']; w = 'abba' |
s = '45PM' | d = s[-2:] | d = 'PM'; s = '45PM' |
e = [1, 2, 3, 3]; i = 1; o = 1 | o += e[i] | e = [1, 2, 3, 3]; i = 1; o = 3 |
q = [0, 1]; x = 2 | q.append(q[-1] ^ x) | q = [0, 1, 3]; x = 2 |
f = ['append', '1']; l = [5, 10, 9] | l.append(int(f[1])) | f = ['append', '1']; l = [5, 10, 9, 1] |
p = 4; s = 'dbac'; y = ['dbac']; z = 1 | y.append(s[z:p]) | p = 4; s = 'dbac'; y = ['dbac', 'bac']; z = 1 |
a = 0; b = 1 | a, b = b, a + b | a = 1; b = 1 |
j = 110; k = 2; z = 101 | j = z + k | j = 103; k = 2; z = 101 |
f = 1.2000000000000002e-17; z = [2, 1.2, 0.12, 0.012, 1.2000000000000002e-13, 1.2000000000000003e-14, 1.2000000000000002e-15, 1.2000000000000003e-16] | z.append(f) | f = 1.2000000000000002e-17; z = [2, 1.2, 0.12, 0.012, 1.2000000000000002e-13, 1.2000000000000003e-14, 1.2000000000000002e-15, 1.2000000000000003e-16, 1.2000000000000002e-17] |
i = 6; q = [0, 1, 1, 1, 2, 3] | q.append(q[i - 1] + q[i - 4]) | i = 6; q = [0, 1, 1, 1, 2, 3, 4] |
e = [[0, 0, 0], [0, 0, 1]]; x = 0; y = 0; z = 2 | e.append([x, y, z]) | e = [[0, 0, 0], [0, 0, 1], [0, 0, 2]]; x = 0; y = 0; z = 2 |
a = 5; m = 3 | m = a // 2 + 1 | a = 5; m = 3 |
a = 2; b = 10; i = 69; q = 5902958103587056517244 | q += a ^ b << i | a = 2; b = 10; i = 69; q = 11805916207174113034366 |
k = [[1], [0], [3], [2], []]; s = 0; w = 4 | k[s].append(w) | k = [[1, 4], [0], [3], [2], []]; s = 0; w = 4 |
f = 0 | f = f + 1 | f = 1 |
o = {'p', 'l', 'a', 'k', 'f', 'u', 'q', 'c', 'y', 'n', 'r', 'e', 'd', 'm', 'j', 's', 'w', 'i', 'o', ...}; t = 'h' | o.add(t) | o = {'c', 'l', 'j', 'p', 'w', 'h', 'i', 'y', 'd', 'f', 'e', 'r', 'm', 'o', 'k', 'a', 'q', Ellipsis, 'u', 'n', 's'}; t = 'h' |
i = 1; j = 1 | j += i + k | i = 1; j = 38; k = 36 |
a = 2; b = 3; e = 8 | b = a % e | a = 2; b = 2; e = 8 |
i = 6; l = ['A', 'A', 'B', 'A', 'B', 'A', 'C', 'A', 'B', 'A', 'C', 'A', 'B']; y = 'ABACABA' | l.append(y[i]) | i = 6; l = ['A', 'A', 'B', 'A', 'B', 'A', 'C', 'A', 'B', 'A', 'C', 'A', 'B', 'A']; y = 'ABACABA' |
d = [8, 1]; i = 3; n = [1, 2]; u = 1 | d[u] += abs(n[u] - a[i][0]) + abs(a[i][0] - a[i][1]) | a = [[5, 5, 6], [-7, 8, 0], [-5, 0, -5], [7, -8, 3]]; d = [8, 21]; i = 3; n = [1, 2]; u = 1 |
n = 9875 | f = sum([int(i) for i in str(n)]) | f = 29; n = 9875 |
Subsets and Splits