start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
o = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; q = 3 | b = o[q] - o[first_child_index] | b = 2; n = True; o = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; q = 3 |
i = 3; s = 46 | s = s + i | i = 3; s = 49 |
d = [1, 2, 2]; h = 2 | d.append(h + 1) | d = [1, 2, 2, 3]; h = 2 |
b = 3; c = 3 | c += b | b = 3; c = 6 |
k = 4; o = 'ifailuhkqq'; q = 3; y = {'i': 1, 'l': 1, 'u': 1, 'h': 1} | y[o[q + k]] = 1 | k = 4; o = 'ifailuhkqq'; q = 3; y = {'i': 1, 'l': 1, 'u': 1, 'h': 1, 'k': 1} |
l = [0, 1, 2, 3, 4, 5, 6]; o = 3; u = 2 | l[u], l[o] = l[o], l[u] | l = [0, 1, 3, 2, 4, 5, 6]; o = 3; u = 2 |
a = 10; b = 1010; i = 62; q = 4657802878611661782630 | q = q + (a ^ b << i) | a = 10; b = 1010; i = 62; q = 9315605757223323565680 |
n = 4 | k.append(n) | k = [4]; n = 4 |
d = 3; k = 3.141592653589793; n = 6 | n = round(k * d) | d = 3; k = 3.141592653589793; n = 9 |
i = 4; r = ['{', '{', '[', '[', '('] | i = len(r) | i = 5; r = ['{', '{', '[', '[', '('] |
u = 2; z = 3 | u = z | u = 3; z = 3 |
i = [0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 2, 1, 0, 3, 2, 1, 1, 0, 1, 0, 1, 0, 2, 2]; l = 1 | i[int(l)] = i[int(l)] + 1 | i = [0, 2, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 2, 1, 0, 3, 2, 1, 1, 0, 1, 0, 1, 0, 2, 2]; l = 1 |
g = '110' | g += str('1') | g = '1101' |
b = [0, 0, 1, 0, 0]; x = 1 | b[x] = b[x + 1] | b = [0, 1, 1, 0, 0]; x = 1 |
l = [['c'], ['d']]; x = 'c' | l.append(sorted(x)) | l = [['c'], ['d'], ['c']]; x = 'c' |
d = ['3', '1']; e = 1 | e = int(d[1]) - 1 | d = ['3', '1']; e = 0 |
n = 4 | n = n + 1 | n = 5 |
b = [(1, 2, 1), (2, 2, 3), (4, 3, 4)]; i = 1; j = 1; r = -1 | r = b[i][j] - b[i][j - 1] | b = [(1, 2, 1), (2, 2, 3), (4, 3, 4)]; i = 1; j = 1; r = 0 |
i = 1 | s = s + str(i) | i = 1; s = 'TEtXluwc61' |
d = 10; i = 2; y = [10, 5, 20, 20, 4, 5, 2, 25, 1] | d = y[i] | d = 20; i = 2; y = [10, 5, 20, 20, 4, 5, 2, 25, 1] |
v = 6 | w = v | v = 6; w = 6 |
i = 0; j = [4, 1, 0, 1, 1, 0, 1]; k = [2] | k = j[:i + 1] | i = 0; j = [4, 1, 0, 1, 1, 0, 1]; k = [4] |
a = 991890176; b = 19783680; m = 1000000000; x = 60; y = 32 | x, y = (x * a - b * y) % m, (x * b + y * a) % m | a = 991890176; b = 19783680; m = 1000000000; x = 880332800; y = 927506432 |
e = 3; h = {(1): 1, (2): 2, (3): 3, (4): 4, (6): 6, (12): 3}; k = 4 | e = h[k] | e = 4; h = {1: 1, 2: 2, 3: 3, 4: 4, 6: 6, 12: 3}; k = 4 |
c = [3, 1, 2]; n = 0 | n = int(len(c) / 2) | c = [3, 1, 2]; n = 1 |
j = [[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 = 19; x = 3; y = 3 | s = j[y][x] + j[y][x + 1] + j[y][x + 2] + j[y + 1][x + 1] + j[y + 2][x] + j[ y + 2][x + 1] + j[y + 2][x + 2] | j = [[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 = 14; x = 3; y = 3 |
d = 28; i = 2; t = [8, 5, 2, 1] | d += t[i] | d = 30; i = 2; t = [8, 5, 2, 1] |
d = [('a', 'b'), ('b', 'b')]; u = 'a', 'b'; x = ['dummy', [('a',), ('b',), ('b',)], [('a', 'b'), ('b', 'b')], [('a', 'b', 'b'), ('a', 'b', 'b')], [('a', 'a', 'b', 'b')]] | d.append(u) | d = [('a', 'b'), ('b', 'b'), ('a', 'b')]; u = ('a', 'b'); x = ['dummy', [('a',), ('b',), ('b',)], [('a', 'b'), ('b', 'b')], [('a', 'b', 'b'), ('a', 'b', 'b')], [('a', 'a', 'b', 'b')]] |
m = ["['c']"]; y = 'd' | m.append(str(sorted(y))) | m = ["['c']", "['d']"]; y = 'd' |
b = 'give'; o = {'give': 1, 'me': 1, 'one': 1, 'grand': 1, 'today': 1, 'night': 1} | o[b] -= 1 | b = 'give'; o = {'give': 0, 'me': 1, 'one': 1, 'grand': 1, 'today': 1, 'night': 1} |
b = ['ab']; i = 2; j = 3; t = 'abcd' | b.append(t[i:j + 1]) | b = ['ab', 'cd']; i = 2; j = 3; t = 'abcd' |
e = ['o', 'k', 'f', 'f', 'n', 'e', '-', 'O', 'u', 't', 'z']; p = 103; s = 5 | e[s] = chr(p) | e = ['o', 'k', 'f', 'f', 'n', 'g', '-', 'O', 'u', 't', 'z']; p = 103; s = 5 |
t = 13; v = 0 | p = v + t | p = 13; t = 13; v = 0 |
a = 62; x = 32 | o[x] = a | a = 62; o = {32: 62}; x = 32 |
i = 2; j = 0; l = [1, 2, 1, 1, 1, 1] | l[i] = l[j] + 1 | i = 2; j = 0; l = [1, 2, 2, 1, 1, 1] |
n = ['d']; o = 'dcba'; t = 'ba'; z = ['c'] | o = t[::-1] + n[0] + ''.join(z) | n = ['d']; o = 'abdc'; t = 'ba'; z = ['c'] |
s = 2, 2; v = [(0, 0), (1, 1)] | v.append(s) | s = (2, 2); v = [(0, 0), (1, 1), (2, 2)] |
a = [1, 1, 2, 6, 2, 10, 5]; i = 7; p = 11 | a.append(a[-1] * i % p) | a = [1, 1, 2, 6, 2, 10, 5, 2]; i = 7; p = 11 |
s = ['g', 'f', 'e', 'd', 'c', 'b', 'a', 'g', 'f', 'e', 'd', 'c', 'b', 'a'] | n = len(s) | n = 14; s = ['g', 'f', 'e', 'd', 'c', 'b', 'a', 'g', 'f', 'e', 'd', 'c', 'b', 'a'] |
e = ['ive', 'got', 'a', 'lovely', 'bunch', 'of', 'coconuts']; m = {'ive': 1, 'got': 1, 'a': 1, 'lovely': 1, 'bunch': 1, 'of': 1}; x = 6 | m[e[x]] = 1 | e = ['ive', 'got', 'a', 'lovely', 'bunch', 'of', 'coconuts']; m = {'ive': 1, 'got': 1, 'a': 1, 'lovely': 1, 'bunch': 1, 'of': 1, 'coconuts': 1}; x = 6 |
i = 0; k = [['T', 'h'], ['s', '%'], ['i', 'x']]; s = 'i #' | k[i] += s[i] | i = 0; k = [['T', 'h', 'i'], ['s', '%'], ['i', 'x']]; s = 'i #' |
a = '999' | a += '9' | a = '9999' |
e = 5; w = 2; x = 3 | x = min(e, w) | e = 5; w = 2; x = 2 |
j = 45 | j += 1 | j = 46 |
f = [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]; y = 'a' | f[ord(y) - ord('a')] += 1 | f = [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]; y = 'a' |
q = 120; t = {(210): 1, (300): 1, (120): 1} | t[q] = 1 | q = 120; t = {210: 1, 300: 1, 120: 1} |
j = {0}; r = {0, 1, 4} | j.difference_update(r) | j = set(); r = {0, 1, 4} |
c = [1, 3, 4, 5, 0, 0, 0, 0]; i = 4; l = [1, 2, 1, 1, 1, 2, 1, 3] | c[i] = c[i - 1] + l[i] | c = [1, 3, 4, 5, 6, 0, 0, 0]; i = 4; l = [1, 2, 1, 1, 1, 2, 1, 3] |
g = 'ifailuhkqq'; i = 4; j = 8; l = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ifailuh', 'iluhkq', 'iluhkqq', 'l', 'lu', 'luh', 'luhk'] | l.append(g[i:j + 1]) | g = 'ifailuhkqq'; i = 4; j = 8; l = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ifailuh', 'iluhkq', 'iluhkqq', 'l', 'lu', 'luh', 'luhk', 'luhkq'] |
j = 9; k = 8 | k *= j | j = 9; k = 72 |
i = 2; j = 10; r = 'ahiklqu'; s = 'ifailuhkqq' | r = list(s[i:j]) | i = 2; j = 10; r = ['a', 'i', 'l', 'u', 'h', 'k', 'q', 'q']; s = 'ifailuhkqq' |
p = 3 | o = int(p ** 0.5) + 1 | o = 2; p = 3 |
i = 3; j = 6; r = 'il'; s = 'ifailuhkqq' | r = list(s[i:j]) | i = 3; j = 6; r = ['i', 'l', 'u']; s = 'ifailuhkqq' |
a = {9, 5}; b = {11, 12} | c = sorted(a.union(b)) | a = {9, 5}; b = {11, 12}; c = [5, 9, 11, 12] |
a = 6; d = 10 | a = d | a = 10; d = 10 |
i = 3; s = 'abbabab '; t = ['a', 'ab', 'abb'] | t.append(s[:i + 1]) | i = 3; s = 'abbabab '; t = ['a', 'ab', 'abb', 'abba'] |
i = 1; k = 4 | k = i | i = 1; k = 1 |
h = ['4', '5', '1', '2', '3'] | h.append(h.pop(0)) | h = ['5', '1', '2', '3', '4'] |
a = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]; d = 5979603; i = 11 | d = a[i] - a[i - 1] | a = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]; d = 1128362; i = 11 |
i = 1; j = 0; l = [[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]]; s = [2, 5, 3, 6] | y = l[i - s[j]][j] if i - s[j] >= 0 else 0 | i = 1; j = 0; l = [[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]]; s = [2, 5, 3, 6]; y = 0 |
i = [-1, -1, 2] | i.append(-1) | i = [-1, -1, 2, -1] |
o = 2 | o += 1 | o = 3 |
g = 6, 5; t = 3 | t += g[1] | g = (6, 5); t = 8 |
a = 2; b = 10; i = 115; r = 415383748682786210282439706337607896 | r += a ^ b << i | a = 2; b = 10; i = 115; r = 830767497365572420564879412675215578 |
x = 2; y = [2, 0, 0, 0] | x = sum(y) - y[0] | x = 0; y = [2, 0, 0, 0] |
i = 2; s = [[0, 0, 0, 0, 0], [0, 0, 2, 2, 2], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]]; w = 2 | s[i][w] = s[i - 1][w] | i = 2; s = [[0, 0, 0, 0, 0], [0, 0, 2, 2, 2], [0, 0, 2, 0, 0], [0, 0, 0, 0, 0]]; w = 2 |
a = 5; l = [[1, 3], [0, 2], [1], [0, 4], []]; u = 4 | l[a - 1].append(u - 1) | a = 5; l = [[1, 3], [0, 2], [1], [0, 4], [3]]; u = 4 |
i = 1; q = [2, 3, 4, 5]; x = [2, 3, 3] | x.append(q[i + 1]) | i = 1; q = [2, 3, 4, 5]; x = [2, 3, 3, 4] |
j = 10 | j += 1 | j = 11 |
f = ['atcgatcga', 'cgg']; p = 'cgatcg' | p = f[0] | f = ['atcgatcga', 'cgg']; p = 'atcgatcga' |
f = '\n'; r = '\n' | f = r | f = '\n'; r = '\n' |
a = 0; n = [10, 8, 12]; t = [(8, 1, 0), (12, 2, 1)]; x = 8, 1, 0 | t[x[2]] = n[a], a, x[2] | a = 0; n = [10, 8, 12]; t = [(10, 0, 0), (12, 2, 1)]; x = (8, 1, 0) |
o = 5; r = [2] | o = r.pop() | o = 2; r = [] |
j = 4; z = [0, 1, 2, 3] | z.append(j) | j = 4; z = [0, 1, 2, 3, 4] |
i = 3; j = 1 | j = i | i = 3; j = 3 |
h = 9; i = 0; o = [1, 2, 3, 3] | h -= o[i] | h = 8; i = 0; o = [1, 2, 3, 3] |
i = 1; j = 2; l = 3 | j = l - 1 - i | i = 1; j = 1; l = 3 |
i = 2; n = 2; s = [0, 0, 0, 0, 0, 0, 0, 0]; t = [0, 0, 1, 1, 1, 0, 0, 0, 1] | s[i] = t[i] ^ t[i - 1] ^ s[i - n] | i = 2; n = 2; s = [0, 0, 1, 0, 0, 0, 0, 0]; t = [0, 0, 1, 1, 1, 0, 0, 0, 1] |
x = 1 | d = x | d = 1; x = 1 |
i = 0; j = 7; l = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ifailuh']; o = 'ifailuhkqq' | l.append(o[i:j + 1]) | i = 0; j = 7; l = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ifailuh', 'ifailuhk']; o = 'ifailuhkqq' |
q = 2, 5; y = '1 ' | y += str(q[0]) + ' ' | q = (2, 5); y = '1 2 ' |
a = 49 | a = a * a % 1000000007 | a = 2401 |
d = {(1): 2, (2): 1}; i = 2; s = '2 ' | s += str(d[i]) + ' ' | d = {1: 2, 2: 1}; i = 2; s = '2 1 ' |
t = 3; z = 5 | x = min(t, z) | t = 3; x = 3; z = 5 |
j = 5; q = [' ', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']; y = 'e-d-c-d-e' | y = y + q[j] + '-' | j = 5; q = [' ', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']; y = 'e-d-c-d-ee-' |
d = {'fi': 1, 'af': 1, 'ai': 1, 'il': 1, 'lu': 1}; f = 'hu' | d[f] = d[f] + 1 if f in d else 1 | d = {'fi': 1, 'af': 1, 'ai': 1, 'il': 1, 'lu': 1, 'hu': 1}; f = 'hu' |
m = 'u'; o = {'a': 1, 'e': 1, 'i': 1, 'o': 1, 'u': 1} | o[m] -= 1 | m = 'u'; o = {'a': 1, 'e': 1, 'i': 1, 'o': 1, 'u': 0} |
a = 10; q = 10 | q = q * a | a = 10; q = 100 |
k = 3; n = 3 | m = n / k | k = 3; m = 1.0; n = 3 |
c = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; q = 2; s = 19 | s -= c[q - 1] | c = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; q = 2; s = 17 |
d = {(1): 2, (2): 3, (4): 1}; u = 4; v = 5 | d[u] = v | d = {1: 2, 2: 3, 4: 5}; u = 4; v = 5 |
a = [0, 1]; i = 2 | i = a.pop() | a = [0]; i = 1 |
d = '\n'; u = [5, 6] | u = d.split() | d = '\n'; u = [] |
n = 5 | w = 4 * n - 3 | n = 5; w = 17 |
b = 3022314549036572936765440 | b <<= 1 | b = 6044629098073145873530880 |
i = 1; j = 2; n = 5; y = 4 | n = j * y + i | i = 1; j = 2; n = 9; y = 4 |
i = 0; j = 0; t = [[1, 1], [1, 1]] | o += t[j][i] | i = 0; j = 0; o = -76; t = [[1, 1], [1, 1]] |
c = ['99', '99']; g = 8; r = ['400453592126560', '114213133098692', '474386082879648', '445893523733475', '768705303214174', '650629270887160'] | g = len(r) - len(c) + 1 | c = ['99', '99']; g = 5; r = ['400453592126560', '114213133098692', '474386082879648', '445893523733475', '768705303214174', '650629270887160'] |
z = 'ca' | r.append(z) | r = ['ca']; z = 'ca' |
i = 1 | r += i | i = 1; r = 79 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.