start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
d = 'o'; e = {'u': 2, 'a': 1, 'i': 1, 'o': 1, 'e': 1}; j = 3; r = None; s = None; w = None | s, r, w = d, e.copy(), j | d = 'o'; e = {'u': 2, 'a': 1, 'i': 1, 'o': 1, 'e': 1}; j = 3; r = {'u': 2, 'a': 1, 'i': 1, 'o': 1, 'e': 1}; s = 'o'; w = 3 |
a = '6'; i = 1; o = {'0-4': '460'}; v = '590' | o[str(i) + '-' + a] = v | a = '6'; i = 1; o = {'0-4': '460', '1-6': '590'}; v = '590' |
a = [[1, 1, 1, 2], [1, 9, 1, 2], 2]; i = 2 | a[i] = [] | a = [[1, 1, 1, 2], [1, 9, 1, 2], []]; i = 2 |
s = [41.0, 37.2, 37.21, 39.0] | s.sort() | s = [37.2, 37.21, 39.0, 41.0] |
d = [2, 2, 2, 2, 3, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0] | d.remove(0) | d = [2, 2, 2, 2, 3, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0] |
i = ( '^M{0,3}(CM){0,1}(D|(CD)){0,1}C{0,3}(XC){0,1}(L|(XL)){0,1}(IX){0,1}X{0,3}(IV){0,1}V{0,1}I{0,3}$' ); p = ( '^M{0,3}(CM){0,1}(D|(CD)){0,1}C{0,3}(XC){0,1}(L|(XL)){0,1}(IX){0,1}X{0,3}(IV){0,1}V{0,1}I{0,3}$' ) | i = p | i = '^M{0,3}(CM){0,1}(D|(CD)){0,1}C{0,3}(XC){0,1}(L|(XL)){0,1}(IX){0,1}X{0,3}(IV){0,1}V{0,1}I{0,3}$'; p = '^M{0,3}(CM){0,1}(D|(CD)){0,1}C{0,3}(XC){0,1}(L|(XL)){0,1}(IX){0,1}X{0,3}(IV){0,1}V{0,1}I{0,3}$' |
l = [False, False] | l.append(False) | l = [False, False, False] |
i = 48 | i += 1 | i = 49 |
c = 27; f = 9 | f = abs(1 - AL) + c | c = 27; f = 67; h = 41 |
d = 14; o = 14; w = 16; y = 8 | m = (o + d + y - w) / 2.0 | d = 14; m = 10.0; o = 14; w = 16; y = 8 |
h = [1, 5, 10, 12, 111, 200, 1000]; i = 1; n = 1 | n += h[i] | h = [1, 5, 10, 12, 111, 200, 1000]; i = 1; n = 6 |
g = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2], [0, 2, 1], [1, 1, 1], [1, 1, 2], [1, 2, 0], [1, 2, 1]]; t = [1, 2, 2] | g.append(t) | g = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2], [0, 2, 1], [1, 1, 1], [1, 1, 2], [1, 2, 0], [1, 2, 1], [1, 2, 2]]; t = [1, 2, 2] |
j = 2; u = [98.0, 95.0, 97.0]; v = [489.0, 538.0, 496.0] | v[j] += u[j] | j = 2; u = [98.0, 95.0, 97.0]; v = [489.0, 538.0, 593.0] |
g = ['a', 'b']; z = 97, 99 | g = list(map(chr, z)) | g = ['a', 'c']; z = (97, 99) |
x = 15824 | x = x + 1 | x = 15825 |
n = 4 | u += n / 2 | n = 4; u = -24.0 |
c = [[1, 1, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0], [1, 1, 1, 0, 0, 0], [0, 0, 2, 4, 4, 0], [0, 0, 0, 2, 0, 0], [0, 0, 1, 2, 4, 0]]; i = 3; j = 1; r = 3 | r = c[i][j] + c[i][j + 1] + c[i][j + 2] | c = [[1, 1, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0], [1, 1, 1, 0, 0, 0], [0, 0, 2, 4, 4, 0], [0, 0, 0, 2, 0, 0], [0, 0, 1, 2, 4, 0]]; i = 3; j = 1; r = 6 |
h = 96; p = 2; q = 3; x = 100 | h = x - q ** p | h = 91; p = 2; q = 3; x = 100 |
i = 0; z = 0 | h = min(z, i) | h = 0; i = 0; z = 0 |
l = 0; r = 12 | a = l + (r - l) / 2 | a = 6.0; l = 0; r = 12 |
g = {'a': 0, 'b': 0, 'c': 0}; i = 'd' | g[i] = 0 | g = {'a': 0, 'b': 0, 'c': 0, 'd': 0}; i = 'd' |
a = [84, 86, 95]; d = 97637.0 | d = d + a[2] * a[0] | a = [84, 86, 95]; d = 105617.0 |
r = 'abcd'; x = ['a', 'b', 'c'] | x = list(r) | r = 'abcd'; x = ['a', 'b', 'c', 'd'] |
j = 2.0; l = {1.0} | l.add(j) | j = 2.0; l = {1.0, 2.0} |
e = 'In the third category he included those'; t = ' ' | e += t | e = 'In the third category he included those '; t = ' ' |
a = 5; b = {(1): [3, 2], (3): [1, 4, 2], (4): [3, 2], (2): [4, 1, 3], (5): [], (6): [] }; e = 6 | b[a].append(e) | a = 5; b = {1: [3, 2], 3: [1, 4, 2], 4: [3, 2], 2: [4, 1, 3], 5: [6], 6: []}; e = 6 |
a = [0, 4, 3, 5, 1, 2]; x = 3; z = 5 | z = a.index(x) | a = [0, 4, 3, 5, 1, 2]; x = 3; z = 2 |
n = 1001; x = 7 | n /= x | n = 143.0; x = 7 |
d = 0.09375; n = 0.046875; p = 2 | d = n % p | d = 0.046875; n = 0.046875; p = 2 |
c = [6, 5, 2]; i = 1; k = 3; n = 6; v = 1 | n += c[i] * (v // k + 1) | c = [6, 5, 2]; i = 1; k = 3; n = 11; v = 1 |
i = 1; j = 2; p = 1, 1 | p = i, j | i = 1; j = 2; p = (1, 2) |
a = [4]; z = 0 | a = a[:z] | a = []; z = 0 |
c = 2; e = 1, 2; r = 0, 1 | c = e[1] + r[1] | c = 3; e = (1, 2); r = (0, 1) |
e = 2545357; i = 3; o = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819] | e = abs(o[i] - o[i - 1]) | e = 295636; i = 3; o = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819] |
s = ['4', '5'] | l = int(s[0]) | l = 4; s = ['4', '5'] |
a = [0, 4, 4, 3, 2, 0, 2, 2]; i = 3; v = [[4, 3], [2, 0]] | v.insert(i, [a[2 * i], a[2 * i + 1]]) | a = [0, 4, 4, 3, 2, 0, 2, 2]; i = 3; v = [[4, 3], [2, 0], [2, 2]] |
f = 1; j = [0, 1, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None]; n = 0 | j[n] = f | f = 1; j = [1, 1, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None]; n = 0 |
r = '11111111111111111111111111' | r += '1' | r = '111111111111111111111111111' |
i = 0; j = 13; n = '13' | j += int(n[i]) | i = 0; j = 14; n = '13' |
i = [1, 2, 5, 3, 4]; m = 1; t = 2 | m = i[t] | i = [1, 2, 5, 3, 4]; m = 5; t = 2 |
x = 1 | b, p = [x], [] | b = [1]; p = []; x = 1 |
a = [1, 1, 1, 3, 3]; j = 3; s = [1] | s += [a[j]] | a = [1, 1, 1, 3, 3]; j = 3; s = [1, 3] |
s = 2 | s -= 1 | s = 1 |
a = [2.0, 2.0, 2.0, 0.5, 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] | w = sum(a) | a = [2.0, 2.0, 2.0, 0.5, 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]; w = 6.5 |
h = ['{', '{']; i = '[' | h.append(i) | h = ['{', '{', '[']; i = '[' |
i = 4; q = 3 | q = i | i = 4; q = 4 |
d = 1.2000000000000006e-46 | d = d / 10 | d = 1.2000000000000007e-47 |
d = 3; g = 4 | g = d | d = 3; g = 3 |
x = 15828 | x = x + 1 | x = 15829 |
k = 11; x = [None, None, 1, None, 1, 1, 1, 1, None, 1, None, None, 1] | x[k] = 1 | k = 11; x = [None, None, 1, None, 1, 1, 1, 1, None, 1, None, 1, 1] |
f = 1; p = 'abcabcddd'; r = 2; s = 'abcabcddd' | p = s[f:r] | f = 1; p = 'b'; r = 2; s = 'abcabcddd' |
p = '11111111111111111' | p += '1' | p = '111111111111111111' |
s = ['i', 'l']; z = 'ai' | z = ''.join(s) | s = ['i', 'l']; z = 'il' |
b = '0'; e = ['1', '1', '1', '1', '1', '1', '1', '1'] | e.append('0' if b == '1' else '1') | b = '0'; e = ['1', '1', '1', '1', '1', '1', '1', '1', '1'] |
i = 3 | e = 2 ** i | e = 8; i = 3 |
h = ['i', 'f', 'a', 'i', 'l', 'u', 'h', 'k', 'q', 'q']; i = 1; j = ['a', 'f']; l = 3 | j = h[i:i + l] | h = ['i', 'f', 'a', 'i', 'l', 'u', 'h', 'k', 'q', 'q']; i = 1; j = ['f', 'a', 'i']; l = 3 |
i = {'a': 2}; j = 'b' | i[j] = 1 | i = {'a': 2, 'b': 1}; j = 'b' |
n = [4, 5, 3, 7, 2] | v = n[0] | n = [4, 5, 3, 7, 2]; v = 4 |
a = 'bb'; g = 1; s = 'abba'; v = 4 | a = s[g:v] | a = 'bba'; g = 1; s = 'abba'; v = 4 |
i = 1; k = [200, 10]; s = 200 | s = s + k[i] | i = 1; k = [200, 10]; s = 210 |
r = [(3, 'b'), (2, 'a'), (1, 'f'), (4, 'e')] | r.sort() | r = [(1, 'f'), (2, 'a'), (3, 'b'), (4, 'e')] |
m = 4; r = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [1, 0, 0, 0]] | m = len(r[0]) | m = 4; r = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [1, 0, 0, 0]] |
i = 1e-18 | i = i / 10 | i = 1.0000000000000001e-19 |
c = '9'; q = 48 | j += int(ord(c) - q) | c = '9'; j = 60; q = 48 |
h = [100, 104, 107, 99]; i = 2; p = 'dh' | p = p + chr(h[i]) | h = [100, 104, 107, 99]; i = 2; p = 'dhk' |
r = 8 | r = r + 1 | r = 9 |
a = 0; b = 4; i = {(0): {1, 4}, (1): {0}, (2): {3}, (3): {2}, (4): set()} | i[b].add(a) | a = 0; b = 4; i = {0: {1, 4}, 1: {0}, 2: {3}, 3: {2}, 4: {0}} |
i = 1; j = 2; s = [2, 0, 0] | s[i] = j + 1 | i = 1; j = 2; s = [2, 3, 0] |
e = 1 | e -= 1 | e = 0 |
l = [95, 95, 96]; z = [76, 76, 95] | z.append(l[2]) | l = [95, 95, 96]; z = [76, 76, 95, 96] |
a = 337102; f = 1000007; n = 40921 | a = a * n % f | a = 454384; f = 1000007; n = 40921 |
u = {(0): 0, (1): 24, (2): 3, (3): 20}; v = 2; w = 15 | u[v] = w | u = {0: 0, 1: 24, 2: 15, 3: 20}; v = 2; w = 15 |
h = 5; r = 9 | h += int(r / 2) | h = 9; r = 9 |
i = 3; q = 2; t = {(-1): 1, (3): 2, (7): 1, (1): 1, (5): 1, (2): 1, (6): 1, (0): 1, (4): 1} | q += t[i] | i = 3; q = 4; t = {-1: 1, 3: 2, 7: 1, 1: 1, 5: 1, 2: 1, 6: 1, 0: 1, 4: 1} |
e = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 1, 1, 1], [None, None, None, None], [ None, None, None, None], [None, None, None, None]]; h = [2, 3, 5, 6]; i = 5; j = 1; y = 0 | y = e[i - h[j]][j] if i - h[j] >= 0 else 0 | e = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 1, 1, 1], [None, None, None, None], [None, None, None, None], [None, None, None, None]]; h = [2, 3, 5, 6]; i = 5; j = 1; y = 1 |
a = [1, 2, 3, 4, 5]; i = 3; k = [5, 1, 2, 3] | k.append(a[i]) | a = [1, 2, 3, 4, 5]; i = 3; k = [5, 1, 2, 3, 4] |
q = 'g'; s = {'g': 1.0} | q = min(s.keys()) | q = 'g'; s = {'g': 1.0} |
b = 1 | b = b + 1 | b = 2 |
d = [4]; m = 1; n = 2; u = [[1, 3, 4], [2, 2, 3], [1, 2, 4]] | d.append(u[m][n]) | d = [4, 3]; m = 1; n = 2; u = [[1, 3, 4], [2, 2, 3], [1, 2, 4]] |
m = 2 | r = [[] for ll in range(m)] | m = 2; r = [[], []] |
o = 3; w = [[2, 3], [-1, 4], [5, -1], [6, -1], [7, 8], [-1, 9], [-1, -1], [10, 11], [-1, -1], [-1, -1], [-1, -1]] | w[o - 1][0], w[o - 1][1] = w[o - 1][1], w[o - 1][0] | o = 3; w = [[2, 3], [-1, 4], [-1, 5], [6, -1], [7, 8], [-1, 9], [-1, -1], [10, 11], [-1, -1], [-1, -1], [-1, -1]] |
i = 7; j = 6; y = 3 | j += i % y | i = 7; j = 7; y = 3 |
d = 2; i = -1 | d = max(d + i, i) | d = 1; i = -1 |
l = [0, 1, 5] | b = l[1] | b = 1; l = [0, 1, 5] |
b = [1]; g = [2, 3, 0] | b.append(g[0]) | b = [1, 2]; g = [2, 3, 0] |
b = 3 | b = b + 1 | b = 4 |
h = [1, 3, 5, 7]; i = '9' | h.append(int(i)) | h = [1, 3, 5, 7, 9]; i = '9' |
x = 15824 | w = bin(x) | w = '0b11110111010000'; x = 15824 |
m = ['h', 'A', 'C', 'K', 'E', 'R', 'r', 'A', 'N', 'K', '.', 'C', 'O']; s = 'm' | m.append(s.upper()) | m = ['h', 'A', 'C', 'K', 'E', 'R', 'r', 'A', 'N', 'K', '.', 'C', 'O', 'M']; s = 'm' |
a = [0, 0]; d = 1 | f = d - (a[1] - a[0]) | a = [0, 0]; d = 1; f = 1 |
e = [['O', 'X', '.'], ['O', 'X', '.'], ['.', '.', '.']]; g = 2; w = 0 | e[g][w] = 'O' | e = [['O', 'X', '.'], ['O', 'X', '.'], ['O', '.', '.']]; g = 2; w = 0 |
d = 1; e = [4, 3]; t = 3 | t, d = e[0], e[1] | d = 3; e = [4, 3]; t = 4 |
l = 3 | t += l | l = 3; t = -61 |
c = 76; m = 48; p = 67; s = '95 92 95' | m, p, c = [int(k) for k in s.split()] | c = 95; m = 95; p = 92; s = '95 92 95' |
k = "['a', 'f', 'i', 'i']"; q = ['a', 'f', 'i', 'i', 'l'] | k = str(q) | k = "['a', 'f', 'i', 'i', 'l']"; q = ['a', 'f', 'i', 'i', 'l'] |
d = [[0, -1], [-1, 1]]; i = 1; j = 1; u = [['.', 'x'], ['x', '.']] | d[i][j] = -1 if u[i][j] == 'x' else d[i][j - 1] + 1 | d = [[0, -1], [-1, 0]]; i = 1; j = 1; u = [['.', 'x'], ['x', '.']] |
c = 2; d = [2, 3, 0, 0, 0]; i = 4; t = [2, 7, 4, 3, 8] | d[c] = t[i] | c = 2; d = [2, 3, 8, 0, 0]; i = 4; t = [2, 7, 4, 3, 8] |
x = -36.7 | x -= 1 | x = -37.7 |
e = '1000000000000000000000000000000' | e += '0' | e = '10000000000000000000000000000000' |
h = '['; n = ['{'] | n.append(h) | h = '['; n = ['{', '['] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.