start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
a = 'afhiiklu'; o = {'i': 1, 'fi': 1, 'afi': 1, 'afii': 1, 'afiil': 1, 'afiilu': 1, 'afhiilu': 1} | o[a] = 1 | a = 'afhiiklu'; o = {'i': 1, 'fi': 1, 'afi': 1, 'afii': 1, 'afiil': 1, 'afiilu': 1, 'afhiilu': 1, 'afhiiklu': 1} |
j = 0; m = [1, 1]; y = [0, 2] | y[j] += m[j] | j = 0; m = [1, 1]; y = [1, 2] |
h = [[1, 2, 3], [2, 3]]; i = 1; j = 0; v = [2, 3] | v.append(h[i][j + 1]) | h = [[1, 2, 3], [2, 3]]; i = 1; j = 0; v = [2, 3, 3] |
i = 7; p = 8 | i = p | i = 8; p = 8 |
a = ['a', 'b', 'c', 'd']; s = ["['a']", "['a', 'b']", "['a', 'b', 'c']"] | s.append(str(a)) | a = ['a', 'b', 'c', 'd']; s = ["['a']", "['a', 'b']", "['a', 'b', 'c']", "['a', 'b', 'c', 'd']"] |
a = [[25, 16], [49, 64, 81]]; y = [25, 25, 49, 64, 81, 100] | a.append(y[1:]) | a = [[25, 16], [49, 64, 81], [25, 49, 64, 81, 100]]; y = [25, 25, 49, 64, 81, 100] |
a = 1; s = [7, 12, 14, 21] | a = s.pop(0) | a = 7; s = [12, 14, 21] |
k = 2 | w = k | k = 2; w = 2 |
a = 10; b = 12 | a = b | a = 12; b = 12 |
t = 83; x = {(63): 1, (25): 1, (73): 2, (1): 1, (98): 1, (56): 1, (84): 1, (86): 1, (57): 1, (16): 1} | x[t] = 1 | t = 83; x = {63: 1, 25: 1, 73: 2, 1: 1, 98: 1, 56: 1, 84: 1, 86: 1, 57: 1, 16: 1, 83: 1} |
i = 5; j = 2 | j = i - 1 | i = 5; j = 4 |
h = [['0', '1'], ['0', '0']]; i = 2; x = ['1', '0'] | h.insert(i, x) | h = [['0', '1'], ['0', '0'], ['1', '0']]; i = 2; x = ['1', '0'] |
s = [[1, 2], [0, 3, 4, 2], [0, 1, 4], [1], [1]]; x = 3; y = 5 | s[y - 1].append(x - 1) | s = [[1, 2], [0, 3, 4, 2], [0, 1, 4], [1], [1, 2]]; x = 3; y = 5 |
a = [-7330761, -6461594, -3916237, -3620601, -357920, -20, 30, 266854, 6246457, 7374819]; i = 4; m = 295636 | m = a[i] - a[i - 1] | a = [-7330761, -6461594, -3916237, -3620601, -357920, -20, 30, 266854, 6246457, 7374819]; i = 4; m = 3262681 |
j = 2; r = [97, 102]; z = [[[105], [102]], [[102, 105]], [[97, 102, 105]], [[97, 102, 104, 105, 108, 117]], [[97, 102, 104, 107, 108, 117]], [[97, 102, 104, 108, 113, 117]]] | z[j - 1].append(r) | j = 2; r = [97, 102]; z = [[[105], [102]], [[102, 105], [97, 102]], [[97, 102, 105]], [[97, 102, 104, 105, 108, 117]], [[97, 102, 104, 107, 108, 117]], [[97, 102, 104, 108, 113, 117]]] |
u = [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] | u = u + [0] | u = [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] |
b = [2, 1, 8, 5]; j = 2; m = 9 | m += b[j] | b = [2, 1, 8, 5]; j = 2; m = 17 |
i = 2; s = 3; u = 'ifailuhkqq'; z = 4259841 | z -= (s + 1) ** (ord(u[i]) - ord('a')) | i = 2; s = 3; u = 'ifailuhkqq'; z = 4259840 |
f = 7; j = 3; u = 2; w = [3, 3, 9, 9, 5] | u = (u + w[j]) % f | f = 7; j = 3; u = 4; w = [3, 3, 9, 9, 5] |
k = 4; q = 1; t = [1, 1, 1, 1, 1, 1] | q = q + t[k] | k = 4; q = 2; t = [1, 1, 1, 1, 1, 1] |
f = 1; p = 3; r = [[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]]; z = 1 | f = r[z - 1][p] | f = 0; p = 3; r = [[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]]; z = 1 |
i = [[0, 0, 0, 0], [0, 1, 1, 0], [0, 1, 1, 0]]; k = 3; x = 1 | i[x][k] = i[x + 1][k - 1] | i = [[0, 0, 0, 0], [0, 1, 1, 1], [0, 1, 1, 0]]; k = 3; x = 1 |
a = -2; n = -2; p = -3 | n = a + p | a = -2; n = -5; p = -3 |
g = [39, 0, 0, 0]; w = 0 | g[w] += 1 | g = [40, 0, 0, 0]; w = 0 |
a = [1, 3, 3, 3]; i = 0; j = 0; k = 1; n = 4; y = [[0, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf]] | z = y[i][j] + a[i] * (i - j - (n - k - (i - j))) | a = [1, 3, 3, 3]; i = 0; j = 0; k = 1; n = 4; y = [[0, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf]]; z = -3 |
i = 5; o = 2 | o = i | i = 5; o = 5 |
a = 13; m = 38 | a = m // 5 | a = 7; m = 38 |
i = [2, 2, 2, 0, 2, 1, 1, 1, 1] | i = [f for f in i if f != 0] | i = [2, 2, 2, 2, 1, 1, 1, 1] |
m = ['13', '14', '15', '16'] | m = [int(ri) for ri in m] | m = [13, 14, 15, 16] |
f = ['went', 'to', 'the']; l = ['i came from', 'the moon he'] | l.append(' '.join(f)) | f = ['went', 'to', 'the']; l = ['i came from', 'the moon he', 'went to the'] |
c = 'c'; s = {'b', 'a'} | s.add(c) | c = 'c'; s = {'a', 'b', 'c'} |
c = 'd'; i = 12 | c = chr(i + 96) | c = 'l'; i = 12 |
h = [[0, 2, 5]]; i = 4; r = [[[0, 2, 0]], [[2, 2, 0], [0, 1, 1]], [[2, 2, 1], [1, 1, 2], [0, 0, 3]], [[2, 2, 3], [1, 1, 4], [0, 0, 5]], [], [], []] | r[i] = h | h = [[0, 2, 5]]; i = 4; r = [[[0, 2, 0]], [[2, 2, 0], [0, 1, 1]], [[2, 2, 1], [1, 1, 2], [0, 0, 3]], [[2, 2, 3], [1, 1, 4], [0, 0, 5]], [[0, 2, 5]], [], []] |
g = 'v'; k = 2; n = 'anic' | g = g + n[k] | g = 'vi'; k = 2; n = 'anic' |
a = [0, 0, 0, 2]; j = 3; n = 4 | j = (j + a[j] + 1) % n | a = [0, 0, 0, 2]; j = 2; n = 4 |
i = 'q'; j = {'i': 2, 'f': 1, 'a': 1, 'l': 1, 'u': 1, 'h': 1, 'k': 1, 'q': 1} | j[i] += 1 | i = 'q'; j = {'i': 2, 'f': 1, 'a': 1, 'l': 1, 'u': 1, 'h': 1, 'k': 1, 'q': 2} |
a = '5 5' | a = a.split() | a = ['5', '5'] |
c = 'a'; i = 2; q = {'a': [0], 'b': [1]} | q[c].append(i) | c = 'a'; i = 2; q = {'a': [0, 2], 'b': [1]} |
i = 'U' | q += 1 if i == 'U' else -1 | i = 'U'; q = -47 |
n = 1.2000000000000008e-54 | n = n / 10 | n = 1.2000000000000009e-55 |
o = 1 | o = o + 1 | o = 2 |
i = 2; n = 3; s = [[3, 0], [2, 0], [1, 1]]; z = 2 | s[n - i][1] = z | i = 2; n = 3; s = [[3, 0], [2, 2], [1, 1]]; z = 2 |
i = 'd'; o = 102 | o = ord(i) | i = 'd'; o = 100 |
i = 1; s = [100, 100, 0, 0, -100, -100] | s[i] = s[i] + s[i - 1] | i = 1; s = [100, 200, 0, 0, -100, -100] |
b = 3498573497543987543985743989120393097595572309482304 | b = b % (MOD - 1) | b = -1; j = -44 |
i = 'd'; u = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'e': 2, 'f': 2, 'g': 2, 'h': 2} | u[i] += 1 | i = 'd'; u = {'a': 1, 'b': 1, 'c': 1, 'd': 2, 'e': 2, 'f': 2, 'g': 2, 'h': 2} |
e = 0; i = 1; j = 0; z = [[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]] | e = sum(z[i][j:j + 3]) + z[i + 1][j + 1] + sum(z[i + 2][j:j + 3]) | e = 4; i = 1; j = 0; z = [[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]] |
i = 1; o = ['9', '9', '2', '2', '8', '9']; q = '2' | q = max(o[i], o[-i - 1]) | i = 1; o = ['9', '9', '2', '2', '8', '9']; q = '9' |
d = {(0): 9, (1): 6, (2): 11, (3): 4}; e = [4, 3]; i = 4 | d[i] = e[0] + e[1] | d = {0: 9, 1: 6, 2: 11, 3: 4, 4: 7}; e = [4, 3]; i = 4 |
g = 1; p = 9.0 | p -= g | g = 1; p = 8.0 |
b = [1, 2, 3]; i = 2; j = 3; x = [1, 1, 2, 1, 1] | x[j] += x[j - b[i - 1]] | b = [1, 2, 3]; i = 2; j = 3; x = [1, 1, 2, 2, 1] |
a = '1' | a += '1' | a = '11' |
a = [[1], [1, 1], [1, 2, 1]]; h = 2; q = 3; r = [1, 3] | r.append(a[q - 1][h] + a[q - 1][h - 1]) | a = [[1], [1, 1], [1, 2, 1]]; h = 2; q = 3; r = [1, 3, 3] |
d = 1, 0; v = [(0, 0), (0, 0)] | v.append(d) | d = (1, 0); v = [(0, 0), (0, 0), (1, 0)] |
i = 4 | i = i + 1 | i = 5 |
s = 'aba' | u = len(s) | s = 'aba'; u = 3 |
d = {(-1253354784533417420): 1, (5868894011261529223): 1, ( 1382470004925486418): 1}; h = 313066908127337072 | d[h] = 1 | d = {-1253354784533417420: 1, 5868894011261529223: 1, 1382470004925486418: 1, 313066908127337072: 1}; h = 313066908127337072 |
d = 100; k = 2 | d += k | d = 102; k = 2 |
i = 1; j = 2; s = 'ababa'; z = 'aba' | z = s[i:j] | i = 1; j = 2; s = 'ababa'; z = 'b' |
y = [3, 3, 2] | y.sort() | y = [2, 3, 3] |
n = 6 | n = n >> 1 | n = 3 |
i = {'data': 3, 'left': 4, 'right': None, 'height': 2}; m = {'data': 5, 'left': 6, 'right': 7, 'height': 1} | m['height'] = i['height'] + 1 | i = {'data': 3, 'left': 4, 'right': None, 'height': 2}; m = {'data': 5, 'left': 6, 'right': 7, 'height': 3} |
s = [5, 4, 4, 2]; x = '2'; z = [5, 4, 4, 2] | s.append(int(x)) | s = [5, 4, 4, 2, 2]; x = '2'; z = [5, 4, 4, 2] |
n = 1; u = 'BANANA' | k += len(u) - n | k = -87; n = 1; u = 'BANANA' |
a = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]; c = 0; m = [1, 2, 3, 4, 8, 12, 16, 15, 14, 13]; r = 2 | m.append(a[r][c]) | a = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]; c = 0; m = [1, 2, 3, 4, 8, 12, 16, 15, 14, 13, 9]; r = 2 |
b = array([10.0, 30.0, 20.0, 40.0, 50.0]); z = None | z = tuple(range(b.ndim)) | b = array([10., 30., 20., 40., 50.]); z = (0,) |
e = ['gurwgrb', 'maqz', 'holpkhqx', 'aowypvopu', 'gurwgrbmaqz', 'gurwgrbholpkhqx']; u = 'gurwgrb', 'aowypvopu' | e.append(''.join(u)) | e = ['gurwgrb', 'maqz', 'holpkhqx', 'aowypvopu', 'gurwgrbmaqz', 'gurwgrbholpkhqx', 'gurwgrbaowypvopu']; u = ('gurwgrb', 'aowypvopu') |
g = [0, 9, 27, 63, 135, 279, 567, 1143, 2295, 4599, 9207, 18423]; i = 11 | g.append(g[-1] + 9 * 2 ** i) | g = [0, 9, 27, 63, 135, 279, 567, 1143, 2295, 4599, 9207, 18423, 36855]; i = 11 |
o = [1, 1, 1, 1]; x = 1; y = 2 | o.append(abs(int(x) - int(y))) | o = [1, 1, 1, 1, 1]; x = 1; y = 2 |
t = -15; u = -1; y = 14.0 | y = t / u | t = -15; u = -1; y = 15.0 |
b = 8; l = 'gfedcbagfedcba'; u = ['a', 'g'] | u.append(l[b]) | b = 8; l = 'gfedcbagfedcba'; u = ['a', 'g', 'f'] |
r = '1892'; x = [[1, 1, 1, 2], [1, 9, 1, 2]] | x.append(list(map(int, r))) | r = '1892'; x = [[1, 1, 1, 2], [1, 9, 1, 2], [1, 8, 9, 2]] |
c = 10; s = 6 | s = c | c = 10; s = 10 |
h = 6; v = 4 | h -= v | h = 2; v = 4 |
k = ['d', 'd', 'e', 'e', 'd', 'e', 'd', 'e']; p = ['d', 'e', 'd', 'e', 'e', 'd', 'd', 'e'] | p = k.copy() | k = ['d', 'd', 'e', 'e', 'd', 'e', 'd', 'e']; p = ['d', 'd', 'e', 'e', 'd', 'e', 'd', 'e'] |
c = 13; i = 3; p = '148148148' | c = c + int(p[i]) | c = 14; i = 3; p = '148148148' |
a = '1011010'; m = 8 | a = list('0' * (m - len(a)) + a) | a = ['0', '1', '0', '1', '1', '0', '1', '0']; m = 8 |
x = '4' | p.add(x) | p = {'4'}; x = '4' |
g = [66, 0, 0, 0]; w = 0 | g[w] += 1 | g = [67, 0, 0, 0]; w = 0 |
j = {'12', '11', '5', '9'} | m = list(j) | j = {'9', '5', '11', '12'}; m = ['9', '5', '11', '12'] |
u = 4; w = 3 | u += w | u = 7; w = 3 |
c = 1; i = 1; t = [1, 2, 3, 4, 6, 3] | c = t[i] | c = 2; i = 1; t = [1, 2, 3, 4, 6, 3] |
k = '9'; m = 2; p = '910' | p += str(int(k) + m) | k = '9'; m = 2; p = '91011' |
i = 1; p = [0, 1, 2] | i, j = p[1:] | i = 1; j = 2; p = [0, 1, 2] |
b = 0 | i = b | b = 0; i = 0 |
c = 1; p = [[1, 3, 1], [2, 1, 2], [3, 3, 3]]; t = 0; y = 6 | y += p[t][c] | c = 1; p = [[1, 3, 1], [2, 1, 2], [3, 3, 3]]; t = 0; y = 9 |
a = 9; q = 8; t = 7 | w = max([q, a, t]) | a = 9; q = 8; t = 7; w = 9 |
i = 4; k = {1, 3, 5} | k.add(i) | i = 4; k = {1, 3, 4, 5} |
n = 1000000000000; s = 'a' | l = n % len(s) | l = 0; n = 1000000000000; s = 'a' |
x = 10 | p.append(x) | p = [10]; x = 10 |
c = 'd'; d = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 3, 'f': 2, 'g': 2, 'h': 2}; j = {(2): ['a', 'b', 'c'], (3): []} | j[d[c]].append(c) | c = 'd'; d = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 3, 'f': 2, 'g': 2, 'h': 2}; j = {2: ['a', 'b', 'c', 'd'], 3: []} |
c = [5, 6, 7]; i = [3, 6, 10] | m = zip(c, i) | c = [5, 6, 7]; i = [3, 6, 10]; m = <zip object at 0x7f1bf43dfd70> |
a = 4; u = 1 | a = u + 1 | a = 2; u = 1 |
s = [2, 1]; v = [5] | v.append(s[0]) | s = [2, 1]; v = [5, 2] |
c = 0.0; z = 5.119999999999993e-07 | c += z | c = 5.119999999999993e-07; z = 5.119999999999993e-07 |
t = 'ID MARKS NAME CLASS' | t = t.replace(',', ' ').split() | t = ['ID', 'MARKS', 'NAME', 'CLASS'] |
e = [78, 60, 28] | e.pop() | e = [78, 60] |
i = 1; j = 1; r = '14' | j = len(r) - i - 1 | i = 1; j = 0; r = '14' |
j = 1; k = 2; m = [1, 1, 1, 3, 3] | c = m[i] + m[j] + m[k] | c = 3; i = True; j = 1; k = 2; m = [1, 1, 1, 3, 3] |
i = 5; l = [0, 1, 3, 0, 4] | l.append(l[i - 1] ^ i) | i = 5; l = [0, 1, 3, 0, 4, 1] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.