start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
a = {(95): 13}; u = ['97', '25'] | a[int(u[0])] = int(u[1]) | a = {95: 13, 97: 25}; u = ['97', '25'] |
d = ['1', '2', '3', '21', '7', '12', '14', '21']; e = []; x = 0 | e.append(int(d[x])) | d = ['1', '2', '3', '21', '7', '12', '14', '21']; e = [1]; x = 0 |
d = {(1): 0, (4): 1}; i = 2; y = 5 | d[y] = i | d = {1: 0, 4: 1, 5: 2}; i = 2; y = 5 |
n = 5 | n /= 2 | n = 2.5 |
h = 97 | q.append(h) | h = 97; q = [97] |
a = [[112, 42, 83, 119], [56, 125, 56, 49], [15, 78, 101, 43], [62, 98, 114, 108]]; i = 0; j = 1; k = 112 | k = a[i][j] | a = [[112, 42, 83, 119], [56, 125, 56, 49], [15, 78, 101, 43], [62, 98, 114, 108]]; i = 0; j = 1; k = 42 |
j = 1; p = [0] | p.append(j) | j = 1; p = [0, 1] |
x = [1, 2, 3, 4, 10, 20, 30, 40]; y = 100 | x.append(y) | x = [1, 2, 3, 4, 10, 20, 30, 40, 100]; y = 100 |
a = 9; i = 2; o = [10, 1, 10, 1, 10] | a = abs(1 - o[i - 1]) | a = 0; i = 2; o = [10, 1, 10, 1, 10] |
a = ['5\n', 'AAAA\n', 'BBBBB\n', 'ABABABAB\n']; r = 'BABABA\n' | a.append(r) | a = ['5\n', 'AAAA\n', 'BBBBB\n', 'ABABABAB\n', 'BABABA\n']; r = 'BABABA\n' |
p = ['07', '05', '45PM'] | e = p[2][0:2] | e = '45'; p = ['07', '05', '45PM'] |
c = 5; r = 3; s = {(0): [(1, 2), (1, 5), (2, 1), (2, 5), (2, 6), (3, 2)], (1): [(2, 2), ( 2, 5)]}; t = 1 | s.setdefault(t, []).append((r, c)) | c = 5; r = 3; s = {0: [(1, 2), (1, 5), (2, 1), (2, 5), (2, 6), (3, 2)], 1: [(2, 2), (2, 5), (3, 5)]}; t = 1 |
f = [26]; i = 20 | f.append(i) | f = [26, 20]; i = 20 |
j = '1 3 5 7 9' | j = j.split() | j = ['1', '3', '5', '7', '9'] |
i = 'gh'; m = ['ab', 'cd', 'ef', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '']; v = 3 | m[v] = i | i = 'gh'; m = ['ab', 'cd', 'ef', 'gh', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '']; v = 3 |
l = 14; m = 2; q = 2; s = 0 | l -= (q - s) * m | l = 10; m = 2; q = 2; s = 0 |
a = [2, 3, 4, 5]; v = 1 | a.append(v) | a = [2, 3, 4, 5, 1]; v = 1 |
d = '1'; s = '1'; t = 1; w = 2 | d = s[w:w + t] | d = ''; s = '1'; t = 1; w = 2 |
x = '1' | x += '0' | x = '10' |
d = '1'; i = 2; k = '1'; u = 1, 2, 2 | u = i, int(d), int(k) | d = '1'; i = 2; k = '1'; u = (2, 1, 1) |
k = 2; s = 1 | s = s + k | k = 2; s = 3 |
n = 2 | h = f = [[] for _ in range(n)] | f = [[], []]; h = [[], []]; n = 2 |
p = ['f', 'e', 'd', 'c', 'b', 'a', 'b', 'd', 'c']; y = 'abdc' | y = ''.join(p) | p = ['f', 'e', 'd', 'c', 'b', 'a', 'b', 'd', 'c']; y = 'fedcbabdc' |
j = '1111111111111110000111011011' | j = j + '1' | j = '11111111111111100001110110111' |
j = {2}; y = {2, 3} | j.difference_update(y) | j = set(); y = {2, 3} |
t = 6 | a = t | a = 6; t = 6 |
k = 4; m = [100, 100, 100] | m = [0] * k | k = 4; m = [0, 0, 0, 0] |
i = 2; j = 4 | j = i | i = 2; j = 2 |
j = [2, 1, 0]; l = [0, 1, 2] | l = j | j = [2, 1, 0]; l = [2, 1, 0] |
d = 4; t = 2 | t = d - 1 | d = 4; t = 3 |
q = 1; x = ['2', '3', '4'] | q = int(x[1]) | q = 3; x = ['2', '3', '4'] |
w = '11111111111111111111111' | w += '1' | w = '111111111111111111111111' |
c = 'b' | p.append(c) | c = 'b'; p = ['b'] |
e = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; i = 2; t = 2 | t = e[i] | e = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; i = 2; t = 3 |
c = 5; s = 6 | j = (min(c, s) - 1) // 2 | c = 5; j = 2; s = 6 |
a = '2' | g = g + int(a) | a = '2'; g = 37 |
m = 93; p = 83; v = [5256, 3216, 8740, 9025, 1947, 2726, 9310, 8554, 7980] | v.append(m * p) | m = 93; p = 83; v = [5256, 3216, 8740, 9025, 1947, 2726, 9310, 8554, 7980, 7719] |
c = [1, 3, 5]; k = '7' | c.append(int(k)) | c = [1, 3, 5, 7]; k = '7' |
n = 4; y = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]] | y.append([0] * n) | n = 4; y = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]] |
d = [0]; i = 3; j = 1; x = ['.....', '.x.x.', '.....', '.....'] | d.append(-1 if x[i][j] == 'x' else d[j - 1] + 1) | d = [0, 1]; i = 3; j = 1; x = ['.....', '.x.x.', '.....', '.....'] |
i = 2 | i >>= 1 | i = 1 |
a = 4; f = {(1): 1, (2): 2, (3): 2}; m = 2 | f[a] = f[m] + 1 | a = 4; f = {1: 1, 2: 2, 3: 2, 4: 3}; m = 2 |
h = 'hkq'; i = 2; j = 7; s = 'ifailuhkqq' | h = ''.join(sorted(s[j:j + i + 1])) | h = 'kqq'; i = 2; j = 7; s = 'ifailuhkqq' |
n = 3 | q = n | n = 3; q = 3 |
i = 0; j = 3; o = ['a', 'b']; s = ['a', 'b', 'b', 'a'] | o = s[i:j] | i = 0; j = 3; o = ['a', 'b', 'b']; s = ['a', 'b', 'b', 'a'] |
c = 3 | c += 1 | c = 4 |
r = 7; x = [1, 2, 3, 4, 5] | r = r - len(x) | r = 2; x = [1, 2, 3, 4, 5] |
k = ['2', 'to']; w = 'is' | w = k[1] | k = ['2', 'to']; w = 'to' |
b = 5.0; o = 5; x = 5.0 | b = x / o | b = 1.0; o = 5; x = 5.0 |
t = 12 | p = [None] * (t + 1) | p = [None, None, None, None, None, None, None, None, None, None, None, None, None]; t = 12 |
c = ['10101', '11100']; i = '11010' | c.append(i) | c = ['10101', '11100', '11010']; i = '11010' |
b = 'cdcd'; j = 1; k = 0 | y = b[k:k + j] | b = 'cdcd'; j = 1; k = 0; y = 'c' |
a = [5, 2, 1]; v = 8 | a.append(v) | a = [5, 2, 1, 8]; v = 8 |
a = [1, 1, 1, 2, 2, 2, 10]; i = 4 | a.remove(a[i]) | a = [1, 1, 1, 2, 2, 10]; i = 4 |
l = 4, 1; r = {(1, 3), (0, 2), (2, 1), (2, 5), (0, 3), (1, 2), (3, 3), (1, 5), (2, 2), (0, 4), (1, 1), (3, 2), ...} | r.add(l) | l = (4, 1); r = {(1, 2), (3, 2), (1, 3), (3, 3), (2, 1), (1, 5), (1, 1), (0, 4), (2, 2), (2, 5), Ellipsis, (4, 1), (0, 2), (0, 3)} |
f = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]; i = 0 | j = [f[i], f[i + 1]] | f = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]; i = 0; j = [-7330761, -6461594] |
v = 7 | v += 1 | v = 8 |
i = 4; j = 6; p = 'ifailuhkqq'; s = 'ifail' | s = p[i:i + j] | i = 4; j = 6; p = 'ifailuhkqq'; s = 'luhkqq' |
c = ')'; i = 'K, A)' | i = i.replace(c, '') | c = ')'; i = 'K, A' |
i = 0; o = [[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, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]] | o[i][i] = 1 | i = 0; o = [[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, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]] |
m = 5; y = 1 | m += y | m = 6; y = 1 |
g = '010203'; i = 3; s = '0203' | s = g[i:] | g = '010203'; i = 3; s = '203' |
i = 1; n = 7; t = {(0): [False, False, False, False, False, False]} | t[i] = [False] * n | i = 1; n = 7; t = {0: [False, False, False, False, False, False], 1: [False, False, False, False, False, False, False]} |
g = 8; x = 8; y = {(2): [0], (5): [2, 0], (3): [5, 2], (7): [5, 2], (9): [8], (8): [2]} | g = y[x][0] | g = 2; x = 8; y = {2: [0], 5: [2, 0], 3: [5, 2], 7: [5, 2], 9: [8], 8: [2]} |
t = [1, 2, 1, 2, 1] | t.sort() | t = [1, 1, 1, 2, 2] |
i = 'b'; v = {'a': 3} | v[i] = 1 | i = 'b'; v = {'a': 3, 'b': 1} |
e = 6; j = 6; m = 5 | e = m + j | e = 11; j = 6; m = 5 |
t = 2 | t = t - 1 | t = 1 |
i = 1; n = ['e', 'f', 'b', 'a']; y = 'e' | y = n[i] | i = 1; n = ['e', 'f', 'b', 'a']; y = 'f' |
s = 'cd'; w = [(0, '-')]; x = 6 | w.append((x, s)) | s = 'cd'; w = [(0, '-'), (6, 'cd')]; x = 6 |
a = 2; b = 87960930222080; p = 87960930222152 | p += a ^ b | a = 2; b = 87960930222080; p = 175921860444234 |
r = {}; x = [['+', '-', '+', '+', '+', '+'], ['+', '-', '+', '+', '+', '+'], ['+', '-', '+', '+', '+', '+'], ['+', '+', '-', '-', '+', '+'], ['+', '+', '+', '+', '+', '+'], ['+', '+', '+', '+', '+', '+']]; y = [] | r[id(x)] = y | r = {139760243663088: []}; x = [['+', '-', '+', '+', '+', '+'], ['+', '-', '+', '+', '+', '+'], ['+', '-', '+', '+', '+', '+'], ['+', '+', '-', '-', '+', '+'], ['+', '+', '+', '+', '+', '+'], ['+', '+', '+', '+', '+', '+']]; y = [] |
j = 172 | j += i | i = -27; j = 145 |
i = '000000000000000000000000000' | i += '0' | i = '0000000000000000000000000000' |
x = 99; y = 10 | y = x | x = 99; y = 99 |
a = 8; e = [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0] | e[a] += 1 | a = 8; e = [0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0] |
d = {'bcde': 0, 'bcdef': 1, 'abcdefg': 1}; i = 'bcde' | d[i] += 1 | d = {'bcde': 1, 'bcdef': 1, 'abcdefg': 1}; i = 'bcde' |
a = -7330761; b = -6461594 | x = b - a | a = -7330761; b = -6461594; x = 869167 |
i = 1; s = '99910001001' | n = int(s[:i]) | i = 1; n = 9; s = '99910001001' |
a = 2 | a += 1 | a = 3 |
a = 2; y = 4 | y = a | a = 2; y = 2 |
a = [0.32, 0.64, 0.76, 0.8, 0.8700000000000001, 1.0]; x = 5 | x = len(a) - 1 | a = [0.32, 0.64, 0.76, 0.8, 0.8700000000000001, 1.0]; x = 5 |
i = 197; j = 2; l = [1, 3, 1, 2]; t = 2 | i += t - l[j] | i = 198; j = 2; l = [1, 3, 1, 2]; t = 2 |
a = 2251799813685248; i = 13; o = 64 | a = 1 << o - i - 1 | a = 1125899906842624; i = 13; o = 64 |
s = 'be'; v = [['-', '-', '-', '-', '-', 'to'], [], [], ['be'], ['-', 'that'], [], [ '-', '-', '-', '-'], [], [], [], [], [], []]; x = 1 | v[x].append(s) | s = 'be'; v = [['-', '-', '-', '-', '-', 'to'], ['be'], [], ['be'], ['-', 'that'], [], ['-', '-', '-', '-'], [], [], [], [], [], []]; x = 1 |
f = 6; i = 3; n = 2; x = 6 | f = x - i ** n | f = -3; i = 3; n = 2; x = 6 |
a = 9; l = [(2, 5)]; w = 1 | w, a = l.pop() | a = 5; l = []; w = 2 |
i = 0; j = 0; y = [(1, 0), (0, 1)] | y.append((i + 1, j + 1)) | i = 0; j = 0; y = [(1, 0), (0, 1), (1, 1)] |
c = deque([4]); k = 2 | c.append(k) | c = deque([4, 2]); k = 2 |
g = 5 | g -= 1 | g = 4 |
a = [4, 2, 3, 5, 1]; d = {(4): 0}; i = 1 | d[a[i]] = i | a = [4, 2, 3, 5, 1]; d = {4: 0, 2: 1}; i = 1 |
b = '0b1101'; n = 14 | b = bin(n) | b = '0b1110'; n = 14 |
i = 'coconuts'; m = {'ive': 1, 'got': 1, 'a': 1, 'lovely': 1, 'bunch': 1, 'of': 1} | m[i] = 1 | i = 'coconuts'; m = {'ive': 1, 'got': 1, 'a': 1, 'lovely': 1, 'bunch': 1, 'of': 1, 'coconuts': 1} |
d = 'wedowhatwemustbecausewecan'; j = 16; w = 'dowhatwemustbe' | w += d[j] | d = 'wedowhatwemustbecausewecan'; j = 16; w = 'dowhatwemustbec' |
b = 11684418719923094299467996918696686 | b >>= 1 | b = 5842209359961547149733998459348343 |
h = 1; x = 2; y = [1, 1, 4, 1, 1] | h = h + y[x - 1] | h = 2; x = 2; y = [1, 1, 4, 1, 1] |
f = 2; j = 3 | f = j | f = 3; j = 3 |
t = ['2', '3'] | t[0] = int(t[0]) | t = [2, '3'] |
l = 3; t = {3, 4, 5} | t.remove(l) | l = 3; t = {4, 5} |
i = 4; l = 4 | l = i + 1 | i = 4; l = 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.