start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
g = [1, 3, 4, 5, 6, 2]; i = 5 | g[i] = g[i - 1] | g = [1, 3, 4, 5, 6, 6]; i = 5 |
c = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42]; i = 1; u = 3 | u = c[i] | c = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42]; i = 1; u = 4 |
v = '{'; z = ['{'] | v = z.pop() | v = '{'; z = [] |
i = 0; w = ['9', '6', '2015'] | h.append(int(w[i])) | h = [9]; i = 0; w = ['9', '6', '2015'] |
n = 5 | b = [1000000000] * n | b = [1000000000, 1000000000, 1000000000, 1000000000, 1000000000]; n = 5 |
k = 0; q = ['e', 'b', 'a', 'c', 'd'] | q[k + 1] = q[k] | k = 0; q = ['e', 'e', 'a', 'c', 'd'] |
u = 2 | u = u // 2 | u = 1 |
c = ']'; i = 5; s = '{[()]}' | c = s[i] | c = '}'; i = 5; s = '{[()]}' |
j = 5; l = [3, 4, 1, 0, 2]; x = 2 | j = l[x] + 1 | j = 2; l = [3, 4, 1, 0, 2]; x = 2 |
m = 0; n = 2; q = deque([]) | q.append((n, m + 1)) | m = 0; n = 2; q = deque([(2, 1)]) |
c = 2; i = 7; t = 43105770; w = 'ifailuhkqq' | t -= (c + 1) ** (ord(w[i]) - ord('a')) | c = 2; i = 7; t = 43046721; w = 'ifailuhkqq' |
f = ['c', 'b', 'a']; x = 'b' | x = f[0] | f = ['c', 'b', 'a']; x = 'c' |
i = 0; n = [3, 1] | n = n[:i] | i = 0; n = [] |
v = 1.2000000000000011e-76 | v = v / 10 | v = 1.2000000000000011e-77 |
t = 10 | t += 1 | t = 11 |
i = 3; j = 3; m = ['h', 'e', 'f', 'g'] | m[i - 1], m[j] = m[j], m[i - 1] | i = 3; j = 3; m = ['h', 'e', 'g', 'f'] |
g = OrderedDict([('BANANA FRIES', 12)]); r = 30; v = 'POTATO CHIPS' | g[v] = r | g = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30)]); r = 30; v = 'POTATO CHIPS' |
g = ['i came from', 'the moon he', 'went to the', 'other room she', 'went to the', 'drawing room ']; o = ['came', 'from', 'the'] | g.append(' '.join(o)) | g = ['i came from', 'the moon he', 'went to the', 'other room she', 'went to the', 'drawing room ', 'came from the']; o = ['came', 'from', 'the'] |
i = '1'; p = [1, 2, 1, 1, 1, 2] | p.append(int(i)) | i = '1'; p = [1, 2, 1, 1, 1, 2, 1] |
s = [2, 3, 4] | x = sum(s) | s = [2, 3, 4]; x = 9 |
i = 2; j = 1; p = 5; q = [2, 1, 3, 4, 4] | q[i + j + 1] = p | i = 2; j = 1; p = 5; q = [2, 1, 3, 4, 5] |
c = [[1, 3], [3, 4], [2, 4]]; v = [1, 2] | c.append(v) | c = [[1, 3], [3, 4], [2, 4], [1, 2]]; v = [1, 2] |
d = {'data': 7, 'left': None, 'right': None, 'height': 4}; w = [{'data': 6, 'left': None, 'right': 8, 'height': 4}] | w.append(d) | d = {'data': 7, 'left': None, 'right': None, 'height': 4}; w = [{'data': 6, 'left': None, 'right': 8, 'height': 4}, {'data': 7, 'left': None, 'right': None, 'height': 4}] |
v = 3; w = [2] | w.append(v) | v = 3; w = [2, 3] |
a = [10, 3]; i = 4; z = 3 | z += i % a[1] | a = [10, 3]; i = 4; z = 4 |
b = 3 | w = b | b = 3; w = 3 |
u = '11010000' | u += '0' | u = '110100000' |
a = 8 | a += 1 | a = 9 |
k = '100'; n = '999100010001'; s = 1; v = 2 | k = n[s:s + v] | k = '99'; n = '999100010001'; s = 1; v = 2 |
k = [4, 2, 3, 6, 8] | k.sort() | k = [2, 3, 4, 6, 8] |
j = 9; k = 3; o = 3 | j += (k % 100) ** (o % 100) | j = 36; k = 3; o = 3 |
s = 233; t = 377 | s = t | s = 377; t = 377 |
e = '15'; k = '15' | e, k = [int(e), int(k)] | e = 15; k = 15 |
i = 9; j = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42]; l = 36 | l = j[i] | i = 9; j = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42]; l = 42 |
h = 16; i = 2; j = 2; m = [[11, 2, 4], [4, 5, 6], [10, 8, -12]] | h += m[i][j] | h = 4; i = 2; j = 2; m = [[11, 2, 4], [4, 5, 6], [10, 8, -12]] |
b = 'cd'; y = {'cd': 1} | y[b] += 1 | b = 'cd'; y = {'cd': 2} |
c = 'F'; d = {'D': 2, '_': 2} | d[c] = 0 | c = 'F'; d = {'D': 2, '_': 2, 'F': 0} |
t = 2; x = 2 | c = x / t | c = 1.0; t = 2; x = 2 |
c = '0'; z = '9100010' | z += c | c = '0'; z = '91000100' |
b = ['M', '1', '2'] | j = int(b[2]) | b = ['M', '1', '2']; j = 2 |
a = 2, 8; b = 0, 20; t = 1 | t = a[1] - b[1] | a = (2, 8); b = (0, 20); t = -12 |
a = [2, 1, 3]; j = 0 | a[j] = a[j + 1] | a = [1, 1, 3]; j = 0 |
i = 1; j = 1; r = 289; x = 3; z = [[112, 42, 83, 119], [56, 125, 56, 49], [15, 78, 101, 43], [62, 98, 114, 108]] | r = r + max([z[i][j], z[i][x - j], z[x - i][x - j], z[x - i][j]]) | i = 1; j = 1; r = 414; x = 3; z = [[112, 42, 83, 119], [56, 125, 56, 49], [15, 78, 101, 43], [62, 98, 114, 108]] |
a = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 20), ('CANDY', 20)]); b = ['POTATO', 'CHIPS', '30']; m = 'POTATO CHIPS' | a[m] = a[m] + int(b[len(b) - 1]) | a = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 60), ('APPLE JUICE', 20), ('CANDY', 20)]); b = ['POTATO', 'CHIPS', '30']; m = 'POTATO CHIPS' |
i = 7 | i = i - 1 | i = 6 |
u = [(-1, -1)]; x = -1, 0 | u.append(x) | u = [(-1, -1), (-1, 0)]; x = (-1, 0) |
f = [[1, 8, 3, 4], [5, 2, 3, 1], [3, 6, 2, 2]]; g = [6, 16, 22]; i = 1; j = 3; m = [[1, 9, 12, 16]] | g.append(m[i - 1][j] + g[j - 1] - m[i - 1][j - 1] + f[i][j]) | f = [[1, 8, 3, 4], [5, 2, 3, 1], [3, 6, 2, 2]]; g = [6, 16, 22, 27]; i = 1; j = 3; m = [[1, 9, 12, 16]] |
g = [3, 2, 1, 1, 1]; o = [8, 5, 7] | o[0] = o[0] - g.pop(0) | g = [2, 1, 1, 1]; o = [5, 5, 7] |
k = ['e', 'e', 'd', 'e', 'd', 'd', 'e', 'e', 'd', 'e', 'd', 'e'] | k.reverse() | k = ['e', 'd', 'e', 'd', 'e', 'e', 'd', 'd', 'e', 'd', 'e', 'e'] |
t = 14 | t = int(t / 2) | t = 7 |
c = 3; w = 2; y = 1 | w += (c - 1) * y | c = 3; w = 4; y = 1 |
a = [2, 2, 3]; u = 3 | u = a[0] | a = [2, 2, 3]; u = 2 |
j = 3 | j = j - 1 | j = 2 |
a = 4; j = 4; o = 7 | o = j + a | a = 4; j = 4; o = 8 |
x = [58, '+'] | x[1] = None | x = [58, None] |
i = 5; x = 2 | i = x + 1 | i = 3; x = 2 |
b = 7; w = 3; z = 7 | b = z - w | b = 4; w = 3; z = 7 |
i = 0; x = 4 | x = i | i = 0; x = 0 |
j = 1 | k = j | j = 1; k = 1 |
l = 1; n = 0 | n += l | l = 1; n = 1 |
p = '10' | p = str(int(p) + 1) | p = '11' |
w = '1002' | w = str(int(w) + 1) | w = '1003' |
o = 2; r = [0, 1, 2, 4, 6, 5, 3]; x = 1 | x = r[o] | o = 2; r = [0, 1, 2, 4, 6, 5, 3]; x = 2 |
e = 3; o = [0, 0, 0]; t = [1, 2, 100] | o[e - 1] = t[e - 1] | e = 3; o = [0, 0, 100]; t = [1, 2, 100] |
i = 3; m = 1; x = 9 | m = x // i | i = 3; m = 3; x = 9 |
s = ['HACK', '2'] | k = int(s[1]) | k = 2; s = ['HACK', '2'] |
s = ['12', '4', '4'] | s = list(map(int, s)) | s = [12, 4, 4] |
a = 2; j = 2 | j = a | a = 2; j = 2 |
m = 1836311903; x = 2971215073 | m = x | m = 2971215073; x = 2971215073 |
i = 1; j = 3; m = [1, 3, 2, 6, 1, 2]; r = 5 | r = m[i] + m[j] | i = 1; j = 3; m = [1, 3, 2, 6, 1, 2]; r = 9 |
a = '1 78'; b = [1, 60] | b = list(map(int, a.split())) | a = '1 78'; b = [1, 78] |
i = 4; j = 4; u = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 1], [0, 0, 0, 2, 2, 2], [0, 1, 1, 2, 2, 3], [0, 1, 2, 0, 0, 0], [0, 0, 0, 0, 0, 0]] | u[i][j] = max(u[i - 1][j], u[i][j - 1]) | i = 4; j = 4; u = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 1], [0, 0, 0, 2, 2, 2], [0, 1, 1, 2, 2, 3], [0, 1, 2, 0, 2, 0], [0, 0, 0, 0, 0, 0]] |
b = 7; s = [1, 2, 3, 21, 7, 12, 14, '21'] | s[b] = int(s[b]) | b = 7; s = [1, 2, 3, 21, 7, 12, 14, 21] |
i = 61; x = 3600 | x = i * i | i = 61; x = 3721 |
i = 3; s = 'abccddd' | s = s[0:i - 1] + s[i + 1:len(s)] | i = 3; s = 'abddd' |
w = 44; z = 10 | w -= z | w = 34; z = 10 |
o = 3; x = 2; y = 1 | u += min(y * (o - 1) + x, x * o) | o = 3; u = -64; x = 2; y = 1 |
p = 27; v = 9 | v = p | p = 27; v = 27 |
h = [0, 1, 0] | h.append(h[-1] - 1) | h = [0, 1, 0, -1] |
i = 1; l = 1; m = [0, 2, 3, 2, 2, 1] | m[i] -= l | i = 1; l = 1; m = [0, 1, 3, 2, 2, 1] |
i = 1; o = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; t = 3; w = 4 | t = o[i + w - 1] - o[i] | i = 1; o = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; t = 8; w = 4 |
f = [0, 6, 6] | f = f[1:] | f = [6, 6] |
m = 2; s = 2; t = 2 | m = s + t - 1 | m = 3; s = 2; t = 2 |
a = [[0, '-'], [6, '-'], [0, '-'], [6, '-'], [4, '-'], [0, '-'], [6, '-'], [0, '-'], [6, '-'], [0, 'ij']]; i = 9 | a[i][1] = '-' | a = [[0, '-'], [6, '-'], [0, '-'], [6, '-'], [4, '-'], [0, '-'], [6, '-'], [0, '-'], [6, '-'], [0, '-']]; i = 9 |
x = 3 | x += 1 | x = 4 |
i = 0; j = 0; r = 0, 0 | i, j = r | i = 0; j = 0; r = (0, 0) |
m = 3 | m = m + 1 | m = 4 |
d = 'M', '1', '2' | i = int(d[1]) - 1 | d = ('M', '1', '2'); i = 0 |
n = ['i', 'f', 'a', 'i', 'l'] | n.sort() | n = ['a', 'f', 'i', 'i', 'l'] |
h = [-1, 0, 1, -1, -1]; i = 3; v = 2 | h[i] = v | h = [-1, 0, 1, 2, -1]; i = 3; v = 2 |
i = 0 | x = i + 1 | i = 0; x = 1 |
c = '5'; w = '5' | c, w = [int(c), int(w)] | c = 5; w = 5 |
r = ( 'In the third category he included those Brothers...eemasonry but the external forms and ceremonies, ' ); x = 'and' | r += x + ' ' | r = 'In the third category he included those Brothers...eemasonry but the external forms and ceremonies, and '; x = 'and' |
t = ['Harry', 'Berry'] | t.sort() | t = ['Berry', 'Harry'] |
j = [2, 5, 6] | j.sort(reverse=True) | j = [6, 5, 2] |
a = [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]; i = 0 | a[i + 1] = a[i] ^ i + 1 | a = [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]; i = 0 |
e = 6 | l = e | e = 6; l = 6 |
c = 2; w = {(1): 2} | w[c] = 1 | c = 2; w = {1: 2, 2: 1} |
g = 70 | g += 1 | g = 71 |
s = 3; x = '2\n' | s += int(x) | s = 5; x = '2\n' |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.