start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
m = 'o'; u = {'a': 1, 'e': 1, 'i': 1, 'o': 2, 'u': 2} | u[m] -= 1 | m = 'o'; u = {'a': 1, 'e': 1, 'i': 1, 'o': 1, 'u': 2} |
a = 2; b = 10; i = 12; n = 40970 | n += a ^ b << i | a = 2; b = 10; i = 12; n = 81932 |
g = 113; q = 145 | t = q - g | g = 113; q = 145; t = 32 |
e = 'aaaaaaaaaab'; f = 5; n = 5; s = ['a', 'a', 'a', 'a', 'a'] | s.append(e[f:n + 1]) | e = 'aaaaaaaaaab'; f = 5; n = 5; s = ['a', 'a', 'a', 'a', 'a', 'a'] |
b = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 52, 24}; y = [2, 3, 5, 6, 8, 9, 1, 4, 7, 11] | b.intersection_update(y) | b = {1, 2, 3, 4, 5, 6, 7, 8, 9, 11}; y = [2, 3, 5, 6, 8, 9, 1, 4, 7, 11] |
h = 'ID', 'MARKS', 'NAME', 'CLASS' | q = repr(h).replace("'", '')[1:-1] | h = ('ID', 'MARKS', 'NAME', 'CLASS'); q = 'ID, MARKS, NAME, CLASS' |
b = [3, 1, 2] | b.sort() | b = [1, 2, 3] |
i = {('i', 'came', 'from'): 1, ('came', 'from', 'the'): 0}; p = 'came', 'from', 'the' | i[p] += 1 | i = {('i', 'came', 'from'): 1, ('came', 'from', 'the'): 1}; p = ('came', 'from', 'the') |
c = 2 | o = c * 3 | c = 2; o = 6 |
v = '1'; z = [2] | z.append(int(v)) | v = '1'; z = [2, 1] |
a = 4; x = 6 | a = x | a = 6; x = 6 |
b = ( 'In the third category he included those Brothers..., breathless from his gallop and his excitement. ' ); k = 30; x = 'In the third category he inclu' | x += b[k] | b = 'In the third category he included those Brothers..., breathless from his gallop and his excitement. '; k = 30; x = 'In the third category he includ' |
q = 2; t = 4; x = [1, 3, 4, 5, 6] | x.insert(t - 1, q) | q = 2; t = 4; x = [1, 3, 4, 2, 5, 6] |
a = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | a.append(0) | a = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
c = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 1], [0, 0, 1, 1, 1, 1], [0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0]]; i = 4; j = 1 | c[i + 1][j + 1] = max(c[i + 1][j], c[i][j + 1]) | c = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 1], [0, 0, 1, 1, 1, 1], [0, 0, 1, 1, 1, 1], [0, 0, 1, 0, 0, 0]]; i = 4; j = 1 |
i = 2; m = [1, 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]; s = 'abba' | m[ord(s[i]) - ord('a')] += 1 | i = 2; m = [1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; s = 'abba' |
i = 1; k = 3; m = 'atc'; v = 'atcgatcga' | m = v[i:i + k] | i = 1; k = 3; m = 'tcg'; v = 'atcgatcga' |
l = ['3', '3']; u = 1 | u = int(l[0]) | l = ['3', '3']; u = 3 |
a = [1, 4, 5, 3, 2]; d = 5; i = 3 | d = a[i] | a = [1, 4, 5, 3, 2]; d = 3; i = 3 |
a = 2; b = 6 | b -= a | a = 2; b = 4 |
i = '1'; o = {(2): 0}; t = 1 | o[int(i)] = t | i = '1'; o = {2: 0, 1: 1}; t = 1 |
q = 1.5 | q += 1 | q = 2.5 |
f = {(1): 1}; i = 2; k = [2] | f[i] = sum(k) | f = {1: 1, 2: 2}; i = 2; k = [2] |
p = 1.7999999999999993e-67 | p /= 10 | p = 1.7999999999999994e-68 |
a = 100; n = 2; s = '999100010001' | a = int(s[:n]) | a = 99; n = 2; s = '999100010001' |
w = ['9', '6', '2015']; y = ['6', '6', '2015'] | u = 15 * (int(w[0]) - int(y[0])) | u = 45; w = ['9', '6', '2015']; y = ['6', '6', '2015'] |
a = 'baa'; p = 1 | p = len(a) // 2 | a = 'baa'; p = 1 |
t = [None, 0, 1]; x = 8, 1, 0 | t[x[1]] = None | t = [None, None, 1]; x = (8, 1, 0) |
i = 2; q = 5 | q += i | i = 2; q = 7 |
c = 999100; i = 7; s = '999100010001' | c = int(s[:i]) | c = 9991000; i = 7; s = '999100010001' |
a = {'ive': 1, 'got': 1, 'a': 1}; i = 'lovely' | a[i] = 1 | a = {'ive': 1, 'got': 1, 'a': 1, 'lovely': 1}; i = 'lovely' |
i = 0; s = 10; u = [2, -1, 2, 3, 4, -5] | s += u[i] | i = 0; s = 12; u = [2, -1, 2, 3, 4, -5] |
g = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 1, 1, 1], [0, 0, 1, 1], [1, 1, 3, 4], [0, 0, 0, 0], [0, 0, 0, 0]]; i = 9; j = 1; s = [2, 5, 3, 6]; y = 0 | y = g[i - s[j]][j] if i - s[j] >= 0 else 0 | g = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 1, 1, 1], [0, 0, 1, 1], [1, 1, 3, 4], [0, 0, 0, 0], [0, 0, 0, 0]]; i = 9; j = 1; s = [2, 5, 3, 6]; y = 1 |
n = 1.0000000000000002e-13; s = 1.1111111111110001 | s += n % 10 | n = 1.0000000000000002e-13; s = 1.1111111111111 |
i = 36 | i += 1 | i = 37 |
a = [9, 90, 99, 900, 909, 990, 999, 9000, 900900, 900909, 900990, 900999, 909000, 909009, 909090, 909099]; e = 44 | a.append(int(bin(e)[2:]) * 9) | a = [9, 90, 99, 900, 909, 990, 999, 9000, 900900, 900909, 900990, 900999, 909000, 909009, 909090, 909099, 909900]; e = 44 |
k = 98; n = 0 | n, k = 0, 0 | k = 0; n = 0 |
k = 5; x = 4 | x = k | k = 5; x = 5 |
j = 2 | j += 1 | j = 3 |
c = [['h', 'a', 'v', 'e'], ['a', 'n', 'i', 'c'], ['e', 'd', 'a', 'y']]; i = 2; j = 0; k = ['h', 'a', 'e', ' ', 'a', 'n', 'd', ' '] | k.append(c[j][i]) | c = [['h', 'a', 'v', 'e'], ['a', 'n', 'i', 'c'], ['e', 'd', 'a', 'y']]; i = 2; j = 0; k = ['h', 'a', 'e', ' ', 'a', 'n', 'd', ' ', 'v'] |
s = [10, 5] | p = sum(s) | p = 15; s = [10, 5] |
j = 3 | j += 1 | j = 4 |
c = [[0, 0, 0, 0, 0], [0, 0, 2, 0, 5], [0, 2, 0, 0, 7], [0, 0, 0, 0, 1], [0, 5, 7, 1, 0]]; d = 4; i = 3; j = 1 | c[i][j] = d | c = [[0, 0, 0, 0, 0], [0, 0, 2, 0, 5], [0, 2, 0, 0, 7], [0, 4, 0, 0, 1], [0, 5, 7, 1, 0]]; d = 4; i = 3; j = 1 |
i = 1; j = 'aa'; l = 'aa' | l = j[-i:] | i = 1; j = 'aa'; l = 'a' |
i = 3; q = ['1', '0', '0', '1', '0', '0', '0', '1'] | q[i] = '0' | i = 3; q = ['1', '0', '0', '0', '0', '0', '0', '1'] |
i = 2; p = 4; s = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42] | p = s[i] | i = 2; p = 21; s = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42] |
r = 'lmon' | o = r | o = 'lmon'; r = 'lmon' |
b = 'w' | k[b] = 1 | b = 'w'; k = {'w': 1} |
i = 1; k = 3; o = [0, 0, 0] | o[i % k] += 1 | i = 1; k = 3; o = [0, 1, 0] |
h = 59 | h += 1 | h = 60 |
i = 4; m = 8 | m = 1 << i | i = 4; m = 16 |
h = [8, 5, 7]; n = 1; r = 8 | n = h.index(r) | h = [8, 5, 7]; n = 0; r = 8 |
i = 1; j = 5; x = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 0, 0], [0, 0, 0, 2, 0, 0], [0, 1, 1, 2, 0, 0], [0, 1, 2, 2, 0, 0], [0, 1, 2, 3, 0, 0]] | x[i][j] = x[i - 1][j - 1] + 1 | i = 1; j = 5; x = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 0, 1], [0, 0, 0, 2, 0, 0], [0, 1, 1, 2, 0, 0], [0, 1, 2, 2, 0, 0], [0, 1, 2, 3, 0, 0]] |
m = ['9', '9', '2', '2', '9', '2']; q = [0] | m[len(m) - 1 - q[0]] = '9' | m = ['9', '9', '2', '2', '9', '9']; q = [0] |
t = [[]] | t.append([]) | t = [[], []] |
m = [14, 28, 60, 78] | m.pop(0) | m = [28, 60, 78] |
v = 4 | v += 1 | v = 5 |
m = 3; n = 5; s = 4 | k = min(n - s, m - 1) | k = 1; m = 3; n = 5; s = 4 |
i = 0; j = 2; l = 'cd'; s = 'cdcd' | l = ''.join(sorted(s[i:j + 1])) | i = 0; j = 2; l = 'ccd'; s = 'cdcd' |
a = ['a', 'b', 'b']; i = 1; j = 3; s = 'abba' | a.append(s[j:j + i]) | a = ['a', 'b', 'b', 'a']; i = 1; j = 3; s = 'abba' |
g = 1; i = 4; v = [1, 1, 2, 3, 2] | g = v[i] | g = 2; i = 4; v = [1, 1, 2, 3, 2] |
k = 1; p = ['a', 'c', 'd']; z = ['b'] | z = p[k:] | k = 1; p = ['a', 'c', 'd']; z = ['c', 'd'] |
t = ['3', '3'] | t[0] = int(t[0]) | t = [3, '3'] |
a = [1, 3, 6]; b = [1, 3, 6]; i = 0; k = 2 | b[i] += a[i + k - 1] | a = [1, 3, 6]; b = [4, 3, 6]; i = 0; k = 2 |
m = 7; p = 11 | p = p % m | m = 7; p = 4 |
i = 0; j = 0; p = [['T', 's', 'i'], ['h', '%', 'x'], ['i', ' ', '#'], ['$', 'a', ' '], [ '#', 't', '%'], ['i', 'r', '!']]; s = [[0, 1, 2, 4, 5, 6], [0, 1, 2, 4, 5, 6], [0, 1, 2, 4, 5, 6], [0, 1, 2, 4, 5, 6], [0, 1, 2, 4, 5, 6], [0, 1, 2, 4, 5, 6]] | s[j][i] = p[i][j] | i = 0; j = 0; p = [['T', 's', 'i'], ['h', '%', 'x'], ['i', ' ', '#'], ['$', 'a', ' '], ['#', 't', '%'], ['i', 'r', '!']]; s = [['T', 1, 2, 4, 5, 6], [0, 1, 2, 4, 5, 6], [0, 1, 2, 4, 5, 6], [0, 1, 2, 4, 5, 6], [0, 1, 2, 4, 5, 6], [0, 1, 2, 4, 5, 6]] |
d = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'e': 1, 'f': 1, 'g': 1}; i = 'h' | d[i] = 1 | d = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'e': 1, 'f': 1, 'g': 1, 'h': 1}; i = 'h' |
d = {'c': (0, 0, 1, 0, 0, 0)}; s = 'd'; x = 'a' | d[x] = s.count(x) | d = {'c': (0, 0, 1, 0, 0, 0), 'a': 0}; s = 'd'; x = 'a' |
i = 2; t = ['I', 'like', 'to', 'dance', 'I']; z = 'to ' | z += t[i + 1].lower() | i = 2; t = ['I', 'like', 'to', 'dance', 'I']; z = 'to dance' |
i = 1; m = [0, 0, 0, 0, 0]; t = 100 | m[i - 1] = m[i - 1] + t | i = 1; m = [100, 0, 0, 0, 0]; t = 100 |
n = [[None, 1, None, None, None, None], [1, None, 1, None, None, None], [ None, 1, None, 1, 5, None], [None, None, 1, None, 1, None], [None, None, 5, 1, None, 1], [None, None, None, None, 1, None]]; u = 3; v = 5; w = 8 | n[u][v] = w | n = [[None, 1, None, None, None, None], [1, None, 1, None, None, None], [None, 1, None, 1, 5, None], [None, None, 1, None, 1, 8], [None, None, 5, 1, None, 1], [None, None, None, None, 1, None]]; u = 3; v = 5; w = 8 |
a = 3; z = 3 | g = a - z | a = 3; g = 0; z = 3 |
e = 32 | e = e << 1 | e = 64 |
a = 5; i = 64 | i = a | a = 5; i = 5 |
c = 14 | t = c / 2 | c = 14; t = 7.0 |
z = 7 + 7.0j | k = '-' if z.imag < 0 else '+' | k = '+'; z = (7+7j) |
h = 7; k = 9; m = 8 | s = min(m, k, h) | h = 7; k = 9; m = 8; s = 7 |
h = 'gfedc'; i = 'b' | h = h + i | h = 'gfedcb'; i = 'b' |
a = [[0, 0, 'ab'], [6, 1, 'cd'], [0, 2, 'ef'], [6, 3, 'gh'], [3, 11, 'be'], [0, 12, 'to'], [1, 13, 'be']]; i = 14; m = 5; s = 'question' | a.append([m, i, s]) | a = [[0, 0, 'ab'], [6, 1, 'cd'], [0, 2, 'ef'], [6, 3, 'gh'], [3, 11, 'be'], [0, 12, 'to'], [1, 13, 'be'], [5, 14, 'question']]; i = 14; m = 5; s = 'question' |
m = [0, 0, 0, 1, 0]; x = 2 | m[x] = m[x + 1] | m = [0, 0, 1, 1, 0]; x = 2 |
e = 1; o = 4 | e += o | e = 5; o = 4 |
i = 1; r = [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; s = 'ifai' | r[ord(s[i]) - ord('a')] += 1 | i = 1; r = [0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; s = 'ifai' |
a = []; m = 4 | a.append(m) | a = [4]; m = 4 |
f = 4; j = 'abdc' | f = len(j) | f = 4; j = 'abdc' |
b = '111111111111111111111111111110' | b += '1' | b = '1111111111111111111111111111101' |
b = [0, -0.5, 0.25, 0.625, -0.1875, -0.9809049591422081, 0.00954752042889595, -0.495226239785552, 1, 1]; e = -55.0; j = 8 | e = e + b[j] * 2 ** j | b = [0, -0.5, 0.25, 0.625, -0.1875, -0.9809049591422081, 0.00954752042889595, -0.495226239785552, 1, 1]; e = 201.0; j = 8 |
e = 16; o = 8 | e = o | e = 8; o = 8 |
b = [10, 1, 10, 1, 10]; c = 27; h = 27; i = 4; l = 27 | c = max(l + abs(b[i] - 1), h + abs(b[i] - b[i - 1])) | b = [10, 1, 10, 1, 10]; c = 36; h = 27; i = 4; l = 27 |
p = 3 | p += 2 | p = 5 |
f = 152; i = 5; x = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] | f += x[i] | f = 182; i = 5; x = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] |
i = 58; r = [4, 16, 36, 64, 100, 144, 196, 256, 324, 400, 1600, 1764, 1936, 2116, 2304, 2500, 2704, 2916, 3136] | r.append(i * i) | i = 58; r = [4, 16, 36, 64, 100, 144, 196, 256, 324, 400, 1600, 1764, 1936, 2116, 2304, 2500, 2704, 2916, 3136, 3364] |
c = '('; v = ['(', '[', '[', '{', '{'] | v.insert(0, c) | c = '('; v = ['(', '(', '[', '[', '{', '{'] |
y = 4 | y -= 1 | y = 3 |
s = [2, 4, 2, 6, 1, 7, 8, 9, 2]; x = 1 | s.append(x) | s = [2, 4, 2, 6, 1, 7, 8, 9, 2, 1]; x = 1 |
i = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711] | i.append(i[-1] + i[-2]) | i = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711, 28657] |
b = 2; d = 3 | d += b | b = 2; d = 5 |
c = ['o', 'n'] | c.sort() | c = ['n', 'o'] |
k = [6, 7]; p = 6 | p = k[1] | k = [6, 7]; p = 7 |
f = [-1, -1, 6] | del f[0] | f = [-1, 6] |
f = 2.0; x = 3.0 | f = x | f = 3.0; x = 3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.