start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
c = 'to'; j = ['i', 'like'] | j.append(c) | c = 'to'; j = ['i', 'like', 'to'] |
d = OrderedDict([('BANANA FRIES', 12)]); n = ['POTATO', 'CHIPS', '30']; o = 'POTATO CHIPS' | d[o] = int(n[-1]) | d = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30)]); n = ['POTATO', 'CHIPS', '30']; o = 'POTATO CHIPS' |
b = 96 | b -= 3 | b = 93 |
m = 7.105427357601002e-14 | m /= 2 | m = 3.552713678800501e-14 |
k = 3; p = 5 | f = k + p | f = 8; k = 3; p = 5 |
f = {'1': 1, '2': 1, '3': 1, '6': 1}; i = '5' | f[i] = 1 | f = {'1': 1, '2': 1, '3': 1, '6': 1, '5': 1}; i = '5' |
i = 0; u = [1, 5, 10, 12, 111, 200, 1000] | n += u[i] | i = 0; n = -51; u = [1, 5, 10, 12, 111, 200, 1000] |
p = 1.7999999999999993e-83 | p /= 10 | p = 1.7999999999999993e-84 |
g = 'xy'; l = ['', 'abc', ''] | g = l.pop() | g = ''; l = ['', 'abc'] |
l = [1, -1, -1, 0, -1, 0, 1, -1, -1, 0, -1]; n = 1; q = {(3): [1, -1, -1, -1, 0, -1], (2): [2, -1, -1, -1, -1, -1]}; s = 8 | l[s] = n | l = [1, -1, -1, 0, -1, 0, 1, -1, 1, 0, -1]; n = 1; q = {3: [1, -1, -1, -1, 0, -1], 2: [2, -1, -1, -1, -1, -1]}; s = 8 |
c = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; f = 4; i = 2; l = 8 | l = c[i + f - 1] - c[i] | c = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; f = 4; i = 2; l = 17 |
k = 336634263; p = 149305588; s = 1000000007 | k = k * p % s | k = 226332012; p = 149305588; s = 1000000007 |
q = 1; x = 7 | x -= q * 5 | q = 1; x = 2 |
h = 1; s = [1, 2, 3, 4] | s.remove(h) | h = 1; s = [2, 3, 4] |
i = 3; z = 4 | z = i | i = 3; z = 3 |
e = 2; n = 1 | n = e | e = 2; n = 2 |
a = [[0, 'ab'], [6, 'cd'], [0, 'ef'], [6, 'gh'], [4, 'ij'], [3, 'be'], [0, 'to'], [1, 'be'], [5, 'question']]; e = ['1', 'or'] | a += [[int(e[0]), e[1]]] | a = [[0, 'ab'], [6, 'cd'], [0, 'ef'], [6, 'gh'], [4, 'ij'], [3, 'be'], [0, 'to'], [1, 'be'], [5, 'question'], [1, 'or']]; e = ['1', 'or'] |
c = 'f'; i = 2; s = 'defgab'; x = {} | x[c] = [i == len(s) - 1, {}] | c = 'f'; i = 2; s = 'defgab'; x = {'f': [False, {}]} |
a = 1; b = 'be'; i = [[0, '-'], [6, '-'], [0, '-'], [6, '-'], [4, '-'], [0, '-'], [4, 'that' ], [3, 'be'], [0, 'to']] | i.append([a, b]) | a = 1; b = 'be'; i = [[0, '-'], [6, '-'], [0, '-'], [6, '-'], [4, '-'], [0, '-'], [4, 'that'], [3, 'be'], [0, 'to'], [1, 'be']] |
c = (1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); h = -7636450797695888907 | h = hash(c) | c = (1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); h = 379572696532924232 |
m = 2; n = 2 | g = n * m | g = 4; m = 2; n = 2 |
i = 0; l = [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []]; m = 6 | l[m].append(i) | i = 0; l = [[], [], [], [], [], [], [0], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []]; m = 6 |
i = 6; o = [0, 4, 4, 4, 4, 4, 3, 0, 0] | o[i] += 1 | i = 6; o = [0, 4, 4, 4, 4, 4, 4, 0, 0] |
s = 8 | s += 1 | s = 9 |
a = ['ab', 'cd', 'ef', 'gh', 'ij', 'ab', '', '', '', '', '', '', '', '', '', '', '', '', '', '']; e = 'cd'; f = 6 | a[f] = e | a = ['ab', 'cd', 'ef', 'gh', 'ij', 'ab', 'cd', '', '', '', '', '', '', '', '', '', '', '', '', '']; e = 'cd'; f = 6 |
a = 0.0; t = -4.0; w = 0.0 | q = t * t + a * a + w * w | a = 0.0; q = 16.0; t = -4.0; w = 0.0 |
l = 'd'; x = ['w', 'e', ' ', 'p', 'r', 'o', 'm', 't', 'l', 'y', 'j', 'u'] | x.append(l) | l = 'd'; x = ['w', 'e', ' ', 'p', 'r', 'o', 'm', 't', 'l', 'y', 'j', 'u', 'd'] |
k = 15 | k += 1 | k = 16 |
b = [1, 1, 1]; i = 1; j = 1; k = 2; l = [1, 1, 2, 2, 3, 4] | b = [l[i], l[j], l[k]] | b = [1, 1, 2]; i = 1; j = 1; k = 2; l = [1, 1, 2, 2, 3, 4] |
g = {'c': 1, 'd': 1, 'e': 1}; q = 1; t = 'c'; v = {'a': 1, 'b': 1, 'c': 1} | q = max(v[t] - g[t], 0) | g = {'c': 1, 'd': 1, 'e': 1}; q = 0; t = 'c'; v = {'a': 1, 'b': 1, 'c': 1} |
c = [0, 1, 3, 0]; x = 4 | c.append(c[-1] ^ x) | c = [0, 1, 3, 0, 4]; x = 4 |
a = {'c': 2, 'd': 2, 'cd': 3, 'ccd': 1}; c = 'cdd' | a[c] = a.get(c, 0) + 1 | a = {'c': 2, 'd': 2, 'cd': 3, 'ccd': 1, 'cdd': 1}; c = 'cdd' |
e = 3; f = {1, 2} | f.add(e) | e = 3; f = {1, 2, 3} |
n = [0, 1] | x, j = n | j = 1; n = [0, 1]; x = 0 |
i = 0 | n = 1 << i | i = 0; n = 1 |
u = 'q'; w = ['k'] | w = list(u) | u = 'q'; w = ['q'] |
f = 2; h = 4.76844386786983; m = 1.9073486328125e-06 | h *= m % f + 1 | f = 2; h = 4.768452962954722; m = 1.9073486328125e-06 |
i = 12 | i = i + 1 | i = 13 |
e = 1; m = 3; x = [inf, 0, 6, inf, inf] | x[m] = x[e] + 6 | e = 1; m = 3; x = [inf, 0, 6, 6, inf] |
f = {(32): ['31415926535897932384626433832795']}; r = 1 | f[r] = list() | f = {32: ['31415926535897932384626433832795'], 1: []}; r = 1 |
i = 5; o = [1.0, 1.0, 1.0, 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]; w = [2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | o[i] = w[i] / 2 | i = 5; o = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; w = [2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
k = 3; m = [9, 7, 5, 3, 1] | j = m[:k] | j = [9, 7, 5]; k = 3; m = [9, 7, 5, 3, 1] |
a = [2, 5, 3, 6]; i = 3; n = 1 | n -= a[i] | a = [2, 5, 3, 6]; i = 3; n = -5 |
c = 'aabbccddeefghi' | u = list(c) | c = 'aabbccddeefghi'; u = ['a', 'a', 'b', 'b', 'c', 'c', 'd', 'd', 'e', 'e', 'f', 'g', 'h', 'i'] |
q = 5 | u += q % 2 | q = 5; u = 84 |
s = [''] | x.append(s) | s = ['']; x = [['']] |
d = [-7330761, -6461594, -3916237, -3620601, -357920, -20, 30, 266854, 6246457, 7374819]; i = 5; p = 3262681 | p = d[i] - d[i - 1] | d = [-7330761, -6461594, -3916237, -3620601, -357920, -20, 30, 266854, 6246457, 7374819]; i = 5; p = 357900 |
e = 'This$#is% Matrix#'; s = ' ' | e += s | e = 'This$#is% Matrix# '; s = ' ' |
j = '10' | y[j] = 1 | j = '10'; y = {'10': 1} |
i = 3; s = 1000000007 | r = (r + i) % s | i = 3; r = 999999953; s = 1000000007 |
p = -3; t = -2 | t = max(p, t + p) | p = -3; t = -3 |
a = ['14', 'o16', 'E', '1110'] | a = list() | a = [] |
i = 'c'; l = 2; n = {'g': 1, 'f': 1, 'e': 1, 'd': 1} | n[i] = l // 2 | i = 'c'; l = 2; n = {'g': 1, 'f': 1, 'e': 1, 'd': 1, 'c': 1} |
p = 45782697; s = 1000000007 | p = p * p % s | p = 329921424; s = 1000000007 |
c = 'd'; k = {'a': 1, 'b': 1, 'c': 1} | k[c] = k.get(c, 0) + 1 | c = 'd'; k = {'a': 1, 'b': 1, 'c': 1, 'd': 1} |
a = 14; u = 2197 | u = a | a = 14; u = 14 |
i = 'c'; p = 'ab' | p += i | i = 'c'; p = 'abc' |
f = [4, 5, 6, 7, 8, 9]; v = 3 | v = f.pop(0) | f = [5, 6, 7, 8, 9]; v = 4 |
q = {(1): []}; y = 2 | q[y] = [] | q = {1: [], 2: []}; y = 2 |
c = [['-', '-', '-', '-', '-', 'to'], ['be', 'or'], ['not'], ['be'], ['-', 'that', 'is'], [], [], [], []]; s = 2; w = 'to' | c[s].append(w) | c = [['-', '-', '-', '-', '-', 'to'], ['be', 'or'], ['not', 'to'], ['be'], ['-', 'that', 'is'], [], [], [], []]; s = 2; w = 'to' |
i = 2; s = '1' | s = s[i:] | i = 2; s = '' |
i = 4; s = '999100010001'; x = 999 | x = int(s[:i]) | i = 4; s = '999100010001'; x = 9991 |
c = 1; i = 1; j = 1; n = [(1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), (7, 2), (7, 3), (7, 4), (7, 5), (7, 6), (7, 7)] | i, j = n[c][0], n[c][1] | c = 1; i = 1; j = 2; n = [(1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), (7, 2), (7, 3), (7, 4), (7, 5), (7, 6), (7, 7)] |
h = 3 | h = h * 2 | h = 6 |
a = 7; f = '99910001001' | f = str(a) | a = 7; f = '7' |
e = '1'; s = 4; w = 3 | w += s * int(e) | e = '1'; s = 4; w = 7 |
b = 2 | b += 1 | b = 3 |
j = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 10)]); r = ['CANDY', '5'] | j[' '.join(r[:-1])] = int(r[len(r) - 1]) | j = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 10), ('CANDY', 5)]); r = ['CANDY', '5'] |
d = [None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None] | d.append(None) | d = [None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None] |
k = 1; s = 'mnop' | k = len(s) // 2 | k = 2; s = 'mnop' |
s = [(3, 0), (9, 1), (6, 2)] | t = s[0][1] | s = [(3, 0), (9, 1), (6, 2)]; t = 0 |
m = {'A': 3, 'C': 0, 'G': 1, 'T': 1}; x = 'A' | m[x] += 1 | m = {'A': 4, 'C': 0, 'G': 1, 'T': 1}; x = 'A' |
g = 49; i = 59; u = 11 | g = u ^ i | g = 48; i = 59; u = 11 |
c = '000000001' | c = '0' + c | c = '0000000001' |
i = 5; j = 4; l = [6, 11, 25, 22, 0, 0, 0, 0, 0, 0]; y = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200] | l[j] += y[i] - y[j] | i = 5; j = 4; l = [6, 11, 25, 22, 10, 0, 0, 0, 0, 0]; y = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200] |
j = 22; n = [79, 21]; w = 22 | j = w + n[0] | j = 101; n = [79, 21]; w = 22 |
s = 'abcdefghij' | o = sorted(list(s)) | o = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j']; s = 'abcdefghij' |
q = [0, 2, 4, 5, 6, 7, -1, -1, 10, -1, -1]; u = -1 | q.append(u) | q = [0, 2, 4, 5, 6, 7, -1, -1, 10, -1, -1, -1]; u = -1 |
r = '100101' | r += '0' | r = '1001010' |
d = 5 | d = d % 5 | d = 0 |
u = 4; z = 2 | p = 1 << int(u - z) | p = 4; u = 4; z = 2 |
c = 1; n = 1; y = 1 | v = min(n - y, c - 1) | c = 1; n = 1; v = 0; y = 1 |
i = 8; y = 8 | y += i | i = 8; y = 16 |
q = 120; w = {(210): 1, (300): 1} | w[q] = 1 | q = 120; w = {210: 1, 300: 1, 120: 1} |
i = 1; y = [2, 3, 4, 5, 6] | y[i + 1] += 1 | i = 1; y = [2, 3, 5, 5, 6] |
i = 2; j = 152 | j += i | i = 2; j = 154 |
d = 1; f = 1; l = [3, 1, 2] | d, f = 0, len(l) | d = 0; f = 3; l = [3, 1, 2] |
i = 2; z = 1 | z = z * i | i = 2; z = 2 |
f = 3; j = 2; k = 2 | f = j + k | f = 4; j = 2; k = 2 |
i = 0; l = 4; z = 4, | l -= z[i] | i = 0; l = 0; z = (4,) |
a = 'ABACABAz'; d = ['A', 'A', 'B']; w = 2 | d.append(a[w]) | a = 'ABACABAz'; d = ['A', 'A', 'B', 'A']; w = 2 |
b = 'f'; t = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'e': 1, 'f': 1, 'g': 2, 'h': 2} | t[b] += 1 | b = 'f'; t = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'e': 1, 'f': 2, 'g': 2, 'h': 2} |
c = '0'; u = '0100000010011100011011010011' | u = u + c | c = '0'; u = '01000000100111000110110100110' |
x = 2 | i.append(x) | i = [2]; x = 2 |
a = 6; b = 10; r = 0 | r = b % a | a = 6; b = 10; r = 4 |
p = 100; x = 9 | x = x * x % p | p = 100; x = 81 |
c = 4; d = 8; s = 9 | c = c + abs(s - d) | c = 5; d = 8; s = 9 |
f = ['2', '1000'] | n = int(f[0]) | f = ['2', '1000']; n = 2 |
i = 1; x = [1, '1000', '1'] | x[i] = int(x[i]) | i = 1; x = [1, 1000, '1'] |
a = ['append', '9']; l = [5, 10] | getattr(l, a[0])(int(a[1])) | a = ['append', '9']; l = [5, 10, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.