start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
t = 1; x = 6 | t += x - t | t = 6; x = 6 |
i = 2; j = 2; o = [[0, 1, 1, 0, 1, 1], [0, 1, 1, 0, 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]] | o[i][j] = 1 | i = 2; j = 2; o = [[0, 1, 1, 0, 1, 1], [0, 1, 1, 0, 1, 1], [0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]] |
s = 'beabeefeab' | x = s | s = 'beabeefeab'; x = 'beabeefeab' |
j = 4; p = {(1): True, (5): True, (3): True} | p[j] = True | j = 4; p = {1: True, 5: True, 3: True, 4: True} |
a = 6; e = 5; m = [33333, 33333] | m.append(int(a * '5' + e * '3')) | a = 6; e = 5; m = [33333, 33333, 55555533333] |
n = 5 | n = n - 1 | n = 4 |
c = {(1): True, (2): False, (3): False, (4): False, (5): False, (6): False}; l = 3 | c[l] = True | c = {1: True, 2: False, 3: True, 4: False, 5: False, 6: False}; l = 3 |
v = '2 2' | v = v.split() | v = ['2', '2'] |
v = '011111111' | v += '1' | v = '0111111111' |
n = ['1', '4'] | i = int(n[0]) | i = 1; n = ['1', '4'] |
c = 'A' | u += c | c = 'A'; u = '28yA' |
a = 4.123105625617661; b = 2 | b = int(a) | a = 4.123105625617661; b = 4 |
e = 8; i = 7; w = 5 | e = abs(w - i) | e = 2; i = 7; w = 5 |
a = 13; e = '9101112' | e += str(a) | a = 13; e = '910111213' |
i = 23; j = 25; t = ['we', 'do', 'what', 'we', 'must', 'because', 'we']; z = 'wedowhatwemustbecausewecan' | t.append(z[i:j + 1]) | i = 23; j = 25; t = ['we', 'do', 'what', 'we', 'must', 'because', 'we', 'can']; z = 'wedowhatwemustbecausewecan' |
i = 3; j = 13 | i = j + 1 | i = 14; j = 13 |
k = 3; s = ['a', 'b', 'c', 'd']; t = 'c' | t = s[k] | k = 3; s = ['a', 'b', 'c', 'd']; t = 'd' |
i = 3; m = {(1): 1, (2): 1} | m[i] = 0 | i = 3; m = {1: 1, 2: 1, 3: 0} |
v = 1 | y.append(v) | v = 1; y = [1] |
b = 5 | b >>= 1 | b = 2 |
k = 3; w = 2 | y = (w - 1) ** (k - 1) | k = 3; w = 2; y = 1 |
p = 1.7999999999999996e-21 | p /= 10 | p = 1.7999999999999997e-22 |
n = 524287; x = 18 | n -= 2 ** x | n = 262143; x = 18 |
p = 'ab'; x = 'a' | p += x | p = 'aba'; x = 'a' |
i = 1; j = 2; m = [[0, 1, 1, inf, inf], [inf, 0, inf, inf, inf], [inf, inf, inf, inf, inf ], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf]] | m[i][j] = 1 | i = 1; j = 2; m = [[0, 1, 1, inf, inf], [inf, 0, 1, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf]] |
a = 'a', 'h', 'i', 'k', 'l', 'q', 'u'; i = 2; j = 10; s = 'ifailuhkqq' | a = tuple(sorted(list(s[i:j]))) | a = ('a', 'h', 'i', 'k', 'l', 'q', 'q', 'u'); i = 2; j = 10; s = 'ifailuhkqq' |
d = 1; h = ['a', 'c', 'd', 'b'] | h[d + 1:len(h)] = h[len(h) - 1:d:-1] | d = 1; h = ['a', 'c', 'b', 'd'] |
c = 110; k = 2; l = 'e' | c = ord(l) + k | c = 103; k = 2; l = 'e' |
i = 1; l = ['b', 'a', 'b'] | del l[i] | i = 1; l = ['b', 'b'] |
d = [None, None, None, None, None, None, None, None, None, None, None, None, None] | d.append(None) | d = [None, None, None, None, None, None, None, None, None, None, None, None, None, None] |
d = 6; n = 15 | n = d * 3 | d = 6; n = 18 |
i = 'a'; j = 8; z = ['h', 'A', 'C', 'K', 'E', 'R', 'r', 'A', 'n', 'k', 'o', 'n', 'i', 's', 't', ' ', '2', '"', '.'] | i = z[j] | i = 'n'; j = 8; z = ['h', 'A', 'C', 'K', 'E', 'R', 'r', 'A', 'n', 'k', 'o', 'n', 'i', 's', 't', ' ', '2', '"', '.'] |
d = 2; n = [10, 20, 20, 10, 10, 30, 50, 10, 20]; v = 20 | d += n.count(v) // 2 | d = 3; n = [10, 20, 20, 10, 10, 30, 50, 10, 20]; v = 20 |
c = 'a'; z = {'e', 'b'} | z.add(c) | c = 'a'; z = {'a', 'e', 'b'} |
d = 2; g = deque([(1, 2), (0, 2)]); s = 2 | s, d = g.popleft() | d = 2; g = deque([(0, 2)]); s = 1 |
e = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42] | t = e[0] | e = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42]; t = 3 |
x = {(1, 1, 1): 4, (0, 0, 0): 23}; z = 1, 1, 1, 0 | x[z[:3]] = z[3] + 1 | x = {(1, 1, 1): 1, (0, 0, 0): 23}; z = (1, 1, 1, 0) |
i = 1, 2, 3; j = 0 | l += i[j] ^ i[j + 1] | i = (1, 2, 3); j = 0; l = -27 |
a = 'abdc'; v = 'fedcbabcd' | a = v[::-1] | a = 'dcbabcdef'; v = 'fedcbabcd' |
b = [2, 3, 3]; i = 2; j = 4; k = 5; l = [1, 1, 2, 2, 3, 4] | b = [l[i], l[j], l[k]] | b = [2, 3, 4]; i = 2; j = 4; k = 5; l = [1, 1, 2, 2, 3, 4] |
i = 1; l = [4, 5, 3, 7, 2] | s.append(l[i]) | i = 1; l = [4, 5, 3, 7, 2]; s = [5] |
t = 4 | t = t - r | r = -74; t = 78 |
g = 2; z = [1, 4, 3, 5, 6, 2] | del z[g] | g = 2; z = [1, 4, 5, 6, 2] |
j = 2; n = 2; t = {(0): 1, (1): 2, (2): 2} | j = t[n] | j = 2; n = 2; t = {0: 1, 1: 2, 2: 2} |
e = 0 | e += 2 | e = 2 |
i = 1; l = [True]; v = 'qA2' | l.append(v[i].isalnum()) | i = 1; l = [True, True]; v = 'qA2' |
q = [-1, 1, 2, 3, 4] | q.pop() | q = [-1, 1, 2, 3] |
h = 3; r = 3; w = 3 | r += h * w | h = 3; r = 12; w = 3 |
j = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181] | j.append(j[-1] + j[-2]) | j = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765] |
n = [1, 0, 0] | n.remove(0) | n = [1, 0] |
i = 11; j = 73; t = 67 | t = i ^ j | i = 11; j = 73; t = 66 |
e = 0; y = [3, 1, 2] | y[e], y[e + 1] = y[e + 1], y[e] | e = 0; y = [1, 3, 2] |
i = '{'; o = [] | o.append(i) | i = '{'; o = ['{'] |
i = 0; q = ['2', '-1', '2', '3', '4', '-5'] | q[i] = int(q[i]) | i = 0; q = [2, '-1', '2', '3', '4', '-5'] |
d = ['2', '3'] | d[0] = int(d[0]) | d = [2, '3'] |
j = '11111111111111111111111111' | j += '1' | j = '111111111111111111111111111' |
n = 2; r = 3 | r += n | n = 2; r = 5 |
g = 8; i = 2 | g -= i | g = 6; i = 2 |
h = [[0, 0], [0, 1]] | q.append(h) | h = [[0, 0], [0, 1]]; q = [[[0, 0], [0, 1]]] |
i = 1; j = 4; o = 'cd'; s = 'cdcd' | o = list(s[i:j]) | i = 1; j = 4; o = ['d', 'c', 'd']; s = 'cdcd' |
b = [0, 9, 0, 0]; i = [9, 0, 0] | i = b | b = [0, 9, 0, 0]; i = [0, 9, 0, 0] |
g = ['insert', '0', '5'] | w.insert(int(g[1]), int(g[2])) | g = ['insert', '0', '5']; w = [5] |
r = [2, 2, 0]; u = 0; v = 0 | u = max(0, r[v] - 1) | r = [2, 2, 0]; u = 1; v = 0 |
c = [3, 1, 2] | b = c[:] | b = [3, 1, 2]; c = [3, 1, 2] |
e = ['a', 'b', 'c', 'd']; j = 3; y = 'b' | y = e[j] | e = ['a', 'b', 'c', 'd']; j = 3; y = 'd' |
f = 3 | f += 1 | f = 4 |
f = ['1', '1', '1', '0', '0', '0']; x = [['1', '1', '1', '0', '0', '0'], ['0', '1', '0', '0', '0', '0']] | x.append(f) | f = ['1', '1', '1', '0', '0', '0']; x = [['1', '1', '1', '0', '0', '0'], ['0', '1', '0', '0', '0', '0'], ['1', '1', '1', '0', '0', '0']] |
b = [98, 74, 12]; i = 0 | k ^= b[i] | b = [98, 74, 12]; i = 0; k = 78 |
c = 'a', 'c'; o = 'ab' | o = ''.join(c) | c = ('a', 'c'); o = 'ac' |
c = {'two': 1}; g = 'times' | c[g] = 1 | c = {'two': 1, 'times': 1}; g = 'times' |
i = 0; t = ["['ebacd']", 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] | k = list(t[i]) | i = 0; k = ['[', "'", 'e', 'b', 'a', 'c', 'd', "'", ']']; t = ["['ebacd']", 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 = '0b110100' | x += '0' | x = '0b1101000' |
m = '{'; z = [] | z.append(m) | m = '{'; z = ['{'] |
o = 9.99999999999998; u = 1.7999999999999996e-14 | o += u % 10 | o = 9.999999999999998; u = 1.7999999999999996e-14 |
r = 20 | r += 1 | r = 21 |
i = 1; o = 1; r = [1, 2, 3] | o += r[i] | i = 1; o = 3; r = [1, 2, 3] |
i = 11; j = 34; m = 42 | m = i ^ j | i = 11; j = 34; m = 41 |
c = 'ifailuhkqq'; i = 2; j = 3; m = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'failuh', 'failuhk', 'failuhkq', 'failuhkqq', 'a'] | m.append(c[i:j + 1]) | c = 'ifailuhkqq'; i = 2; j = 3; m = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'failuh', 'failuhk', 'failuhkq', 'failuhkqq', 'a', 'ai'] |
a = 2; k = ['1', 'xy'] | a = int(k[0]) | a = 1; k = ['1', 'xy'] |
a = 222; i = 5; j = 5; s = '2222222' | a = s[i:j + 1] | a = '2'; i = 5; j = 5; s = '2222222' |
q = []; s = 1 | q = [s] | q = [1]; s = 1 |
h = [set(), set(), {2}, set(), set(), set()]; i = 2; j = 4 | h[j].add(i) | h = [set(), set(), {2}, set(), {2}, set()]; i = 2; j = 4 |
i = 5; s = [0, 1, 1, 2, 3] | s.append(s[i - 1] + s[i - 2]) | i = 5; s = [0, 1, 1, 2, 3, 5] |
d = [63, 25, 73, 1, 98, 73, 56, 84, 86, 57, 16, 83, 82, 67, 61, 32, 21, 79, 75, 75, 13, 87, 70, 33]; i = 21; t = [1, 1, 3, 3, 6, 8, 9, 9, 10, 12, 13, 16, 16, 18, 20] | t.extend([i for j in range(d.count(i))]) | d = [63, 25, 73, 1, 98, 73, 56, 84, 86, 57, 16, 83, 82, 67, 61, 32, 21, 79, 75, 75, 13, 87, 70, 33]; i = 'MDjpKWAn'; t = [1, 1, 3, 3, 6, 8, 9, 9, 10, 12, 13, 16, 16, 18, 20] |
f = 1; q = [2, 1] | v = q[f:] | f = 1; q = [2, 1]; v = [1] |
g = [[[], -2], [[], -1], [[], -1]] | g.append([[], -1]) | g = [[[], -2], [[], -1], [[], -1], [[], -1]] |
g = [3]; n = 5 | n = g.pop() | g = []; n = 3 |
y = '91' | y = int(y) | y = 91 |
h = {(0): None, (1): 0, (2): 0, (3): 1, (5): None}; x = 3; y = 5 | h[y] = x | h = {0: None, 1: 0, 2: 0, 3: 1, 5: 3}; x = 3; y = 5 |
j = ['6', '3'] | n = int(j[0]) | j = ['6', '3']; n = 6 |
h = ['b', 'b', 'b', 'a', 'b', 'a', 'b', 'b', 'a', 'b']; l = 4; m = ['R', 1, 5]; p = ['a', 'a', 'b', 'b', 'b', 'a', 'b', 'b', 'a', 'b'] | h[l] = p[m[2] - 2 - l + m[1]] | h = ['b', 'b', 'b', 'a', 'a', 'a', 'b', 'b', 'a', 'b']; l = 4; m = ['R', 1, 5]; p = ['a', 'a', 'b', 'b', 'b', 'a', 'b', 'b', 'a', 'b'] |
i = 4; k = [0, 1, 2, 3] | k.append(i) | i = 4; k = [0, 1, 2, 3, 4] |
a = [10, 20, 30, 40, 50]; i = 0; j = 4; k = 4; s = 5; t = [80, 20, 30, 40, 0]; x = [[1, 1, 0, 0, 1], [0, 1, 0, 0, 0], [0, 0, 1, 0, 0], [0, 0, 0, 1, 0], [0, 0, 0, 0, 1]] | t[(j + i) % s] += x[j][k] * a[(k + i) % s] | a = [10, 20, 30, 40, 50]; i = 0; j = 4; k = 4; s = 5; t = [80, 20, 30, 40, 50]; x = [[1, 1, 0, 0, 1], [0, 1, 0, 0, 0], [0, 0, 1, 0, 0], [0, 0, 0, 1, 0], [0, 0, 0, 0, 1]] |
i = 1; j = 2; k = 0; o = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2], [0, 2, 1], [1, 0, 0], [1, 0, 2], [1, 1, 1], [1, 1, 2]] | o.append([i, j, k]) | i = 1; j = 2; k = 0; o = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2], [0, 2, 1], [1, 0, 0], [1, 0, 2], [1, 1, 1], [1, 1, 2], [1, 2, 0]] |
g = 450; i = 7; o = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819] | g = abs(o[i] - o[i + 1]) | g = 50; i = 7; o = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819] |
b = 2; g = 1.9609375; j = 9 | g = g + j * b ** -j | b = 2; g = 1.978515625; j = 9 |
d = 1; i = 1; n = '103'; s = '0' | n = s[d:d + i] | d = 1; i = 1; n = ''; s = '0' |
b = [5, 8, 14]; i = 2; s = [3] | s.append(b[i] - b[i - 1]) | b = [5, 8, 14]; i = 2; s = [3, 6] |
a = [1, 2, 3, 4, 5]; b = [5, 1, 2, 0, 0]; i = 3; k = 4; n = 5 | b[i] = a[(i + k) % n] | a = [1, 2, 3, 4, 5]; b = [5, 1, 2, 3, 0]; i = 3; k = 4; n = 5 |
o = '4 2' | w, f = map(int, o.split(' ')) | f = 2; o = '4 2'; w = 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.