start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
c = '-1 -1'; k = 9 | k = int(c.split(' ')[1]) | c = '-1 -1'; k = -1 |
k = 0; n = 10; p = 'aaaaabbbb'; z = 'aaaaabbbbaaaa' | p = z[k:n] | k = 0; n = 10; p = 'aaaaabbbba'; z = 'aaaaabbbbaaaa' |
r = ( 'In the third category he included those Brothers...he external forms and ceremonies, and prized the ' ); x = 'strict' | r += x + ' ' | r = 'In the third category he included those Brothers...he external forms and ceremonies, and prized the strict '; x = 'strict' |
i = 3; j = [1, 2, 1, 2, 1, 2, 1, 1]; o = [1, 2, 1, 2, 1, 2, 1, 2]; w = [1, 2, 1, 0, 0, 0, 0, 0] | w[i] = max(o[i], j[i]) | i = 3; j = [1, 2, 1, 2, 1, 2, 1, 1]; o = [1, 2, 1, 2, 1, 2, 1, 2]; w = [1, 2, 1, 2, 0, 0, 0, 0] |
i = 0; s = [1, 2, 3, 4, 5] | x = s[i] | i = 0; s = [1, 2, 3, 4, 5]; x = 1 |
d = [1, 6, 15]; i = 3; r = [1, 5, 10, 10, 5, 1] | d += [(r[i - 1] + r[i]) % 10 ** 9] | d = [1, 6, 15, 20]; i = 3; r = [1, 5, 10, 10, 5, 1] |
a = [2, 4, 6, 8, 3]; s = 3 | a[s + 1] = a[s] | a = [2, 4, 6, 8, 8]; s = 3 |
b = 20; i = 6; p = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200] | b = p[i] | b = 30; i = 6; p = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200] |
f = 'A'; h = 'A' | h = f | f = 'A'; h = 'A' |
n = ['3']; x = 2 | x = int(n.pop(0)) | n = []; x = 3 |
b = 3; n = [0, 1] | n.append(b - 1) | b = 3; n = [0, 1, 2] |
k = '['; n = ['{', '{'] | n.append(k) | k = '['; n = ['{', '{', '['] |
e = 2.25; s = 1.25 | e += s | e = 3.5; s = 1.25 |
i = 3; n = [-7330761, -6461594, -3916237, -3620601, -357920, -20, 30, 266854, 6246457, 7374819]; p = 295636 | p = n[i + 1] - n[i] | i = 3; n = [-7330761, -6461594, -3916237, -3620601, -357920, -20, 30, 266854, 6246457, 7374819]; p = 3262681 |
r = 1; t = ['3', '2'] | r = int(t[0]) | r = 3; t = ['3', '2'] |
k = ['2', '3', '1', '2', '3', '2', '3', '3']; r = ['6', '7']; t = '2' | t = min(k[int(r[0]):int(r[1]) + 1]) | k = ['2', '3', '1', '2', '3', '2', '3', '3']; r = ['6', '7']; t = '3' |
a = {'1': 4, '2': 4, '3': 4, '6': 4, '5': 4, '4': 4, '8': 1}; x = '4' | a[x] = a.get(x, 0) + 1 | a = {'1': 4, '2': 4, '3': 4, '6': 4, '5': 4, '4': 5, '8': 1}; x = '4' |
n = 1.2000000000000001e-12 | n = n / 10 | n = 1.2000000000000002e-13 |
l = {(32): []}; u = 32; z = '31415926535897932384626433832795' | l[u].append(z) | l = {32: ['31415926535897932384626433832795']}; u = 32; z = '31415926535897932384626433832795' |
k = 2; m = -0.0; n = 0.0; p = 4 | m *= (n - k) / (p - 1 - k) | k = 2; m = 0.0; n = 0.0; p = 4 |
a = {(1): [2, 3], (2): [1, 3], (3): [1]}; g = 3; p = 2 | a[g].append(p) | a = {1: [2, 3], 2: [1, 3], 3: [1, 2]}; g = 3; p = 2 |
f = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 47, 0, 48, 1, 51, 0, 52, 1, 55, 0, 56, 1, 59, 0]; i = 60 | f.append(f[-1] ^ i) | f = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 47, 0, 48, 1, 51, 0, 52, 1, 55, 0, 56, 1, 59, 0, 60]; i = 60 |
a = '['; g = ['{', '{'] | g.append(a) | a = '['; g = ['{', '{', '['] |
o = 'ok'; y = 102 | o = o + chr(y) | o = 'okf'; y = 102 |
r = [2]; x = 3 | r.append(x) | r = [2, 3]; x = 3 |
j = {(0): [(1, 24), (3, 20)], (1): [(0, 24)], (2): [(0, 3)], (3): [(0, 20)]}; r = 3; x = 2; y = 0 | j[y].append((x, r)) | j = {0: [(1, 24), (3, 20), (2, 3)], 1: [(0, 24)], 2: [(0, 3)], 3: [(0, 20)]}; r = 3; x = 2; y = 0 |
c = [1, 1, 1]; i = 1; j = 2; x = 3 | x += j - c[i] | c = [1, 1, 1]; i = 1; j = 2; x = 4 |
q = 30; s = 100; t = 20 | q = s - t | q = 80; s = 100; t = 20 |
v = 2 | v = v >> 1 | v = 1 |
z = 35 | z += 2 | z = 37 |
p = 3 | p -= 1 | p = 2 |
r = ( 'In the third category he included those Brothers...nies, and prized the strict performance of these ' ); x = 'forms' | r += x + ' ' | r = 'In the third category he included those Brothers...nies, and prized the strict performance of these forms '; x = 'forms' |
x = 3; y = 2 | x, y = y, x % y | x = 2; y = 1 |
b = {('cc', 0), ('cab', 0), ('cac ', 0), ('cb ', 0)}; n = [] | n = list(b) | b = {('cb ', 0), ('cac ', 0), ('cc', 0), ('cab', 0)}; n = [('cb ', 0), ('cac ', 0), ('cc', 0), ('cab', 0)] |
a = ['lmon', 'no answer', 'dcbb', 'abdc', 'abcd', 'fedcbabcd']; i = 2 | a[i] = 'no answer' | a = ['lmon', 'no answer', 'no answer', 'abdc', 'abcd', 'fedcbabcd']; i = 2 |
z = 2 | z -= 1 | z = 1 |
c = [2, 5, 3, 6]; i = 5; j = 3; t = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 1, 1, 1], [0, 0, 1, 1], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; x = 1 | x = t[i - c[j]][j] if i - c[j] >= 0 else 0 | c = [2, 5, 3, 6]; i = 5; j = 3; t = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 1, 1, 1], [0, 0, 1, 1], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; x = 0 |
u = [1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 2]; x = 3; y = 1 | u.append(abs(x - y)) | u = [1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 2, 2]; x = 3; y = 1 |
a = [4, 5]; d = 0 | d = len(a) | a = [4, 5]; d = 2 |
b = [0, 1]; i = 2; v = [0, 1, 2, 4, 6, 5, 3] | b.append(v[i]) | b = [0, 1, 2]; i = 2; v = [0, 1, 2, 4, 6, 5, 3] |
k = 100; t = 2; w = 4; y = 600 | y += (w - t) * k | k = 100; t = 2; w = 4; y = 800 |
b = {(1): {(2): 1}}; l = 2 | b[l] = {} | b = {1: {2: 1}, 2: {}}; l = 2 |
a = [[0, '-'], [6, '-'], [0, '-'], [6, 'gh']]; i = 3 | a[i][1] = '-' | a = [[0, '-'], [6, '-'], [0, '-'], [6, '-']]; i = 3 |
a = 4 | h = ~a | a = 4; h = -5 |
d = 2; h = {(1): [(2, 1)], (2): [(1, 1)], (3): [], (4): [], (5): []}; u = 2; v = 3 | h[u].append((v, d)) | d = 2; h = {1: [(2, 1)], 2: [(1, 1), (3, 2)], 3: [], 4: [], 5: []}; u = 2; v = 3 |
x = 1 | x += 1 | x = 2 |
o = '8'; x = 1001 | x = int(o) | o = '8'; x = 8 |
s = {3, 4, 5, 6}; v = 6 | s.discard(v) | s = {3, 4, 5}; v = 6 |
s = 2; t = ['0.18', '0.89', '109.85'] | p.append(list(map(float, t[0:s]))) | p = [[0.18, 0.89]]; s = 2; t = ['0.18', '0.89', '109.85'] |
b = 'cd'; c = 3; l = {'cd': 3} | c += l[b] - 1 | b = 'cd'; c = 5; l = {'cd': 3} |
b = ['c', 'd', 'e', 'f', 'g', 'h', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w']; i = 14; p = 's' | p = b[i - 1] | b = ['c', 'd', 'e', 'f', 'g', 'h', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w']; i = 14; p = 't' |
i = '1' | h[i] = 1 | h = {'1': 1}; i = '1' |
i = 67060; s = 371946 | s += i | i = 67060; s = 439006 |
e = [6, 5, 8, 4, 7, 10, 9]; i = 2 | e.pop(i) | e = [6, 5, 4, 7, 10, 9]; i = 2 |
i = 2; j = 11; p = [6, 5, 2] | j += p[i] * flower_num | i = 2; j = -179; p = [6, 5, 2]; z = -95 |
g = [145, 0, 7, 1]; w = 0 | g[w] += 1 | g = [146, 0, 7, 1]; w = 0 |
z = [1, 0, 0, 4] | z = [x for x in z if x != 0] | z = [1, 4] |
d = [1, 1, 1, 2, 3, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 'c' | d[ord(i) - 97] += 1 | d = [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]; i = 'c' |
i = 5; j = 0; r = '#t%'; z = [['T', 's', 'i'], ['h', '%', 'x'], ['i', ' ', '#'], ['s', 'M', ' '], [ '$', 'a', ' '], []] | z[i].append(r[j]) | i = 5; j = 0; r = '#t%'; z = [['T', 's', 'i'], ['h', '%', 'x'], ['i', ' ', '#'], ['s', 'M', ' '], ['$', 'a', ' '], ['#']] |
g = [2, 3, 4]; j = 10; r = 0 | g.append(r + j) | g = [2, 3, 4, 10]; j = 10; r = 0 |
e = [1, 11, 55, 165, 330, 462, 462, 330, 165, 55, 11, 1]; i = 4; u = [1, 12, 66, 220] | u += [(e[i - 1] + e[i]) % 10 ** 9] | e = [1, 11, 55, 165, 330, 462, 462, 330, 165, 55, 11, 1]; i = 4; u = [1, 12, 66, 220, 495] |
c = ['b', 'a', 'f', 'e']; i = 2; j = 1; v = 'a', 'e' | v = c[i], c[i + j] | c = ['b', 'a', 'f', 'e']; i = 2; j = 1; v = ('f', 'e') |
f = 3; w = 6 | f = max(f, w) | f = 6; w = 6 |
k = 6 | k += 1 | k = 7 |
j = 0; k = 0; l = 'abba' | a = list(l[j:k + 1]) | a = ['a']; j = 0; k = 0; l = 'abba' |
b = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; j = 13 | b[-j] = 0 | b = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; j = 13 |
n = 1.200000000000001e-75 | n = n / 10 | n = 1.2000000000000011e-76 |
r = [[True, True, False, False]]; w = [False, True, True, False] | r.append(w) | r = [[True, True, False, False], [False, True, True, False]]; w = [False, True, True, False] |
b = 1; i = '2' | b += int(i) | b = 3; i = '2' |
i = 16; y = [2, 3, 5, 2, 3, 4, 5, 6, 9, 10, 11, 12, 13] | y.append(i) | i = 16; y = [2, 3, 5, 2, 3, 4, 5, 6, 9, 10, 11, 12, 13, 16] |
n = {(1): [2], (2): []}; r = 2; y = 1 | n[r].append(y) | n = {1: [2], 2: [1]}; r = 2; y = 1 |
g = [129, 0, 7, 1]; w = 0 | g[w] += 1 | g = [130, 0, 7, 1]; w = 0 |
a = 'a'; b = 'n'; j = ['a', 'o'] | a, b = j | a = 'a'; b = 'o'; j = ['a', 'o'] |
a = 3 | a -= 1 | a = 2 |
c = 25, 49, 81; m = 1000; n = [99, 123, 138] | n.append(sum(c) % m) | c = (25, 49, 81); m = 1000; n = [99, 123, 138, 155] |
h = [1226800, 926891, 782725, 1023038, 1126293, 692565, 1129954, 745100, 1059346, 1168555, 1317458]; m = '528045' | h.append(int(m)) | h = [1226800, 926891, 782725, 1023038, 1126293, 692565, 1129954, 745100, 1059346, 1168555, 1317458, 528045]; m = '528045' |
a = 'f'; i = 2; q = ['d', 'h', 'c', 'k'] | a = q[i] | a = 'c'; i = 2; q = ['d', 'h', 'c', 'k'] |
i = 0; k = 2; l = [1, 1, 1, 2, 2] | c = l[k + i - 1] - l[i] | c = 0; i = 0; k = 2; l = [1, 1, 1, 2, 2] |
k = 'APPLE JUICE'; n = 10; s = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 10), ('CANDY', 5)]) | s[k] += n | k = 'APPLE JUICE'; n = 10; s = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 20), ('CANDY', 5)]) |
c = [1, 1, 2, 1]; j = 2 | c.append(j) | c = [1, 1, 2, 1, 2]; j = 2 |
g = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2], [0, 2, 1], [2, 0, 2], [2, 1, 0], [2, 1, 1], [2, 1, 2]]; y = [2, 2, 0] | g.append(y) | g = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2], [0, 2, 1], [2, 0, 2], [2, 1, 0], [2, 1, 1], [2, 1, 2], [2, 2, 0]]; y = [2, 2, 0] |
s = 'eeefe'; z = 4 | z = len(s) | s = 'eeefe'; z = 5 |
d = 1; r = 2 | j.add(d * r) | d = 1; j = {2}; r = 2 |
c = 'g'; i = 1 | c = chr(i + 96) | c = 'a'; i = 1 |
d = {(1): [1], (4): [2], (5): [3]}; x = 3 | d[x] = [] | d = {1: [1], 4: [2], 5: [3], 3: []}; x = 3 |
g = [97, 0, 6, 1]; w = 2 | g[w] += 1 | g = [97, 0, 7, 1]; w = 2 |
d = 1; i = 1; p = 1; x = [1, 2, 3, -1, -2] | p = d + x[i] | d = 1; i = 1; p = 3; x = [1, 2, 3, -1, -2] |
f = [4, 2] | f[1] += 2 | f = [4, 4] |
r = [[], [], [], []]; u = 1; v = 2 | r[u].append(v) | r = [[], [2], [], []]; u = 1; v = 2 |
i = [(5, 0), (8, 1)]; q = 6, 0 | q = i.pop() | i = [(5, 0)]; q = (8, 1) |
h = [1000000001, 1000000002, 1000000003, 1000000004, 1000000005]; i = 0 | y += h[i] | h = [1000000001, 1000000002, 1000000003, 1000000004, 1000000005]; i = 0; y = 1000000000 |
e = 75; i = 3; p = 75 | e = p + i | e = 78; i = 3; p = 75 |
c = [1, 3, 5, 7, 9]; i = 1; j = {(0): 1, (1): 2, (2): 1}; v = 3; w = 21 | w += j[i % v] * c[i] | c = [1, 3, 5, 7, 9]; i = 1; j = {0: 1, 1: 2, 2: 1}; v = 3; w = 27 |
c = {(1, 2), (2, 3)}; v = set() | v = c | c = {(1, 2), (2, 3)}; v = {(1, 2), (2, 3)} |
b = 3; x = {(9): False, (7): False, (8): False, (12): False, (5): False, (1): True, (2): True} | x[b] = True | b = 3; x = {9: False, 7: False, 8: False, 12: False, 5: False, 1: True, 2: True, 3: True} |
f = 29; q = 59 | q = f * 2 + 3 | f = 29; q = 61 |
c = '{'; k = ['{'] | k.append(c) | c = '{'; k = ['{', '{'] |
y = 2 | y += 1 | y = 3 |
h = 3; s = 2 | h = min(h, s) | h = 2; s = 2 |
k = 2 | k -= 1 | k = 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.