start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
d = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 1}; i = 'e' | d[i] += 1 | d = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 2}; i = 'e' |
w = '######' | w += '#' | w = '#######' |
b = 5242880 | b <<= 1 | b = 10485760 |
c = [[0, 0, 0, 0, 0, 0], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None]]; i = 1; j = 0 | c[i][j] = 0 | c = [[0, 0, 0, 0, 0, 0], [0, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None]]; i = 1; j = 0 |
f = 0; t = 0.5 | t = f / 2 | f = 0; t = 0.0 |
k = 8 | k += 4 | k = 12 |
a = [4, 3, 5, 1, 2]; e = {(1): 4, (2): 3, (3): 5}; i = 3 | e[i + 1] = a[i] | a = [4, 3, 5, 1, 2]; e = {1: 4, 2: 3, 3: 5, 4: 1}; i = 3 |
a = 'China'; q = {'UK'} | q.add(a) | a = 'China'; q = {'China', 'UK'} |
i = 35; k = {(5): 1} | k[i] = 1 | i = 35; k = {5: 1, 35: 1} |
i = 0; s = [12, 7, 8]; z = 1 | s[z] = s[i] | i = 0; s = [12, 12, 8]; z = 1 |
a = 2; k = {'cities': {2, 3}, 'distance': 2}; m = 4; u = 2 | k = {'cities': set([u, m]), 'distance': a} | a = 2; k = {'cities': {2, 4}, 'distance': 2}; m = 4; u = 2 |
b = 2; j = 3; v = [1, 2, 4]; z = 4 | z = z + b * v[j - 1] | b = 2; j = 3; v = [1, 2, 4]; z = 12 |
a = '2 4 5 9' | r = a.split(' ') | a = '2 4 5 9'; r = ['2', '4', '5', '9'] |
f = 83647; l = [0, 1, 3, 7, 15, 31, 63, 127, 255, 94303, 88607, 77215, 54431, 8863, 17727, 35455, 70911, 41823] | l.append(f) | f = 83647; l = [0, 1, 3, 7, 15, 31, 63, 127, 255, 94303, 88607, 77215, 54431, 8863, 17727, 35455, 70911, 41823, 83647] |
n = 17; o = '0o20' | o = oct(n) | n = 17; o = '0o21' |
i = ['Q', '2']; u = 3 | u = int(i[1]) | i = ['Q', '2']; u = 2 |
a = '7 50' | a = a.split() | a = ['7', '50'] |
i = 2 | p *= i | i = 2; p = 26 |
i = 3; x = [1, 2, 1, 1, 1, 1, 1, 1] | x[i] = x[i - 1] + 1 | i = 3; x = [1, 2, 1, 2, 1, 1, 1, 1] |
b = [21, 28, 26]; s = 5 | b.append(s) | b = [21, 28, 26, 5]; s = 5 |
v = 12 | v += 1 | v = 13 |
t = 'babab' | c = max(c, len(t)) | c = 9; t = 'babab' |
a = 'd'; n = {'d': 1, 'c': 1} | n[a] += 1 | a = 'd'; n = {'d': 2, 'c': 1} |
b = 3; k = 100; l = [100, 100, 0, 0, 0] | l[b + 1] -= k | b = 3; k = 100; l = [100, 100, 0, 0, -100] |
a = '1110'; x = 15 | a = bin(x)[2:] | a = '1111'; x = 15 |
c = '0b11010000001001110001101101001' | c += '1' | c = '0b110100000010011100011011010011' |
s = 'ab' | s = list(s) | s = ['a', 'b'] |
j = 3; k = 1; p = [(2, 3), (5, 4), (7, 1), (8, 2), (20, 0)]; y = -2 | y = p[k][0] - p[j][0] | j = 3; k = 1; p = [(2, 3), (5, 4), (7, 1), (8, 2), (20, 0)]; y = -3 |
i = 'A' | r = r + i | i = 'A'; r = '4v4aISglA' |
i = 1; k = [0, 2, 0, 2, 0, 0, 1, 0, 1, 2, 1, 0, 1, 1, 0, 0, 1, 1, 2, 2, 0, 3, 2, 1, 1, 0, 1, 1, 1, 0, 2, 2] | s += [i] * k[i] | i = 1; k = [0, 2, 0, 2, 0, 0, 1, 0, 1, 2, 1, 0, 1, 1, 0, 0, 1, 1, 2, 2, 0, 3, 2, 1, 1, 0, 1, 1, 1, 0, 2, 2]; s = [1, 1] |
e = 4; w = 5 | w = e | e = 4; w = 4 |
n = 1; r = [2, 2]; v = [1] | v = r[:n] | n = 1; r = [2, 2]; v = [2] |
k = 2 | y = k | k = 2; y = 2 |
d = 'Harsh'; g = [['Harry', 37.21], ['Berry', 37.21], ['Tina', 37.2], ['Akriti', 41.0]]; p = 39.0 | g.append([d, p]) | d = 'Harsh'; g = [['Harry', 37.21], ['Berry', 37.21], ['Tina', 37.2], ['Akriti', 41.0], ['Harsh', 39.0]]; p = 39.0 |
a = 6; m = 4 | a = m | a = 4; m = 4 |
s = ['1', '2', '3'] | w = s | s = ['1', '2', '3']; w = ['1', '2', '3'] |
s = [1] | t = sum(s) | s = [1]; t = 1 |
d = [[0, 9999999999999, 9999999999999], [1, 9999999999999, 9999999999999], [1, 2, 2]]; e = 2; i = 1; m = 2 | d[i][m] = min(d[e][m] + 1, d[i][m]) | d = [[0, 9999999999999, 9999999999999], [1, 9999999999999, 3], [1, 2, 2]]; e = 2; i = 1; m = 2 |
w = 8 | v = w | v = 8; w = 8 |
e = [['H', 'H'], ['H', 'A'], ['H', 'C'], ['H', 'K'], ['A', 'A'], ['A', 'C']]; o = 'A', 'K' | e.append(list(o)) | e = [['H', 'H'], ['H', 'A'], ['H', 'C'], ['H', 'K'], ['A', 'A'], ['A', 'C'], ['A', 'K']]; o = ('A', 'K') |
a = [2, 3, 3]; j = 1; l = 1 | a[j] = l | a = [2, 1, 3]; j = 1; l = 1 |
s = {'a': 2, 'b': 2, 'c': 2}; x = 'd' | s[x] = 1 | s = {'a': 2, 'b': 2, 'c': 2, 'd': 1}; x = 'd' |
p = []; y = 72 | p.append(y) | p = [72]; y = 72 |
a = [2, 2, 2, 2, 2, 2, 2]; k = 0; z = 2 | z = z * 10 + a[k] | a = [2, 2, 2, 2, 2, 2, 2]; k = 0; z = 22 |
i = 3; m = [[1, 0, 0, 0, 0], [0, 1, 0, 0, 0], [0, 0, 1, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]] | m[i][i] = 1 | i = 3; m = [[1, 0, 0, 0, 0], [0, 1, 0, 0, 0], [0, 0, 1, 0, 0], [0, 0, 0, 1, 0], [0, 0, 0, 0, 0]] |
i = 1073741824; r = [1, 2, 4, 8, 16, 32, 64, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912] | r.append(i) | i = 1073741824; r = [1, 2, 4, 8, 16, 32, 64, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824] |
b = {2, 3, 4}; w = 3 | b.remove(w) | b = {2, 4}; w = 3 |
z = [2] | j = int(''.join(map(str, z))) | j = 2; z = [2] |
b = 4.973799150320701e-14; j = [1.5, 1.75, 0.875, 0.4375, 3.979039320256561e-13, 1.9895196601282805e-13, 9.947598300641403e-14] | j.append(b % 2) | b = 4.973799150320701e-14; j = [1.5, 1.75, 0.875, 0.4375, 3.979039320256561e-13, 1.9895196601282805e-13, 9.947598300641403e-14, 4.973799150320701e-14] |
q = ( ' He did not think of doubting Freemasonry itself...g path and deviated from its original principles.' ); v = [ ' Freemasonry, at any rate as he saw it here, sometimes seemed to him based merely on externals.' ]; y = '?' | v = q.split(y) | q = ' He did not think of doubting Freemasonry itself...g path and deviated from its original principles.'; v = [' He did not think of doubting Freemasonry itself...g path and deviated from its original principles.']; y = '?' |
i = 2; s = '234' | s = s[len(str(i)):] | i = 2; s = '34' |
c = ( 'In the third category he included those Brothers..., breathless from his gallop and his excitement. ' ); i = 'In the thir'; k = 11 | i += c[k] | c = 'In the third category he included those Brothers..., breathless from his gallop and his excitement. '; i = 'In the third'; k = 11 |
o = ( '1 1 3 3 6 8 9 9 10 12 13 16 16 18 20 21 21 22 23... 59 60 61 63 65 67 67 68 69 69 69 70 70 73 73 74 ' ); x = 75 | o += str(x) + ' ' | o = '1 1 3 3 6 8 9 9 10 12 13 16 16 18 20 21 21 22 23... 59 60 61 63 65 67 67 68 69 69 69 70 70 73 73 74 75 '; x = 75 |
a = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 0, 52, 1, 55, 0, 56, 1, 59, 0, 60, 1, 63, 0, 64]; x = 65 | a.append(a[-1] ^ x) | a = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 0, 52, 1, 55, 0, 56, 1, 59, 0, 60, 1, 63, 0, 64, 1]; x = 65 |
k = 4 | k = k + 1 | k = 5 |
q = '000000000000000000000000' | q += '0' | q = '0000000000000000000000000' |
a = 3; i = 1; s = 6.0; x = 5 | s += x * (1 + i / a) | a = 3; i = 1; s = 12.666666666666666; x = 5 |
s = '110' | l = s.find('1') | l = 0; s = '110' |
d = '1000000000000000' | d += '0' | d = '10000000000000000' |
z = '100000000000000000000000000' | z += '0' | z = '1000000000000000000000000000' |
p = 1; s = ['(', '(', None, ')'] | p = s.index(None, p) | p = 2; s = ['(', '(', None, ')'] |
h = 1; i = 1; m = ['a']; r = 'aaaaaaaaaab' | m.append(r[h:i + 1]) | h = 1; i = 1; m = ['a', 'a']; r = 'aaaaaaaaaab' |
x = [1, 2] | d = id(x) | d = 139758047246128; x = [1, 2] |
p = 1 | k.append(p) | k = [1]; p = 1 |
b = 1 | q.append(b) | b = 1; q = [1] |
j = ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'abc']; z = 'abc' | z = j[-1] | j = ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'abc']; z = 'abc' |
r = 7; z = [9, 90, 99, 900, 909, 990, 999, 9000, 9009, 9090, 9099, 9900, 9909, 9990, 9999] | z.append(z[r] * 10) | r = 7; z = [9, 90, 99, 900, 909, 990, 999, 9000, 9009, 9090, 9099, 9900, 9909, 9990, 9999, 90000] |
b = {'c': 2, 'd': 1}; i = 'd' | b[i] = b.get(i, 0) + 1 | b = {'c': 2, 'd': 2}; i = 'd' |
m = ['000', '001', '002', '003', '004', '005', '006', '012', '013', '014', '015', '016', '017', '018']; n = 19 | m.append('0' + str(n)) | m = ['000', '001', '002', '003', '004', '005', '006', '012', '013', '014', '015', '016', '017', '018', '019']; n = 19 |
c = 'e'; g = 'beb' | g += c | c = 'e'; g = 'bebe' |
t = 3 | z = t | t = 3; z = 3 |
g = [4, 5, 3, 7, 2] | e = g[0] | e = 4; g = [4, 5, 3, 7, 2] |
g = [(3, 1), (2, 1)]; h = 1 | g.append((h, 1)) | g = [(3, 1), (2, 1), (1, 1)]; h = 1 |
k = 12 | k += 1 | k = 13 |
x = 5 | x += 1 | x = 6 |
e = ['07', '05', '45'] | h = int(e[0]) | e = ['07', '05', '45']; h = 7 |
e = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2], [0, 2, 1], [0, 2, 2]]; i = 1; j = 0; k = 0 | e.append([i, j, k]) | e = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2], [0, 2, 1], [0, 2, 2], [1, 0, 0]]; i = 1; j = 0; k = 0 |
a = 1; b = 4 | b -= a | a = 1; b = 3 |
i = 17; l = 10.0; n = ['-', '-', '-', '-', '-', 'to', 'be', 'or', 'not', 'to', 'be', '-', 'that']; s = 'is' | n.append('-' if i < l else s) | i = 17; l = 10.0; n = ['-', '-', '-', '-', '-', 'to', 'be', 'or', 'not', 'to', 'be', '-', 'that', 'is']; s = 'is' |
d = deque([]); l = ['append', '1'] | d.append(int(l[1])) | d = deque([1]); l = ['append', '1'] |
s = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 2, 'f': 1, 'g': 1, 'h': 1, 'i': 1} | v = list(s.values()) | s = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 2, 'f': 1, 'g': 1, 'h': 1, 'i': 1}; v = [2, 2, 2, 2, 2, 1, 1, 1, 1] |
a = ['6']; i = 6 | a.append(str(oct(i)[1:])) | a = ['6', 'o6']; i = 6 |
r = 'r'; s = 'ank' | r = s[0] | r = 'a'; s = 'ank' |
k = 3; n = 7 | r = n - k + 1 | k = 3; n = 7; r = 5 |
i = 3; p = 7; z = [1, 1, 2] | z.append(z[-1] * i % p) | i = 3; p = 7; z = [1, 1, 2, 6] |
d = [True, True, True, True, False, False, True, True, False, True, True, False, False]; i = 2; p = 6 | d[i + p] = True | d = [True, True, True, True, False, False, True, True, True, True, True, False, False]; i = 2; p = 6 |
a = array([[1.1, 1.1], [1.1, 1.1]]); n = 2 | m, n = a.shape[-2:] | a = array([[1.1, 1.1],
[1.1, 1.1]]); m = 2; n = 2 |
i = 9; j = 9 | j = i + 2 | i = 9; j = 11 |
a = 0; b = 1 | d.append([a, b] if a < b else [b, a]) | a = 0; b = 1; d = [[0, 1]] |
a = [[0, 0, 0, 0], [0, 0, 0]]; j = 2 | a[j - 1].append(0) | a = [[0, 0, 0, 0], [0, 0, 0, 0]]; j = 2 |
f = 2 | f -= 1 | f = 1 |
h = 'Arjun'; t = {'Krishna': ['67', '68', '69']}; w = ['70', '98', '63'] | t[h] = w | h = 'Arjun'; t = {'Krishna': ['67', '68', '69'], 'Arjun': ['70', '98', '63']}; w = ['70', '98', '63'] |
g = 1; m = 2 | g = m | g = 2; m = 2 |
u = ['2'] | u[0] = int(u[0]) | u = [2] |
c = 'b',; e = 'a' | e = ''.join(c) | c = ('b',); e = 'b' |
r = 2 | n += r | n = 52; r = 2 |
x = 1 | e += x | e = 3.718281828459045; x = 1 |
d = ['{', '[']; k = '(' | k = d.pop() | d = ['{']; k = '[' |
i = 5; k = {(2): 0, (1): 1, (5): 2, (3): 3, (4): 4}; l = [2, 5, 1, 3, 4] | k = {l[i]: i for i in range(len(l))} | i = 5; k = {}; l = [] |
p = 79 | p += 1 | p = 80 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.