start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
i = 1; n = 4; s = ['h', 'k', 'd', 'c'] | s[i:] = s[n - 1:i - 1:-1] | i = 1; n = 4; s = ['h', 'c', 'd', 'k'] |
m = 1.2e-19; y = 1.2000000000000001e-20 | m = y % 10.0 | m = 1.2000000000000001e-20; y = 1.2000000000000001e-20 |
j = {'[1, 2]': 24, '[2, 1]': 24}; r = 20; x = 1; y = 4 | j[str([x, y])] = r | j = {'[1, 2]': 24, '[2, 1]': 24, '[1, 4]': 20}; r = 20; x = 1; y = 4 |
b = {(2): {(1): 8, (4): 5}, (1): {(2): 8, (0): 5}, (0): {(1): 5}, (4): {(2): 5} }; p = 3; r = 4; s = 1 | b[s][p] = r | b = {2: {1: 8, 4: 5}, 1: {2: 8, 0: 5, 3: 4}, 0: {1: 5}, 4: {2: 5}}; p = 3; r = 4; s = 1 |
e = 37; i = 12; m = 33; n = 87 | e = min(m, n, i) | e = 12; i = 12; m = 33; n = 87 |
i = '5' | i = int(i) | i = 5 |
e = 1; p = 1; v = 1 | v += e % 10 * 2 ** p | e = 1; p = 1; v = 3 |
h = 5 | t = h / 2 | h = 5; t = 2.5 |
j = 4; v = [1, 3, 4, 5, 6, 6] | v[j] = v[j - 1] | j = 4; v = [1, 3, 4, 5, 5, 6] |
n = 1 | k += n | k = 50; n = 1 |
k = ['2'] | k = list(map(int, k)) | k = [2] |
g = 2; i = 1 | i = g | g = 2; i = 2 |
g = [1, 2, 3, 4, 5]; i = 5; l = deque([0, 1, 2]); q = 5; z = 3 | q = g[z] * (i if len(l) == 0 else i - l[-1] - 1) | g = [1, 2, 3, 4, 5]; i = 5; l = deque([0, 1, 2]); q = 8; z = 3 |
k = [[0, 24, 0, 0], [24, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; r = 20; x = 0; y = 3 | k[x][y] = k[y][x] = r | k = [[0, 24, 0, 20], [24, 0, 0, 0], [0, 0, 0, 0], [20, 0, 0, 0]]; r = 20; x = 0; y = 3 |
d = 2; l = 1; q = 1, 2; v = 3 | q = l + d, v | d = 2; l = 1; q = (3, 3); v = 3 |
o = [[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, 0, 0, 0, 0]]; q = 0; x = 2; y = 1 | o[x][y] += o[q][y - 1] | o = [[1, 1, 1, 1, 1], [0, 0, 0, 0, 0], [0, 1, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]]; q = 0; x = 2; y = 1 |
o = ['f', 'g', 'h', 'i', 'j']; y = [['a', 'b', 'c', 'd', 'e']] | y.append(o) | o = ['f', 'g', 'h', 'i', 'j']; y = [['a', 'b', 'c', 'd', 'e'], ['f', 'g', 'h', 'i', 'j']] |
g = 4; n = 5; z = 2.4 | z += (n + 1) / (g + 1) | g = 4; n = 5; z = 3.5999999999999996 |
p = 5 | p = 3 * (p / 2) | p = 7.5 |
u = 2; x = [1, 2, 4, 5, 4] | x[u + 2] = x[u + 1] | u = 2; x = [1, 2, 4, 5, 5] |
a = [1]; i = '3' | a.append(int(i)) | a = [1, 3]; i = '3' |
m = [2, 1, 1]; o = [2, 1, 1, 1] | m = m[o[0]:] | m = [1]; o = [2, 1, 1, 1] |
p = '(?<= )(&&|\\|\\|)(?= )'; y = '(?<= )(&&|\\|\\|)(?= )' | y = p | p = '(?<= )(&&|\\|\\|)(?= )'; y = '(?<= )(&&|\\|\\|)(?= )' |
z = [3, 3, 2] | z.sort() | z = [2, 3, 3] |
b = 3; h = [8, 1, 3] | h.append(b) | b = 3; h = [8, 1, 3, 3] |
h = 245; n = {(175): 1} | n[h] = 1 | h = 245; n = {175: 1, 245: 1} |
a = [[112, 42, 83, 119], [56, 125, 56, 49]]; w = [15, 78, 101, 43] | a.append(w) | a = [[112, 42, 83, 119], [56, 125, 56, 49], [15, 78, 101, 43]]; w = [15, 78, 101, 43] |
i = 4; s = '000010110000'; y = 7 | o = s[i + 1:y + 1].count('1') + 1 | i = 4; o = 3; s = '000010110000'; y = 7 |
k = 1.2000000000000007e-43 | k /= 10 | k = 1.2000000000000008e-44 |
i = 0; j = 1; k = 0; s = 'abb'; y = ['a', 'abb'] | y.append(s[i] + s[k + 1:len(s) - j]) | i = 0; j = 1; k = 0; s = 'abb'; y = ['a', 'abb', 'ab'] |
i = '61' | n = int(i) | i = '61'; n = 61 |
s = 'e'; z = {'a': 0.0, 'e': 1.0, 'i': 1.0, 'o': 1.0, 'u': 1.0} | z[s] -= 1 | s = 'e'; z = {'a': 0.0, 'e': 0.0, 'i': 1.0, 'o': 1.0, 'u': 1.0} |
i = 2 | i -= 2 | i = 0 |
c = 1; d = 0; n = 2; r = 0 | b = 4 * r + (2 + 3 * c) * d + (3 + 8 * c) * n | b = 22; c = 1; d = 0; n = 2; r = 0 |
s = [2, 4]; x = 2 | s.append(x) | s = [2, 4, 2]; x = 2 |
m = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 0, 16, 1, 19, 0, 20, 1]; x = 22 | m.append(m[-1] ^ x) | m = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 0, 16, 1, 19, 0, 20, 1, 23]; x = 22 |
j = 2; s = 4; u = [[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]] | s = u[i][j] + u[i][j + 1] + u[i][j + 2] + u[i + 1][j + 1] + u[i + 2][j] + u[ i + 2][j + 1] + u[i + 2][j + 2] | i = False; j = 2; s = 2; u = [[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]] |
u = 5; z = [6] | u = max(z) | u = 6; z = [6] |
c = '\n'; n = 2 | n = c.count('1') | c = '\n'; n = 0 |
r = {(140410254513328): []}; x = ['T', 'T']; y = [] | r[id(x)] = y | r = {140410254513328: [], 139758047267328: []}; x = ['T', 'T']; y = [] |
i = 3; r = '011010' | r = r[:i + 1] + '1' + r[i + 3:] | i = 3; r = '01101' |
b = 'd-e'; n = 5; r = 1; z = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] | b = '-'.join(z[r + 1:n]) | b = 'c-d-e'; n = 5; r = 1; z = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] |
c = [990, 999, 9009]; x = 900 | x = c.pop(0) | c = [999, 9009]; x = 990 |
a = [2, 4, 3, 7]; v = 4 | a.append(v) | a = [2, 4, 3, 7, 4]; v = 4 |
g = 6; i = 2; p = [9, 6, 3, 5, 2] | g = p[i] | g = 3; i = 2; p = [9, 6, 3, 5, 2] |
f = 'B'; r = ['B', 'B', 'B'] | r.append(f) | f = 'B'; r = ['B', 'B', 'B', 'B'] |
i = 1; k = -1; p = [2, 2] | p[i] += k | i = 1; k = -1; p = [2, 1] |
c = 107; s = [100, 104, 107, 99] | s = ''.join([chr(c) for c in s]) | c = 107; s = 'dhkc' |
l = 1 | l = max(0, l - 1) | l = 0 |
z = [3, 2, 1, 3, 4] | z.pop() | z = [3, 2, 1, 3] |
b = '1'; x = [1, 1, 2] | x.append(int(b)) | b = '1'; x = [1, 1, 2, 1] |
l = 1 | l += 1 | l = 2 |
p = ['1', '2', '3']; x = 0 | x = int(p[0]) | p = ['1', '2', '3']; x = 1 |
x = 11; z = [2, 6, 9, 10] | x = z[-1] | x = 10; z = [2, 6, 9, 10] |
b = [1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1]; g = 1 | b.append(g) | b = [1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1]; g = 1 |
s = '111111111' | s += '1' | s = '1111111111' |
m = [1, 1, 1, 3, 3] | m.sort(reverse=True) | m = [3, 3, 1, 1, 1] |
a = 2; c = 2 | c += a | a = 2; c = 4 |
a = 4; i = 0; v = [1, 4, 5, 3, 2] | s = a - v[i] | a = 4; i = 0; s = 3; v = [1, 4, 5, 3, 2] |
n = 4; x = {(2): [], (1): [2]} | x[n] = [] | n = 4; x = {2: [], 1: [2], 4: []} |
l = [1, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; w = 'a' | l[ord(w) - ord('a')] += 1 | l = [2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; w = 'a' |
d = [1, 2, 5, 8]; i = 3; x = 30 | x -= d[::-1][i] | d = [1, 2, 5, 8]; i = 3; x = 29 |
a = 59; w = 47 | w = a | a = 59; w = 59 |
x = 7; y = {(2): [0], (5): [2, 0], (3): [5, 2]}; z = 5 | y[x] = [z] | x = 7; y = {2: [0], 5: [2, 0], 3: [5, 2], 7: [5]}; z = 5 |
o = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819] | z = abs(o[0] - o[len(o) - 1]) | o = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]; z = 14705580 |
a = 451980638 | a = a * a % 1000000007 | a = 696881579 |
i = [2, 1]; j = 3; k = 4 | k = i[0] + j | i = [2, 1]; j = 3; k = 5 |
p = 1; x = 1 | p = x - 1 | p = 0; x = 1 |
b = [2]; p = 0 | p = len(b) | b = [2]; p = 1 |
f = 'f'; j = 2; s = 'ifailuhkqq' | f += s[j] | f = 'fa'; j = 2; s = 'ifailuhkqq' |
c = '111111111111111' | c += '0' | c = '1111111111111110' |
j = -1 | j = j - 1 | j = -2 |
h = [3, 4, 6, 1, 7, 0, 2, 5]; i = 0; z = [5, 3, 6, 0, 1, 7, 2, 4] | j = h[z[i] + 1] | h = [3, 4, 6, 1, 7, 0, 2, 5]; i = 0; j = 2; z = [5, 3, 6, 0, 1, 7, 2, 4] |
f = 9; i = 2; s = '999100010001' | f = int(s[0:i]) | f = 99; i = 2; s = '999100010001' |
i = 2; q = 44; s = [] | s.append((q, i)) | i = 2; q = 44; s = [(44, 2)] |
p = 2; t = deque(['4', '3', '2', '1', '5', '9', '13', '14', '15', '16', '12', '8']) | t.rotate(p) | p = 2; t = deque(['12', '8', '4', '3', '2', '1', '5', '9', '13', '14', '15', '16']) |
b = [2, 4, 5, 9]; p = [2, 4, 11, 12]; x = [] | x = list(set(b).union(set(p)) - set(b).intersection(set(p))) | b = [2, 4, 5, 9]; p = [2, 4, 11, 12]; x = [9, 11, 12, 5] |
c = 6; r = [[0, 2, 5], [], [], [], [4], [], [1, 3], [], [], [], [], [], [], [], [], [], [], [], [], [], []]; x = [0, 6, 0, 6, 4, 0, 6, 0, 6, 0, 4, 3, 0, 1, 5, 1, 2, 4, 2, 4] | r[x[c]].append(c) | c = 6; r = [[0, 2, 5], [], [], [], [4], [], [1, 3, 6], [], [], [], [], [], [], [], [], [], [], [], [], [], []]; x = [0, 6, 0, 6, 4, 0, 6, 0, 6, 0, 4, 3, 0, 1, 5, 1, 2, 4, 2, 4] |
i = 0; s = ['1', '2', '3', '4', '5'] | l.append(int(s[i])) | i = 0; l = [1]; s = ['1', '2', '3', '4', '5'] |
l = 1; n = 'c',; o = 3; s = 'cdcd' | n = tuple(sorted(s[o:o + l])) | l = 1; n = ('d',); o = 3; s = 'cdcd' |
c = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 1], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None]]; i = 2; j = 0 | c[i][j] = 0 | c = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 1], [0, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None]]; i = 2; j = 0 |
p = '(?<=\\w)[^a-zA-Z0-9]+(?=\\w)'; y = '(?<=\\w)[^a-zA-Z0-9]+(?=\\w)' | y = p | p = '(?<=\\w)[^a-zA-Z0-9]+(?=\\w)'; y = '(?<=\\w)[^a-zA-Z0-9]+(?=\\w)' |
t = 3; x = 3; y = 1 | t = abs(y - x) | t = 2; x = 3; y = 1 |
q = ['{', '{', '['] | q.pop() | q = ['{', '{'] |
b = 64 | b = list(map(int, bin(b)[2:].zfill(8))) | b = [0, 1, 0, 0, 0, 0, 0, 0] |
i = 2; n = {(2): 6, (3): 1} | n[i] = n.get(i, 0) + 1 | i = 2; n = {2: 7, 3: 1} |
a = ['1000000001', '1000000002', '1000000003', '1000000004', '1000000005']; i = 1; s = 1000000001 | s = s + int(a[i]) | a = ['1000000001', '1000000002', '1000000003', '1000000004', '1000000005']; i = 1; s = 2000000003 |
i = ' he went'; r = ['i came from', 'came from the', 'from the moon'] | r.append(i) | i = ' he went'; r = ['i came from', 'came from the', 'from the moon', ' he went'] |
i = 84 | i += 1 | i = 85 |
a = 3; k = [([], -1), ([3], -1), ([], -1), ([1], -1), ([], -1), ([], -1), ([], -1)]; p = 4 | k[a][0].append(p) | a = 3; k = [([], -1), ([3], -1), ([], -1), ([1, 4], -1), ([], -1), ([], -1), ([], -1)]; p = 4 |
c = [1, 0, 1, 1, 1, 2, 2, 2, 3, 3, 2]; i = 7; k = 3 | c[i + k] += c[i] | c = [1, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4]; i = 7; k = 3 |
b = 29; d = '1' | b += int(d) | b = 30; d = '1' |
b = {(32): 62, (42): 68, (12): 98, (95): 13, (97): 25, (93): 37, (79): 27}; g = 75; s = 19 | b[g] = s | b = {32: 62, 42: 68, 12: 98, 95: 13, 97: 25, 93: 37, 79: 27, 75: 19}; g = 75; s = 19 |
d = [2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 'e' | d[ord(i) - 97] += 1 | d = [2, 2, 2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 'e' |
i = 3; j = 1; k = [False, True, False, False, False] | k[i + j] = True | i = 3; j = 1; k = [False, True, False, False, True] |
d = 8; z = {1, 2, 3, 5} | z.add(d) | d = 8; z = {1, 2, 3, 5, 8} |
n = [1]; o = 1 | o = n.pop(0) | n = []; o = 1 |
e = 10; k = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; o = 4; v = 30 | v = k[-1] - k[e - o] | e = 10; k = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; o = 4; v = 170 |
i = 1; o = [22, 79, 21]; p = '22*' | p += str(o[i]) | i = 1; o = [22, 79, 21]; p = '22*79' |
f = 3; m = [(5, 0, 2), (0, 3, 4)]; n = 1; y = 2 | m.append((f, y - 1, n - 1)) | f = 3; m = [(5, 0, 2), (0, 3, 4), (3, 1, 0)]; n = 1; y = 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.