start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
j = 0; r = ['Harsh', '25', '26.5', '28\n'] | c = r[j] | c = 'Harsh'; j = 0; r = ['Harsh', '25', '26.5', '28\n'] |
i = 3; l = 34; s = [1, 5, 10, 12, 111, 200, 1000] | l -= s[i] | i = 3; l = 22; s = [1, 5, 10, 12, 111, 200, 1000] |
a = 0, 7; k = 1; t = 0, 5; v = 2 | a = t[0] + v, t[1] + k | a = (2, 6); k = 1; t = (0, 5); v = 2 |
a = 987; d = {1, 2, 3, 34, 5, 610, 8, 233, 377, 13, 144, 21, 55, 89} | d.add(a) | a = 987; d = {89, 1, 2, 3, 34, 5, 610, 8, 233, 13, 144, 21, 55, 377, 987} |
i = 6 | i = i + 1 | i = 7 |
a = {'a': 1, 'b': 1}; o = 'c' | a[o] = 1 | a = {'a': 1, 'b': 1, 'c': 1}; o = 'c' |
b = 21; j = 1; q = 4; s = 5 | b = s + j * q | b = 9; j = 1; q = 4; s = 5 |
n = ['aardvark', 'ab']; p = 'atcgatcga' | p = n[0] | n = ['aardvark', 'ab']; p = 'aardvark' |
h = 16; t = 12 | h += t | h = 28; t = 12 |
c = 48; w = [1, 1, 4, 9, 16, 25, 36, 49, 64, 81, 1444, 1521, 1600, 1681, 1764, 1849, 1936, 2025, 2116, 2209] | w += [c ** 2] | c = 48; w = [1, 1, 4, 9, 16, 25, 36, 49, 64, 81, 1444, 1521, 1600, 1681, 1764, 1849, 1936, 2025, 2116, 2209, 2304] |
n = '0b10' | n = list(n[2:]) | n = ['1', '0'] |
i = 12 | i += 1 | i = 13 |
a = 20; s = [26] | s.append(a) | a = 20; s = [26, 20] |
i = 1; u = [1, '2', '5', '3'] | u[i] = int(u[i]) | i = 1; u = [1, 2, '5', '3'] |
g = 3 | g += 1 | g = 4 |
o = {(1, 1)}; t = 2, 3 | t = o.pop() | o = set(); t = (1, 1) |
y = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | y.append(0) | y = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
x = 2 | x *= 2 | x = 4 |
b = 4; i = 4; l = ['have']; z = 'haveaniceday' | l.append(z[i:i + b]) | b = 4; i = 4; l = ['have', 'anic']; z = 'haveaniceday' |
c = 2; h = [[0, 2, 1], [1, 1, 1], [2, 0, 0]]; l = 3; t = 0 | l += h[t][c] | c = 2; h = [[0, 2, 1], [1, 1, 1], [2, 0, 0]]; l = 4; t = 0 |
a = -357920; c = -3620601; y = 295636 | y = a - c | a = -357920; c = -3620601; y = 3262681 |
a = 12 | s = a | a = 12; s = 12 |
q = [20] | q = q[:-1] | q = [] |
i = 3; y = ['1', '2', '3', '4', '10', '11']; z = 6 | z += int(y[i]) | i = 3; y = ['1', '2', '3', '4', '10', '11']; z = 10 |
e = 1 | e += 1 | e = 2 |
w = ['o'] | x = min(w) | w = ['o']; x = 'o' |
b = [0, 1, 2, 3, 2, 2, 1, 0] | b.sort() | b = [0, 0, 1, 1, 2, 2, 2, 3] |
t = {'1': 2, '2': 2, '3': 3, '6': 3, '5': 3, '4': 2}; x = '2' | t[x] = t.get(x, 0) + 1 | t = {'1': 2, '2': 3, '3': 3, '6': 3, '5': 3, '4': 2}; x = '2' |
r = ( 'In the third category he included those Brothers...t troubling about their purport or significance. ' ); x = 'Such' | r += x + ' ' | r = 'In the third category he included those Brothers...t troubling about their purport or significance. Such '; x = 'Such' |
l = 31 | l += 1 | l = 32 |
a = 6; b = 'gfedcbagfedcba'; v = {'g': 1.0, 'f': 1.0, 'e': 1.0, 'd': 1.0, 'c': 1.0, 'b': 1.0, 'a': 1.0} | v[b[a]] -= 1 | a = 6; b = 'gfedcbagfedcba'; v = {'g': 1.0, 'f': 1.0, 'e': 1.0, 'd': 1.0, 'c': 1.0, 'b': 1.0, 'a': 0.0} |
d = ['aab', 'defgab', 'abcde', 'aabcde', 'cedaaa', 'bbbbbbbbbb', 'jabjjjad']; g = 5; i = 1; r = {'a': 1, 'aa': 1, 'aab': 1, 'd': 1, 'de': 1, 'def': 1, 'defg': 1} | r[d[i][:g]] = 1 | d = ['aab', 'defgab', 'abcde', 'aabcde', 'cedaaa', 'bbbbbbbbbb', 'jabjjjad']; g = 5; i = 1; r = {'a': 1, 'aa': 1, 'aab': 1, 'd': 1, 'de': 1, 'def': 1, 'defg': 1, 'defga': 1} |
a = [3, 2, 1, 3, 2, 3]; i = 5; j = 5; z = 2 | z = max(a[i:j + 1]) | a = [3, 2, 1, 3, 2, 3]; i = 5; j = 5; z = 3 |
y = '10' | y = int(y) | y = 10 |
a = 1; b = 2; i = 0; n = 2 | o[min([a, b]) * (n - i) + max([a, b]) * i] = 1 | a = 1; b = 2; i = 0; n = 2; o = {2: 1} |
w = ['a', 'a']; y = 'a' | w.append(y) | w = ['a', 'a', 'a']; y = 'a' |
d = '5'; m = '10'; p = '2' | m, p, d = int(m), int(p), int(d) | d = 5; m = 10; p = 2 |
n = 1; o = 0; y = 1000000000000.0 | o = y * n | n = 1; o = 1000000000000.0; y = 1000000000000.0 |
s = 1; x = 2 | x ^= s | s = 1; x = 3 |
i = 0; j = 1 | b, g = i, j | b = 0; g = 1; i = 0; j = 1 |
s = '11111111111111' | s += '1' | s = '111111111111111' |
b = 'B_RRBR'; i = 0; l = {'X': 2, 'Y': 1} | l[b[i]] = 1 | b = 'B_RRBR'; i = 0; l = {'X': 2, 'Y': 1, 'B': 1} |
s = 'acxz' | r = s[::-1] | r = 'zxca'; s = 'acxz' |
e = 0 | e -= 1 | e = -1 |
j = 2; m = 7; o = 6 | o = j * (m - j) | j = 2; m = 7; o = 10 |
f = 1; p = 2; x = [-1, 6, -1, -1] | x[p] = 6 * f | f = 1; p = 2; x = [-1, 6, 6, -1] |
x = 1; z = 1 | k += max(x, z) | k = 60; x = 1; z = 1 |
i = 3; j = 3; x = {(1, 3), (3, 0), (0, 2), (2, 1), (1, 6), (0, 3), (2, 5), (1, 2), (1, 5), (2, 2), (0, 4), (1, 1), ...} | x.add((i, j)) | i = 3; j = 3; x = {(1, 2), (1, 3), (3, 3), (3, 0), (2, 1), (1, 5), (2, 5), (1, 6), (0, 4), (1, 1), (2, 2), (0, 3), Ellipsis, (0, 2)} |
t = [1, 4, 1] | del t[0] | t = [4, 1] |
a = 'abc'; j = 0; k = 2; p = 'a' | p = a[j:k] | a = 'abc'; j = 0; k = 2; p = 'ab' |
x = 2; y = 1 | x, y = y, x % y | x = 1; y = 0 |
c = [0, 0, 0, 2, 0, 0]; i = [[1, 1, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0], [1, 1, 1, 0, 0, 0], [0, 0, 2, 4, 4, 0]] | i.append(c) | c = [0, 0, 0, 2, 0, 0]; i = [[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]] |
i = 2; l = [1, 2, 3, 4]; s = 3; w = 3 | w = s + l[i] | i = 2; l = [1, 2, 3, 4]; s = 3; w = 6 |
c = [1, 9]; w = [3] | w.append(c[1]) | c = [1, 9]; w = [3, 9] |
c = 4294967295; i = 0; j = [10, 20, 30, 100, 200, 300, 1000]; k = 3 | c = min(c, j[i + k - 1] - j[i]) | c = 20; i = 0; j = [10, 20, 30, 100, 200, 300, 1000]; k = 3 |
i = 0; j = 5; x = 'abcabcddd'; z = {'abc', 'abcab', 'ab', 'a', 'abca'} | z.add(x[i:j + 1]) | i = 0; j = 5; x = 'abcabcddd'; z = {'abc', 'abca', 'abcab', 'a', 'ab', 'abcabc'} |
g = 2; m = 1; s = 2 | m = int(g + (s - g) / 2) | g = 2; m = 2; s = 2 |
t = '100000000000000' | t += '0' | t = '1000000000000000' |
o = {'c': 4, 'd': 4}; q = 'e' | o[q] = 1 | o = {'c': 4, 'd': 4, 'e': 1}; q = 'e' |
d = {'a': 2, 'b': 2}; i = 'c' | d[i] = 1 | d = {'a': 2, 'b': 2, 'c': 1}; i = 'c' |
l = 2; u = 3, 2; v = 4 | u = v, l + 1 | l = 2; u = (4, 3); v = 4 |
i = 's'; l = ['f', 'h', 's', 'x', 'z'] | l.remove(i.lower()) | i = 's'; l = ['f', 'h', 'x', 'z'] |
i = 0; u = 3; x = ['a', 'ab', 'aba', 'b', 'ba']; y = ['a'] | u = u + pow(len(x[i]), len(y)) | i = 0; u = 4.0; x = ['a', 'ab', 'aba', 'b', 'ba']; y = ['a'] |
k = 4; n = 9; p = 'abbb'; u = 'aaaaabbbbaaaa' | p = u[k:n] | k = 4; n = 9; p = 'abbbb'; u = 'aaaaabbbbaaaa' |
s = [[1, 1, 1, 2], [2, 3], [1, 4, 1, 1]]; u = [1, 4, 1, 1]; z = 7 | z -= u.pop() | s = [[1, 1, 1, 2], [2, 3], [1, 4, 1, 1]]; u = [1, 4, 1]; z = 6 |
g = []; x = 42 | g.append(x) | g = [42]; x = 42 |
b = '2'; d = '5'; l = '2'; p = '5' | b, l, d, p = [int(b), int(l), int(d), int(p)] | b = 2; d = 5; l = 2; p = 5 |
i = 0; q = [2, 5, 1, 3, 4]; u = 0 | u = max(0, q[i] - (i + 1)) | i = 0; q = [2, 5, 1, 3, 4]; u = 1 |
y = '3333' | y += '3' | y = '33333' |
a = [3, 4, 4, 4]; j = 4; l = ['3', '4', '4', '4', '8'] | a.append(int(l[j])) | a = [3, 4, 4, 4, 8]; j = 4; l = ['3', '4', '4', '4', '8'] |
i = 1; w = [4]; y = [4, 5, 3, 7, 2] | w.append(y[i]) | i = 1; w = [4, 5]; y = [4, 5, 3, 7, 2] |
m = [1] | m.append(1) | m = [1, 1] |
a = 2; b = 10; e = 42949673010; i = 32 | e += a ^ b << i | a = 2; b = 10; e = 85899345972; i = 32 |
k = 3; t = {(1): 1, (4): 3, (5): 1, (3): 0} | t[k] += 1 | k = 3; t = {1: 1, 4: 3, 5: 1, 3: 1} |
x = ( 'In the third category he included those Brothers..., breathless from his gallop and his excitement. ' ) | x = x.replace('.', '.\n').replace('!', '!\n').replace('?', '?\n') | x = 'In the third category he included those Brothers.\n.\n.\n, breathless from his gallop and his excitement.\n ' |
d = [2, 1, 3]; i = 2; r = 3 | r += d[i] | d = [2, 1, 3]; i = 2; r = 6 |
c = set(); i = 3 | c = {i} | c = {3}; i = 3 |
o = ['c'] | o.pop(-1) | o = [] |
f = {(1): 0}; i = 2 | f[i] = 0 | f = {1: 0, 2: 0}; i = 2 |
m = 1; n = 0; t = [[True, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]] | t[n][m] = True | m = 1; n = 0; t = [[True, True, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]] |
f = [[2, 2, 3]]; w = [3, 1, 4] | f.append(w) | f = [[2, 2, 3], [3, 1, 4]]; w = [3, 1, 4] |
x = 100; y = 1 | y = x % 2 | x = 100; y = 0 |
o = {1}; u = 3 | o.add(u) | o = {1, 3}; u = 3 |
i = 1; j = [2]; m = ['2', '5', '6'] | j.append(int(m[i])) | i = 1; j = [2, 5]; m = ['2', '5', '6'] |
u = 'BANANA FRIES'; v = 12 | c[u] = v | c = {'BANANA FRIES': 12}; u = 'BANANA FRIES'; v = 12 |
i = 4978 | s = i | i = 4978; s = 4978 |
c = 1; i = 0; r = [1, 2, 3, 4, 3, 3, 2, 1] | r[i] = r[i] - c | c = 1; i = 0; r = [0, 2, 3, 4, 3, 3, 2, 1] |
i = 8 | i = i - 1 | i = 7 |
d = [2, 4]; x = [4, 9] | i = x.index(d[1]) | d = [2, 4]; i = 0; x = [4, 9] |
a = 1 | m += str(a % 2) | a = 1; m = 'ivy1' |
p = ['b', 'c', 'b', 'a'] | p.pop(-1) | p = ['b', 'c', 'b'] |
a = [1, 3, 2, 6, 1, 2]; i = 1; j = 5; u = 4 | u = a[i] + a[j] | a = [1, 3, 2, 6, 1, 2]; i = 1; j = 5; u = 5 |
i = 3; p = [['a', 'b', 'c', 'd', 'e'], ['f', 'g', 'h', 'i', 'j'], ['k', 'l', 'm', 'n', 'o'], ['t', 'r', 'p', 'q', 's'], ['x', 'y', 'w', 'u', 'v']] | p[i].sort() | i = 3; p = [['a', 'b', 'c', 'd', 'e'], ['f', 'g', 'h', 'i', 'j'], ['k', 'l', 'm', 'n', 'o'], ['p', 'q', 'r', 's', 't'], ['x', 'y', 'w', 'u', 'v']] |
i = 3; o = {(2): [0, 1], (4): [2], (3): []}; x = 3 | o[x].append(i) | i = 3; o = {2: [0, 1], 4: [2], 3: [3]}; x = 3 |
l = [5, 10, 9, 1] | l.sort() | l = [1, 5, 9, 10] |
c = 23; f = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w'] | f.append(chr(ord('a') + c)) | c = 23; f = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x'] |
i = 2; t = [2, 3, 3, 4]; y = [2, 3, 4, 5] | Set.append(y[i]) | f = [4]; i = 2; t = [2, 3, 3, 4]; y = [2, 3, 4, 5] |
i = 3; j = 0; k = 3; l = [3, 4, 8, 12, 16, 15, 14, 13, 9, 5, 1, 2]; z = [[3, 4, 8, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]] | z[j][i] = l[k] | i = 3; j = 0; k = 3; l = [3, 4, 8, 12, 16, 15, 14, 13, 9, 5, 1, 2]; z = [[3, 4, 8, 12], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]] |
i = 1; j = []; s = 'aa'; w = {'a': [0, 1]} | j = [(i, i + 1) for i in w[s[0]]] | i = 1; j = [(0, 1), (1, 2)]; s = 'aa'; w = {'a': [0, 1]} |
i = 'f'; q = {'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0} | q[i] = 0 | i = 'f'; q = {'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0, 'f': 0} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.