start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
l = ['67', '17']; z = {(95): 13, (97): 25, (93): 37, (79): 27, (75): 19, (49): 47} | z[int(l[0])] = int(l[1]) | l = ['67', '17']; z = {95: 13, 97: 25, 93: 37, 79: 27, 75: 19, 49: 47, 67: 17} |
i = 0; k = 0; r = [100, 100, 0, 0, -100] | k += r[i] | i = 0; k = 100; r = [100, 100, 0, 0, -100] |
i = 9 | i += 1 | i = 10 |
r = [[2, 1, 0, 0], [0, 1, 1, 0], [0, 0, 1, 0], [1, 0, 0, 0]]; x = 0; y = 0 | r[y + 1][x + 1] = 2 | r = [[2, 1, 0, 0], [0, 2, 1, 0], [0, 0, 1, 0], [1, 0, 0, 0]]; x = 0; y = 0 |
b = 4; j = [0, 100, 100, 0, 0, 0]; s = 100 | j[b + 1] -= s | b = 4; j = [0, 100, 100, 0, 0, -100]; s = 100 |
n = 72 | s = n | n = 72; s = 72 |
g = [0] | g[0] = 1 | g = [1] |
i = 1; j = {(0): 0, (1): 6, (2): 6} | x.append(j[i]) | i = 1; j = {0: 0, 1: 6, 2: 6}; x = [6] |
e = 3; h = 'ba'; i = 0; s = 'abba' | h = s[i:i + e] | e = 3; h = 'abb'; i = 0; s = 'abba' |
c = 1; g = 3 | c = g | c = 3; g = 3 |
o = 2.0; q = [1.0] | q.append(o) | o = 2.0; q = [1.0, 2.0] |
f = 105; k = 2; y = 111 | y = f + k | f = 105; k = 2; y = 107 |
f = '{'; o = ['{', '[', '('] | f = o.pop() | f = '('; o = ['{', '['] |
d = [33, 11, 44, 11, 55]; i = 11; j = 4 | i = d[j] | d = [33, 11, 44, 11, 55]; i = 55; j = 4 |
h = Counter({(1): 1, (2): 1, (3): 1, (4): 1}); i = 1 | k += h[i] | h = Counter({1: 1, 2: 1, 3: 1, 4: 1}); i = 1; k = 87 |
l = [3, 5]; n = [[1, 2], [1, 3], [3, 4]] | n.append(l) | l = [3, 5]; n = [[1, 2], [1, 3], [3, 4], [3, 5]] |
v = 'a'; x = 'b' | v = x | v = 'b'; x = 'b' |
i = 2; s = 'gu'; z = 'gurwgrb' | s = s + z[i] | i = 2; s = 'gur'; z = 'gurwgrb' |
t = 3 | i = t | i = 3; t = 3 |
i = 'd'; n = 4 | n += ord(i) - ord('a') + 1 | i = 'd'; n = 8 |
c = [3, 3, 9, 9, 5]; p = 2; x = 2; y = 1 | p += c[x + y] | c = [3, 3, 9, 9, 5]; p = 11; x = 2; y = 1 |
f = 5; m = ['3', '4\n'] | f = int(m[0]) | f = 3; m = ['3', '4\n'] |
s = [['1', '1', '1', '2'], ['1', 'X', '1', '2'], ['1', '8', '9', '2'], ['1', '2', '3', '4']]; t = '9'; x = 2; y = 1 | t = s[y][x] | s = [['1', '1', '1', '2'], ['1', 'X', '1', '2'], ['1', '8', '9', '2'], ['1', '2', '3', '4']]; t = '1'; x = 2; y = 1 |
l = -2; o = -1 | o = l | l = -2; o = -2 |
b = 1; h = 3; s = [1, 1, 2, 3, 2] | b = s[h] | b = 3; h = 3; s = [1, 1, 2, 3, 2] |
u = [42] | f = u.pop() | f = 42; u = [] |
g = 3; h = {(1): [2, 3], (2): [1], (3): [1]}; i = 2 | h[i].append(g) | g = 3; h = {1: [2, 3], 2: [1, 3], 3: [1]}; i = 2 |
a = [[0, 0, 0, 0]] | a.append([]) | a = [[0, 0, 0, 0], []] |
i = 4; l = 1; s = [1, 1, 2, 3, 2] | l = s[i] | i = 4; l = 2; s = [1, 1, 2, 3, 2] |
l = -1; m = 0; x = ['1', '1'] | x.append(str(max(l, m) + 1)) | l = -1; m = 0; x = ['1', '1', '1'] |
f = {(0, 1), (1, 2), (3, 2), (0, 0), (0, 2), (2, 1), (2, 0), (2, 2), (1, 0), (1, 1)}; n = 2, 3 | f.add(n) | f = {(0, 1), (1, 2), (3, 2), (0, 0), (2, 1), (2, 0), (1, 1), (2, 3), (2, 2), (1, 0), (0, 2)}; n = (2, 3) |
e = OrderedDict([('BANANA FRIES 12', 1), ('POTATO CHIPS 30', 1), ( 'APPLE JUICE 10', 2), ('CANDY 5', 4)]); v = 'POTATO CHIPS 30' | e[v] += 1 | e = OrderedDict([('BANANA FRIES 12', 1), ('POTATO CHIPS 30', 2), ('APPLE JUICE 10', 2), ('CANDY 5', 4)]); v = 'POTATO CHIPS 30' |
x = 1 | i = x | i = 1; x = 1 |
h = '111111111111111111' | h += '1' | h = '1111111111111111111' |
r = ['i', 'l', 'u', 'h'] | r.sort() | r = ['h', 'i', 'l', 'u'] |
g = (0, 1), (3, 3), (0, 3); m = [3, 3] | m = [(max(l) - min(l)) for l in zip(*g)] | g = ((0, 1), (3, 3), (0, 3)); m = [3, 2] |
d = {(1): 1, (2): 1, (3): 1} | d = dict() | d = {} |
i = 4; l = ['4', '.', '0', 'O']; s = '4.0O0' | l.append(s[i]) | i = 4; l = ['4', '.', '0', 'O', '0']; s = '4.0O0' |
a = 2; b = 2; q = 5 | b = q - a | a = 2; b = 3; q = 5 |
m = 48; n = 88 | n -= m | m = 48; n = 40 |
v = 'BANANA FRIES 12' | c = int(v.split()[-1]) | c = 12; v = 'BANANA FRIES 12' |
k = 3; l = [1, 3, 5, 7, 9]; y = 2 | y = l.index(k) | k = 3; l = [1, 3, 5, 7, 9]; y = 1 |
l = ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'] | l.append('1') | l = ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1'] |
k = 3; x = 3 | k += x | k = 6; x = 3 |
b = 204; p = {(203): 2, (204): 2, (205): 3, (206): 3, (207): 1, (208): 1} | p[b] = p.get(b, 0) + 1 | b = 204; p = {203: 2, 204: 3, 205: 3, 206: 3, 207: 1, 208: 1} |
a = 2; b = 10; i = 86; o = 773712524553362671811952798 | o += a ^ b << i | a = 2; b = 10; i = 86; o = 1547425049106725343623905440 |
i = 3; p = 3 | i += p | i = 6; p = 3 |
k = 'AAAA'; q = 3; s = 'AAAA' | k = s[:q - 1] + s[q:] | k = 'AAA'; q = 3; s = 'AAAA' |
n = ['1', 'xy']; s = '3'; t = 2 | t, s = int(n[0]), n[1] | n = ['1', 'xy']; s = 'xy'; t = 1 |
g = array([[7, 10], [15, 22]]); k = 139989187350160, 139989647373568; v = set() | v.add(k) | g = array([[ 7, 10],
[15, 22]]); k = (139989187350160, 139989647373568); v = {(139989187350160, 139989647373568)} |
k = [4, 3, 2, 1, 3, 4]; n = 2; t = [4, 4, 3, 3] | t.append(k[n]) | k = [4, 3, 2, 1, 3, 4]; n = 2; t = [4, 4, 3, 3, 2] |
d = [[5], [7]]; f = 0; y = 3 | d[f].append(y) | d = [[5, 3], [7]]; f = 0; y = 3 |
c = 'd'; s = 'c' | s += c | c = 'd'; s = 'cd' |
i = 21; s = '1 1 3 3 6 8 9 9 10 12 13 16 16 18 20 ' | s += str(i) | i = 21; s = '1 1 3 3 6 8 9 9 10 12 13 16 16 18 20 21' |
f = '\n'; q = ['1\n', '2\n', '\n', '\n'] | q.append(f) | f = '\n'; q = ['1\n', '2\n', '\n', '\n', '\n'] |
e = 2.0; n = 3; t = 3 | e += (n + 1) / (t + 1) | e = 3.0; n = 3; t = 3 |
c = '032'; x = 40 | c = '{0:0=3d}'.format(x) | c = '040'; x = 40 |
a = 4; d = [1] | d.append(abs(a)) | a = 4; d = [1, 4] |
p = 44; y = [11, 33, 44, 55] | p = y[-1] | p = 55; y = [11, 33, 44, 55] |
a = 0; b = [[5, 3], [7]]; x = 1 | t = b[x][a] | a = 0; b = [[5, 3], [7]]; t = 7; x = 1 |
k = ['Harry', 'Berry'] | k.sort() | k = ['Berry', 'Harry'] |
i = 4096 | i = i * 2 | i = 8192 |
d = 6; k = 7; p = 3 | d = k % p | d = 1; k = 7; p = 3 |
d = 93; w = {(95): 13, (97): 25}; x = 37 | w[d] = x | d = 93; w = {95: 13, 97: 25, 93: 37}; x = 37 |
h = 'abba'; i = 0; j = 3; l = ['a', 'b', 'b'] | l = [el for el in h[i:j + 1]] | h = 'abba'; i = 0; j = 3; l = ['a', 'b', 'b', 'a'] |
k = 73; n = ( 61234458376886086861524070385274672740778091784697328983823014963978384987221689274204160000000000000000 ) | n *= k | k = 73; n = 4470115461512684340891257138125051110076800700282905015819080092370422104067183317016903680000000000000000 |
d = [12, 0]; h = 1; i = 3 | d[h] = abs(a[i][0] - a[i][1]) | a = [[8, 8, 0], [4, -6, -4], [-4, 8, -6], [-1, 9, 0]]; d = [12, 10]; h = 1; i = 3 |
d = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; i = 0; j = 1; o = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | o[i] += d[j] - d[i] | d = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; i = 0; j = 1; o = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
i = 1; v = 50 | v -= i | i = 1; v = 49 |
x = 0 | c = {x: 0} | c = {0: 0}; x = 0 |
r = 3; t = 2 | t = max(r, t) | r = 3; t = 3 |
d = [6, 8, 10, 11, 15, 16, 20, 20, 20, 20, 20, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 12 | d[i] += d[i - 1] | d = [6, 8, 10, 11, 15, 16, 20, 20, 20, 20, 20, 20, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 12 |
a = [1, 2, 3] | x = min(a) | a = [1, 2, 3]; x = 1 |
e = 5; h = -14; j = 3; r = [-3, 7, -2, 3, 5, -2] | h += e * r[j] | e = 5; h = 1; j = 3; r = [-3, 7, -2, 3, 5, -2] |
a = 6; b = 9; k = {(1): 1, (2): 2, (3): 2, (4): 3, (5): 3, (6): 4, (7): 4, (8): 4} | k[b] = k[a] + 1 | a = 6; b = 9; k = {1: 1, 2: 2, 3: 2, 4: 3, 5: 3, 6: 4, 7: 4, 8: 4, 9: 5} |
f = 0 | n = f + 1 if f > 0 else 0 | f = 0; n = 0 |
i = 1; j = 2; t = [(0, 0), (0, 1), (1, 1)] | t.append((i, j)) | i = 1; j = 2; t = [(0, 0), (0, 1), (1, 1), (1, 2)] |
l = 4; s = 46; y = [3, 6, 12, 24, 46] | s = s + y[l] | l = 4; s = 92; y = [3, 6, 12, 24, 46] |
a = [6, 5, 4, 9]; c = 7 | c = len(a) | a = [6, 5, 4, 9]; c = 4 |
a = 4; b = 5 | l = b / a + 1 | a = 4; b = 5; l = 2.25 |
c = [[6, '-']]; x = [6, '-'] | c.append(x) | c = [[6, '-'], [6, '-']]; x = [6, '-'] |
s = [(8, 1, 0), (0, 3, 1)]; x = 0, 3, 0 | x = min(s) | s = [(8, 1, 0), (0, 3, 1)]; x = (0, 3, 1) |
e = ['-', '-', '-', '-', '-', 'to', 'be', 'or']; z = 'not' | e.append(z) | e = ['-', '-', '-', '-', '-', 'to', 'be', 'or', 'not']; z = 'not' |
b = 2 | h = [0] * b | b = 2; h = [0, 0] |
e = 4.0 | e = e + 1 | e = 5.0 |
p = {''}; x = 1; y = 0; z = 'aab' | p.add(z[y:y + x]) | p = {'', 'a'}; x = 1; y = 0; z = 'aab' |
d = 7; m = 0.025074013076873403; n = 22; z = 3.141592653589793 | m = abs(z - n / d) | d = 7; m = 0.0012644892673496777; n = 22; z = 3.141592653589793 |
f = 3; q = 8; u = 6 | q = u + f | f = 3; q = 9; u = 6 |
n = 39; q = ['000', '001', '002', '003', '004', '005', '006', '032', '033', '034', '035', '036', '037', '038'] | q.append('0' + str(n)) | n = 39; q = ['000', '001', '002', '003', '004', '005', '006', '032', '033', '034', '035', '036', '037', '038', '039'] |
k = 'BANANA FRIES'; s = '12' | d[k] = int(s) | d = {'BANANA FRIES': 12}; k = 'BANANA FRIES'; s = '12' |
i = 1; s = 12 | s += i | i = 1; s = 13 |
a = '5'; b = '15' | a, b = [int(a), int(b)] | a = 5; b = 15 |
a = [[1, 2]]; t = [3, 4] | a.append(t) | a = [[1, 2], [3, 4]]; t = [3, 4] |
x = 47.847239673137665 | x = x / 2 | x = 23.923619836568832 |
a = 4; k = 2; n = 0; o = [1, 1, 1, 2, 2] | n = o[a - 1] - o[a - k] | a = 4; k = 2; n = 1; o = [1, 1, 1, 2, 2] |
j = 1.200000000000001e-72 | j /= 10 | j = 1.2000000000000011e-73 |
i = 2; n = 12; x = 2 | x = n // i | i = 2; n = 12; x = 6 |
m = {'_': 0, 'X': 1}; o = '_'; t = 2 | t = m[o] | m = {'_': 0, 'X': 1}; o = '_'; t = 0 |
y = '1' | y = int(y.split()[0]) | y = 1 |
m = ''; r = ['abbab ba', 'hello world', 'banana nan', ''] | r.append(m) | m = ''; r = ['abbab ba', 'hello world', 'banana nan', '', ''] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.