start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
t = 2 | b = [] * t | b = []; t = 2 |
c = 1; j = [(0, 0), (0, 1), (1, 0), (0, 0), (0, 1), (0, 2), (1, 0), (1, 1), (1, 2), (2, 0), (2, 1), (2, 2)]; r = 1 | r, c = j.pop() | c = 2; j = [(0, 0), (0, 1), (1, 0), (0, 0), (0, 1), (0, 2), (1, 0), (1, 1), (1, 2), (2, 0), (2, 1)]; r = 2 |
i = 1; n = 30; r = [30, 10, 20] | n = n + (i + 1) * r[i] | i = 1; n = 50; r = [30, 10, 20] |
c = 6; i = 0; k = 2 | m.append(c * (1 + i // k)) | c = 6; i = 0; k = 2; m = [6] |
i = 2; p = [0, 1] | p.append(i) | i = 2; p = [0, 1, 2] |
i = 32; l = 24; n = '11111111111111111111111111111011'; r = 4294967040 | r = r + int(n[l]) * 2 ** (i - l - 1) | i = 32; l = 24; n = '11111111111111111111111111111011'; r = 4294967168 |
f = {(0): 3, (1): 7}; i = 2 | f[i] = f[i - 2] + f[i - 1] | f = {0: 3, 1: 7, 2: 10}; i = 2 |
b = 'B' | b = int(b, 16) | b = 11 |
h = 43; q = 33; w = 11 | q = w ^ h | h = 43; q = 32; w = 11 |
d = [7] | g = d[0] | d = [7]; g = 7 |
f = ['7895462130', '9195969878', '9875641230']; i = 1; p = '7895462130' | p = f[i] | f = ['7895462130', '9195969878', '9875641230']; i = 1; p = '9195969878' |
b = 1; k = 'a'; m = [['h', 'a', 'v', 'e'], ['a', 'n', 'i', 'c'], ['e', 'd', 'a', 'y'], []]; u = 1 | k = m[b][u] | b = 1; k = 'n'; m = [['h', 'a', 'v', 'e'], ['a', 'n', 'i', 'c'], ['e', 'd', 'a', 'y'], []]; u = 1 |
b = [10, 20, 30, 100, 200, 300, 1000]; c = 200; i = 4; k = 3 | c = b[i + k - 1] - b[i] | b = [10, 20, 30, 100, 200, 300, 1000]; c = 800; i = 4; k = 3 |
u = 38; x = 67 | x = u | u = 38; x = 38 |
x = -137.7 | x -= 1 | x = -138.7 |
n = 3, 3; s = 0 | t += s + n[1] | n = (3, 3); s = 0; t = -80 |
i = 9; l = [1, 2, 1, 2, 1, 2, 3, 4, 1, 1]; x = 18 | x += l[i] | i = 9; l = [1, 2, 1, 2, 1, 2, 3, 4, 1, 1]; x = 19 |
g = 5; j = 3; n = [(1, 2, 3), (1, 3, 4), (4, 2, 6), (5, 2, 2), (2, 3, 5)]; v = 7 | n.append((j, g, v)) | g = 5; j = 3; n = [(1, 2, 3), (1, 3, 4), (4, 2, 6), (5, 2, 2), (2, 3, 5), (3, 5, 7)]; v = 7 |
o = '['; x = ['{', '{'] | x.append(o) | o = '['; x = ['{', '{', '['] |
c = 'b'; i = 6; x = 'gfedcbagfedcba' | c = x[i] | c = 'a'; i = 6; x = 'gfedcbagfedcba' |
f = 1; n = 3 | w += (1 + w) * (2 ** (n - f) - 1) | f = 1; n = 3; w = 371 |
p = 'Tina'; v = [['Harry', 37.21], ['Berry', 37.21]]; x = 37.2 | v.append([p, x]) | p = 'Tina'; v = [['Harry', 37.21], ['Berry', 37.21], ['Tina', 37.2]]; x = 37.2 |
j = 3; q = [(4, 0)] | j = len(q) + 1 | j = 2; q = [(4, 0)] |
a = 2; h = [(0, 0), (0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (5, 0), (5, 1), (5, 2), (5, 3), (5, 4), (5, 5)]; j = 3; y = 0 | y, a = h[j] | a = 3; h = [(0, 0), (0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (5, 0), (5, 1), (5, 2), (5, 3), (5, 4), (5, 5)]; j = 3; y = 0 |
a = 1015; i = 5; o = 33 | a = o ^ i | a = 36; i = 5; o = 33 |
a = 17711; b = 28657; w = {1, 2, 3, 5, 8, 13, 144, 21, 2584, 34, 17711, 55, 1597, 10946, 4181, 89, 987, 610, 233, 6765, 28657, ...} | w.add(a + b) | a = 17711; b = 28657; w = {1, 2, 3, 5, 8, 13, 144, 21, 2584, 46368, 34, 17711, 55, 1597, 10946, 4181, 89, 987, Ellipsis, 610, 233, 6765, 28657} |
c = 7; i = 1; t = [7, 1, 3, 4, 1, 7] | c = t[i] | c = 1; i = 1; t = [7, 1, 3, 4, 1, 7] |
d = 6; f = 3; i = 1; u = [(0, 0), (2, 2), (1, 6), (1, 1), (2, 7)] | i, d = u[f] | d = 1; f = 3; i = 1; u = [(0, 0), (2, 2), (1, 6), (1, 1), (2, 7)] |
i = 0.001 | i = i / 10 | i = 0.0001 |
a = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53]; k = 5; m = 2310 | m *= a[k] | a = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53]; k = 5; m = 30030 |
j = ['q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] | j.remove(j[0]) | j = ['r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] |
a = 'LONDON;DELHI;ICELAND;ANKARA' | j = a.split(';') | a = 'LONDON;DELHI;ICELAND;ANKARA'; j = ['LONDON', 'DELHI', 'ICELAND', 'ANKARA'] |
r = 'ab' | r = sorted(r) | r = ['a', 'b'] |
v = -1; z = -2 | z = max(z, v) | v = -1; z = -1 |
k = 100; l = 200 | k = max(l, k) | k = 200; l = 200 |
e = 0; j = 5; s = 4; v = [(0, 0), (0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (5, 0), (5, 1), (5, 2), (5, 3), (5, 4), (5, 5)] | e, s = v[j] | e = 0; j = 5; s = 5; v = [(0, 0), (0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (5, 0), (5, 1), (5, 2), (5, 3), (5, 4), (5, 5)] |
i = 3; j = 1; v = [[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]]; y = 9 | y = v[j - 1][i] + v[j - 1][i - 1] + v[j - 1][i + 1] | i = 3; j = 1; v = [[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]]; y = 1 |
c = [set(), {3}, {4}, {1, 4}, {3}, set(), set()]; i = 4; o = 2 | c[i].add(o) | c = [set(), {3}, {4}, {1, 4}, {2, 3}, set(), set()]; i = 4; o = 2 |
n = 3; y = 0; z = 0 | x = n - z - y | n = 3; x = 3; y = 0; z = 0 |
n = 56 | n += 1 | n = 57 |
b = 0; i = 2 | b = i | b = 2; i = 2 |
m = 3; y = 1 | y = m | m = 3; y = 3 |
c = 2; j = [False, True, False, False] | j[c] = True | c = 2; j = [False, True, True, False] |
a = 'a'; c = 'g'; m = 'hefg' | a = m[-len(c) - 1] | a = 'f'; c = 'g'; m = 'hefg' |
i = 65536 | i += i & -i | i = 131072 |
q = 1; t = 0 | t = q | q = 1; t = 1 |
f = 4 | f = f - 1 | f = 3 |
h = ['{', '[', '('] | b = h.pop() | b = '('; h = ['{', '['] |
l = 'defgab'; s = 3 | s = len(l) | l = 'defgab'; s = 6 |
a = 3; t = [0, 1, 2, 3, 2]; z = 1 | t.append(a - z) | a = 3; t = [0, 1, 2, 3, 2, 2]; z = 1 |
f = {0, 1, 2, 3}; t = 20 | t += len(f) - 1 | f = {0, 1, 2, 3}; t = 23 |
e = ['{']; i = '[' | e.append(i) | e = ['{', '[']; i = '[' |
j = 1; w = ['c', 'b', 'a'] | j = len(w) - 1 | j = 2; w = ['c', 'b', 'a'] |
e = 32 | i = currentDistance + e | e = 32; i = 30; n = -2 |
k = ['b', 'b', 'a'] | k.sort() | k = ['a', 'b', 'b'] |
h = ['C']; x = 'A' | h.append(x) | h = ['C', 'A']; x = 'A' |
h = [8, 2, 1, 1, 1]; i = 1; x = 5 | h[i] = x | h = [8, 5, 1, 1, 1]; i = 1; x = 5 |
a = [1, 0, 3]; v = 4 | a = [0] * v | a = [0, 0, 0, 0]; v = 4 |
p = 3; q = [2, 1, 5, 5, 4]; x = 2 | q[x] = p | p = 3; q = [2, 1, 3, 5, 4]; x = 2 |
m = 119 | z = z + m | m = 119; z = 94 |
d = '4' | u = ord(d) | d = '4'; u = 52 |
i = 0; s = ['I love to danceI like to dance Ilike to play chess', ''] | s[i] = s[i].lower() | i = 0; s = ['i love to dancei like to dance ilike to play chess', ''] |
i = 1; j = 4; n = [[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]] | n[i][j] = n[i][j - 1] | i = 1; j = 4; n = [[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]] |
c = 3; i = 4 | c = i | c = 4; i = 4 |
a = 1; b = 0, 3; j = 5 | j = b[1] + a | a = 1; b = (0, 3); j = 4 |
b = '1111111111111110'; i = '1' | b += str(int(i) ^ 1) | b = '11111111111111100'; i = '1' |
i = 'a(?=a)'; p = 'a(?=a)' | i = p | i = 'a(?=a)'; p = 'a(?=a)' |
s = [1, 1, 1, 1, 1, 1, 1, 1, 1] | q = max(s) | q = 1; s = [1, 1, 1, 1, 1, 1, 1, 1, 1] |
b = [2] | d = b[0] | b = [2]; d = 2 |
j = {0, 5}; z = 3 | j.add(z) | j = {0, 3, 5}; z = 3 |
i = 0; s = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; t = 4; z = 6 | z = z - s[i] + s[i + t - 1] | i = 0; s = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; t = 4; z = 9 |
i = [1, 23, 12] | i = list(map(str, i)) | i = ['1', '23', '12'] |
c = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 4; s = 'abcdefghhgfedecba' | c[ord(s[i]) - 97] += 1 | c = [1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 4; s = 'abcdefghhgfedecba' |
d = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42] | b, u = d[0], d[0] | b = 3; d = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42]; u = 3 |
i = 0; s = ['I', 'came', 'from', 'the', 'moon.', 'He', 'went', 'to', 'the', 'drawing', 'room.', '\n\n\n\n'] | h = s[i] + ' ' + s[i + 1] + ' ' + s[i + 2] | h = 'I came from'; i = 0; s = ['I', 'came', 'from', 'the', 'moon.', 'He', 'went', 'to', 'the', 'drawing', 'room.', '\n\n\n\n'] |
a = [1, 2, 1, 1, 1, 2, 1, 3] | r = sum(a) | a = [1, 2, 1, 1, 1, 2, 1, 3]; r = 12 |
q = 3 | q = q - 1 | q = 2 |
a = 3; g = 3; h = 0; i = 1; u = [[1, 2, 3, 8, 12, 16], []]; v = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]] | u[h].append(v[h + a][h + g - i]) | a = 3; g = 3; h = 0; i = 1; u = [[1, 2, 3, 8, 12, 16, 15], []]; v = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]] |
f = 3 | f += 1 | f = 4 |
k = 1.4901161193847656e-08 | k /= 2 | k = 7.450580596923828e-09 |
u = 9; x = 'gfedcbagfedcba'; z = {'g': 0.0, 'f': 0.0, 'e': 1.0, 'd': 1.0, 'c': 1.0, 'b': 1.0, 'a': 0.0} | z[x[u]] -= 1 | u = 9; x = 'gfedcbagfedcba'; z = {'g': 0.0, 'f': 0.0, 'e': 0.0, 'd': 1.0, 'c': 1.0, 'b': 1.0, 'a': 0.0} |
a = 2; b = 2621440; r = 2621462 | r += a ^ b | a = 2; b = 2621440; r = 5242904 |
i = 0; j = 3; u = deque([12, 16, 15, 14, 13, 9, 5, 1, 2]); x = [[3, 4, 8, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]] | x[i][j] = u.popleft() | i = 0; j = 3; u = deque([16, 15, 14, 13, 9, 5, 1, 2]); x = [[3, 4, 8, 12], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]] |
b = [1, 1, 2, 20397882081197443358640281739902897356800000000, 815915283247897734345611269596115894272000000000, 33452526613163807108170062053440751665152000000000]; t = 1405006117752879898543142606244511569936384000000000 | b.append(t) | b = [1, 1, 2, 20397882081197443358640281739902897356800000000, 815915283247897734345611269596115894272000000000, 33452526613163807108170062053440751665152000000000, 1405006117752879898543142606244511569936384000000000]; t = 1405006117752879898543142606244511569936384000000000 |
m = 4; n = 4 | j = m * n | j = 16; m = 4; n = 4 |
x = '10001' | x = '0' * (32 - len(x)) + x | x = '00000000000000000000000000010001' |
a = [(3, 0), (6, 1), 15, 9, 5]; i = 2; x = 7 | a[i] %= x | a = [(3, 0), (6, 1), 1, 9, 5]; i = 2; x = 7 |
t = 2; w = [[2, 1]]; y = 2 | w.append([y, t]) | t = 2; w = [[2, 1], [2, 2]]; y = 2 |
a = '5'; i = 6 | a = i | a = 6; i = 6 |
b = 13, 10, 3; c = 7; k = 0; t = 13 | c = t ^ b[(k + 1) % len(b)] | b = (13, 10, 3); c = 7; k = 0; t = 13 |
i = 1; j = 8; q = 'ifailuhkqq'; s = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ifailuh', 'f', 'fa', 'fai', 'fail', 'failu', 'failuh'] | s.append(q[i:j]) | i = 1; j = 8; q = 'ifailuhkqq'; s = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ifailuh', 'f', 'fa', 'fai', 'fail', 'failu', 'failuh', 'failuhk'] |
a = 32; d = {(1): {}}; p = 3; q = 1 | d[q][p] = a | a = 32; d = {1: {3: 32}}; p = 3; q = 1 |
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]; x = '1' | o[int(x)] += 1 | o = [0, 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]; x = '1' |
k = 2; l = [(1, 0), (1, 2), (2, 3), (3, 1)]; v = 3 | v = l[k][0] | k = 2; l = [(1, 0), (1, 2), (2, 3), (3, 1)]; v = 2 |
g = ['63', '25', '73', '1', '98', '73', '56', '84', '86', '79', '75', '75', '13', '87', '70', '33', '']; x = 0 | j = g.count(str(x)) | g = ['63', '25', '73', '1', '98', '73', '56', '84', '86', '79', '75', '75', '13', '87', '70', '33', '']; j = 0; x = 0 |
g = '1 '; t = 4 | g = g + str(t) + ' ' | g = '1 4 '; t = 4 |
v = 'n'; z = 'a' | z = v | v = 'n'; z = 'n' |
n = {(1): {'before': set(), 'after': {3}}, (3): {'before': {1, 2}, 'after': {4}}, (2): {'before': set(), 'after': {3, 4}}, (4): {'before': {2, 3}, 'after': set()}} | k = [x for x in n.keys()] | k = [1, 3, 2, 4]; n = {1: {'before': set(), 'after': {3}}, 3: {'before': {1, 2}, 'after': {4}}, 2: {'before': set(), 'after': {3, 4}}, 4: {'before': {2, 3}, 'after': set()}} |
c = 5; z = [6, 2] | c = z[0] | c = 6; z = [6, 2] |
i = 5; m = {(2): True, (3): True, (4): True} | m[i] = True | i = 5; m = {2: True, 3: True, 4: True, 5: True} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.