start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
c = {(1): [1]}; h = 2; r = [2] | c[h] = r[:] | c = {1: [1], 2: [2]}; h = 2; r = [2] |
a = {} | a = _format_options.copy() | a = []; i = [] |
f = 524288; i = 20 | f = 1 << i | f = 1048576; i = 20 |
i = '2'; q = {'1': 1} | q[i] = 1 | i = '2'; q = {'1': 1, '2': 1} |
r = 6; s = 'ifailuhkqq'; y = 'u' | y = s[r:r + j] | j = 91; r = 6; s = 'ifailuhkqq'; y = 'hkqq' |
c = {(2): 0}; g = [0, 3]; i = 1; m = 4; x = 2 | g = [c[m - x], i] | c = {2: 0}; g = [0, 1]; i = 1; m = 4; x = 2 |
i = '174'; s = {'176', '182', '170', '154', '161', '171', '167'} | s.add(i) | i = '174'; s = {'176', '171', '174', '182', '161', '170', '167', '154'} |
m = inf; x = 2 | m = min(m, x) | m = 2; x = 2 |
i = 3; w = 1 | w = i | i = 3; w = 3 |
a = ['0', '3'] | t = int(a[1]) | a = ['0', '3']; t = 3 |
d = 5; v = 12 | v += d | d = 5; v = 17 |
b = 5; s = ['1', '0', '1', '1'] | b = len(s) | b = 4; s = ['1', '0', '1', '1'] |
p = '1000000000' | p += '0' | p = '10000000000' |
v = 2 | v += 1 | v = 3 |
a = 1; f = [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]; t = 3 | a += f[t] | a = 3; f = [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]; t = 3 |
c = 'h'; v = {'count': 2, 'h': {'count': 2, 'a': {'count': 2, 'c': {...}}}} | v = v[c] | c = 'h'; v = {'count': 2, 'a': {'count': 2, 'c': {Ellipsis}}} |
c = [1, 1, 1]; j = 2; v = [1, 3, 1] | v[j] += c[j] | c = [1, 1, 1]; j = 2; v = [1, 3, 2] |
x = 9; y = 7 | y = x + 1 | x = 9; y = 10 |
i = 0; l = [4, 1, 3, 2, 4]; s = '' | s += l[i] * '1' | i = 0; l = [4, 1, 3, 2, 4]; s = '1111' |
l = 8 | l += 1 | l = 9 |
a = {'w', 'p', 'e'}; i = 'r' | a.add(i) | a = {'w', 'p', 'r', 'e'}; i = 'r' |
d = [[1, 1, 1, 2, 3], [2, 3, 4], [1, 4, 1, 1]] | r = [sum(stack) for stack in d] | d = [[1, 1, 1, 2, 3], [2, 3, 4], [1, 4, 1, 1]]; r = [8, 9, 7] |
a = [[1, 0, 0, 0, 0], [1, 1, 1, 1, 1], [1, 1, 2, 2, 3], [1, 1, 2, 3, 0]]; c = ['1', '2', '3']; i = 3; j = 4 | a[i][j] = a[i - 1][j] + a[i][j - int(c[i - 1])] | a = [[1, 0, 0, 0, 0], [1, 1, 1, 1, 1], [1, 1, 2, 2, 3], [1, 1, 2, 3, 4]]; c = ['1', '2', '3']; i = 3; j = 4 |
l = [47, 58, 74]; x = [73, 48, 95, 95, 33] | x.append(l[0]) | l = [47, 58, 74]; x = [73, 48, 95, 95, 33, 47] |
a = '1000' | f = lambda tup: sum(map(lambda x: x ** 2, tup)) % int(a) | a = '1000'; f = <function <lambda> at 0x7f1bf425c560> |
h = 'd'; v = {'c': 1} | v[h] = 1 | h = 'd'; v = {'c': 1, 'd': 1} |
d = 3; i = 1; l = {'end_time': 4, 'index': 0}; t = 2 | l = {'end_time': t + d, 'index': i} | d = 3; i = 1; l = {'end_time': 5, 'index': 1}; t = 2 |
j = 1; k = 1; l = [[0, 0, 0, 0], [0, 0, 0, 0], [1, 0, 0, 0], [0, 1, 0, 0], [0, 1, 1, 0], [1, 1, 0, 1], [0, 1, 1, 0]]; p = [1, 0, 0, 0]; u = 5 | p[j] += l[u][k] | j = 1; k = 1; l = [[0, 0, 0, 0], [0, 0, 0, 0], [1, 0, 0, 0], [0, 1, 0, 0], [0, 1, 1, 0], [1, 1, 0, 1], [0, 1, 1, 0]]; p = [1, 1, 0, 0]; u = 5 |
h = 5; l = [0, 1, 2, 3, 4] | l.append(h) | h = 5; l = [0, 1, 2, 3, 4, 5] |
i = 15; s = 'abcdefghhgfedecba'; u = [1, 1, 2, 2, 3, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | u[ord(s[i]) - 97] += 1 | i = 15; s = 'abcdefghhgfedecba'; u = [1, 2, 2, 2, 3, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
b = [1, 3, 1, 1, 3, 0]; v = 5 | b[v] += 1 | b = [1, 3, 1, 1, 3, 1]; v = 5 |
d = 6; i = 8; m = [0, 6, 0, 6, 4, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | m[i] = d | d = 6; i = 8; m = [0, 6, 0, 6, 4, 0, 6, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
x = 4 | x -= 1 | x = 3 |
a = '2'; i = '1'; q = '3'; t = '4' | i, a, q, t = [int(i), int(a), int(q), int(t)] | a = 2; i = 1; q = 3; t = 4 |
a = '3 3 1 1'; k = ['3', '1 1 2 3', '2 1 2 3'] | k.append(a) | a = '3 3 1 1'; k = ['3', '1 1 2 3', '2 1 2 3', '3 3 1 1'] |
n = 25600000000000 | n //= 5 | n = 5120000000000 |
i = '6'; u = 1 | u += int(i) | i = '6'; u = 7 |
g = [[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]]; i = 0; j = 1; m = 2; s = 2; t = 0 | s += g[i + m][j + t] | g = [[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]]; i = 0; j = 1; m = 2; s = 3; t = 0 |
i = 'd'; p = {'a': 2, 'b': 2, 'c': 2} | p[i] = 1 | i = 'd'; p = {'a': 2, 'b': 2, 'c': 2, 'd': 1} |
a = 1; j = 99 | j = int(a) | a = 1; j = 1 |
a = 2; b = 10; i = 28; r = 2684354602 | r += a ^ b << i | a = 2; b = 10; i = 28; r = 5368709164 |
b = {1, 2}; q = deque([]) | q += b | b = {1, 2}; q = deque([1, 2]) |
t = 1.0; u = 3 | u += 1 if t <= 800 and t == int(t) else 0 | t = 1.0; u = 4 |
c = [[3, 3, 3], [2, 2, 2, 2]]; i = ['4', '1', '0', '1', '1', '0', '1'] | c.append(list(map(int, i))) | c = [[3, 3, 3], [2, 2, 2, 2], [4, 1, 0, 1, 1, 0, 1]]; i = ['4', '1', '0', '1', '1', '0', '1'] |
a = [1, 1, 4, 1, 1]; f = [0, 1]; i = 2 | f.append(f[i - 1] + a[i - 1]) | a = [1, 1, 4, 1, 1]; f = [0, 1, 2]; i = 2 |
e = 11; m = 210 | m *= e | e = 11; m = 2310 |
a = [['a', 'b', 'c', 'd', 'e'], ['f', 'g', 'h', 'i', 'j'], ['k', 'l', 'm', 'n', 'o'], ['p', 'q', 'r', 's', 't'], ['u', 'v', 'w', 'x', 'y']]; i = 3; j = 0; x = ['c', 'h', 'm', 'r', 'w'] | x.append(a[j][i]) | a = [['a', 'b', 'c', 'd', 'e'], ['f', 'g', 'h', 'i', 'j'], ['k', 'l', 'm', 'n', 'o'], ['p', 'q', 'r', 's', 't'], ['u', 'v', 'w', 'x', 'y']]; i = 3; j = 0; x = ['c', 'h', 'm', 'r', 'w', 'd'] |
b = '1111111111111110000111' | b += '0' | b = '11111111111111100001110' |
a = '3 2' | a = list(map(int, a.split(' '))) | a = [3, 2] |
i = 1; k = 7.450580596923829e+16; q = 3.725290298461915e+16 | q += k / 5 ** i | i = 1; k = 7.450580596923829e+16; q = 5.215406417846681e+16 |
b = [0, 1, 2, 3]; h = [1, 2, 3, 4, 5]; r = 5 | r = h[b.pop()] | b = [0, 1, 2]; h = [1, 2, 3, 4, 5]; r = 4 |
v = 2.8421709430404007e-13 | v /= 2 | v = 1.4210854715202004e-13 |
i = 1; j = 1; t = 2; u = [[1, 2, 4, 0, 0, 0], [1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]] | u[i][j] = t | i = 1; j = 1; t = 2; u = [[1, 2, 4, 0, 0, 0], [1, 2, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]] |
c = 'h'; w = {'e': {'end': ''}, 'h': {}} | w = w[c] | c = 'h'; w = {} |
a = [54, 80, 87]; y = 118342.0 | y = y + a[2] * a[0] | a = [54, 80, 87]; y = 123040.0 |
g = [3, 10, 2, 9]; i = 3; k = 5 | k += g[i] | g = [3, 10, 2, 9]; i = 3; k = 14 |
a = 1; i = 5; r = [0, 0, 0, 1, 0, 1, 0, 0] | r[i] -= a | a = 1; i = 5; r = [0, 0, 0, 1, 0, 0, 0, 0] |
c = 114; x = 't' | c = ord(x) | c = 116; x = 't' |
a = 9; j = 91 | j = int(a) | a = 9; j = 9 |
d = [37.21]; i = 37.21 | d.append(i) | d = [37.21, 37.21]; i = 37.21 |
i = 12; v = 11 | v = i | i = 12; v = 12 |
l = [93, 83, 90]; x = [73, 48, 95, 95, 33, 47, 98, 91, 95] | x.append(l[0]) | l = [93, 83, 90]; x = [73, 48, 95, 95, 33, 47, 98, 91, 95, 93] |
a = 2; x = 1 | p = x + a | a = 2; p = 3; x = 1 |
i = 7; s = 8 | i = s | i = 8; s = 8 |
i = 24; m = [2544258, 1454936, 2002963, 1897595, 2159682, 1726730, 2558575, 1931776, 1789366, 1782217, 1910655]; v = 839471 | m[i % 12] += v | i = 24; m = [3383729, 1454936, 2002963, 1897595, 2159682, 1726730, 2558575, 1931776, 1789366, 1782217, 1910655]; v = 839471 |
d = {'c': 2, 'cd': 3, 'ccd': 1, 'ccdd': 1, 'd': 1, 'cdd': 1}; g = 'd' | d[g] = d.get(g, 0) + 1 | d = {'c': 2, 'cd': 3, 'ccd': 1, 'ccdd': 1, 'd': 2, 'cdd': 1}; g = 'd' |
f = [[0], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [ ], [], [], [], [], [], []]; i = 1; z = 'abcdefgabcdefg' | f[ord(z[i]) - ord('a')].append(i) | f = [[0], [1], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []]; i = 1; z = 'abcdefgabcdefg' |
p = 4; q = deque([6, 9]) | q.append(p + 1) | p = 4; q = deque([6, 9, 5]) |
h = [1, 4, 6]; i = 2; j = '1 4 6 ' | j += str(h[-i]) + ' ' | h = [1, 4, 6]; i = 2; j = '1 4 6 4 ' |
a = ['07', '05', '45PM'] | a[0] = str(int(a[0]) + 12) | a = ['19', '05', '45PM'] |
a = 10 | r.append(a) | a = 10; r = [10] |
z = [2, 2] | z.append(0) | z = [2, 2, 0] |
n = 2 | e = n % m | e = 2; m = 34; n = 2 |
d = '15'; n = 16 | d = str(n) | d = '16'; n = 16 |
m = 4; n = 4 | f = n - m | f = 0; m = 4; n = 4 |
j = 0; k = 3; v = '24256'; y = '24' | y = v[j:k] | j = 0; k = 3; v = '24256'; y = '242' |
b = 3 | b += 1 | b = 4 |
i = 2; k = 4; n = {1, 2, 3}; q = 'abcdefghijklmnopqrstuvwxyz'; s = 'abccddde0' | n.add(i * (q.find(s[k - 1]) + 1)) | i = 2; k = 4; n = {1, 2, 3, 6}; q = 'abcdefghijklmnopqrstuvwxyz'; s = 'abccddde0' |
b = 7; c = 6; l = [(2, 0), (4, 1), (2, 2), (6, 3), (1, 4), (7, 5), (8, 6), (9, 7), (2, 8), (1, 9)] | b = l[c][0] | b = 8; c = 6; l = [(2, 0), (4, 1), (2, 2), (6, 3), (1, 4), (7, 5), (8, 6), (9, 7), (2, 8), (1, 9)] |
i = 2; x = 1; y = 5 | x += i % y | i = 2; x = 3; y = 5 |
k = 6 | k >>= 1 | k = 3 |
b = [[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]]; t = 7; x = 1 | t = sum(b[y][x:x + 3]) + b[y + 1][x + 1] + sum(b[y + 2][x:x + 3]) | b = [[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]]; t = 8; x = 1; y = True |
i = 2; s = 'akakak'; y = {'a': [0], 'k': [1]} | y[s[i]].append(i) | i = 2; s = 'akakak'; y = {'a': [0, 2], 'k': [1]} |
e = [7, -5, 6, 3, 9, -8, 2]; i = 264 | i = sum([(i * i) for i in e]) | e = [7, -5, 6, 3, 9, -8, 2]; i = 268 |
j = [[1, 0, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0]]; n = 2; s = 0; x = [2, 5, 3, 6] | y = j[s][n - x[s]] | j = [[1, 0, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0]]; n = 2; s = 0; x = [2, 5, 3, 6]; y = 1 |
c = -1; r = 2 | r += c | c = -1; r = 1 |
e = 2; g = 2; h = ['1', '1']; i = ['13', '8', '5', '3'] | i.append(str(int(e / int(h[g - 1])))) | e = 2; g = 2; h = ['1', '1']; i = ['13', '8', '5', '3', '2'] |
k = 'l'; m = 'a1f1h1i2k1'; v = 1 | m += '%s%d' % (k, v) | k = 'l'; m = 'a1f1h1i2k1l1'; v = 1 |
a = ['a', 'b']; s = 'x', | a = list(s) | a = ['x']; s = ('x',) |
b = '0110111010'; i = 7 | b = b[:i] + '011' + b[i + 3:] | b = '0110111011'; i = 7 |
h = [99, 123]; k = 138; m = ['3', '1000'] | h.append(k % int(m[1])) | h = [99, 123, 138]; k = 138; m = ['3', '1000'] |
l = '-1'; v = [[2, 3], [4, -1], [5, -1], [6, -1], [7, 8], [-1, 9], [-1, -1], [10, 11], [-1, -1], [-1, -1], [0, 0]]; x = 10 | v[x][0] = int(l) | l = '-1'; v = [[2, 3], [4, -1], [5, -1], [6, -1], [7, 8], [-1, 9], [-1, -1], [10, 11], [-1, -1], [-1, -1], [-1, 0]]; x = 10 |
k = 5 | y = k % 100 | k = 5; y = 5 |
i = 6; o = [0, 1, 2, 3, 4, 4, 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] | o[i] += o[i - 1] | i = 6; o = [0, 1, 2, 3, 4, 4, 4, 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] |
b = [13]; k = 2 | b.append(6 * k - 1) | b = [13, 11]; k = 2 |
a = 16; f = [1, 2, 1, 2, 1, 2, 3, 4, 1, 1]; h = [1, 2, 1, 2, 1, 1, 1, 3, 2, 1]; i = 8 | a += max(h[i], f[i]) | a = 18; f = [1, 2, 1, 2, 1, 2, 3, 4, 1, 1]; h = [1, 2, 1, 2, 1, 1, 1, 3, 2, 1]; i = 8 |
i = 3; o = 4 | i = o | i = 4; o = 4 |
c = 'from'; i = 1; u = ['i', 'came', 'from', 'the', 'moon.', 'he', 'went', 'she', 'went', 'to', 'the', 'drawing', 'room.'] | c = u[i + 2].strip().replace('.', '') | c = 'the'; i = 1; u = ['i', 'came', 'from', 'the', 'moon.', 'he', 'went', 'she', 'went', 'to', 'the', 'drawing', 'room.'] |
v = ['3 \n', 'cab \n', 'bcab \n', 'ccccc\n', '\n', '\n', '\n'] | i = int(v[0]) | i = 3; v = ['3 \n', 'cab \n', 'bcab \n', 'ccccc\n', '\n', '\n', '\n'] |
c = [1, 5, 10, 12, 111, 200, 1000]; i = 2; x = 6 | x = x + c[i] | c = [1, 5, 10, 12, 111, 200, 1000]; i = 2; x = 16 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.