start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
|---|---|---|
e = [[1, 2, 3], [1, 2, 4]]; i = 0; j = 4; k = 5; y = [1, 1, 2, 2, 3, 4]
|
e.append([y[i], y[j], y[k]])
|
e = [[1, 2, 3], [1, 2, 4], [1, 3, 4]]; i = 0; j = 4; k = 5; y = [1, 1, 2, 2, 3, 4]
|
i = 0; z = [1, 2, 3, 1, 6, 10]
|
l += z[i + 1]
|
i = 0; l = 78; z = [1, 2, 3, 1, 6, 10]
|
e = 5
|
e -= 1
|
e = 4
|
u = {2}; v = 2
|
v = u.pop()
|
u = set(); v = 2
|
c = [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, 0, 0, 0, 0, 0]; e = [1, 2, 3, 4, 4]; i = 2
|
c[e[i]] += 1
|
c = [0, 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, 0, 0, 0]; e = [1, 2, 3, 4, 4]; i = 2
|
d = 5; q = 5; t = 5
|
d += q // t
|
d = 6; q = 5; t = 5
|
b = '999'; s = '999100010001'; v = 4
|
b = s[:v]
|
b = '9991'; s = '999100010001'; v = 4
|
s = '99100'; v = 2
|
s = s[v:]
|
s = '100'; v = 2
|
a = '1 91'; b = [1, 20]
|
b = list(map(int, a.split()))
|
a = '1 91'; b = [1, 91]
|
x = 9; y = [0, 1, 3, 0, 4, 1, 7, 0, 8]
|
y.append(y[-1] ^ x)
|
x = 9; y = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1]
|
l = 5; y = 3
|
y += l
|
l = 5; y = 8
|
a = 9; s = 1, -1, 5
|
a += s[2]
|
a = 14; s = (1, -1, 5)
|
c = 't'; u = 117
|
u = ord(c)
|
c = 't'; u = 116
|
i = 2; s = 'abccddd'
|
s = s[:i] + s[i + 2:]
|
i = 2; s = 'abddd'
|
q = 0.0012000000000000001
|
q /= 10
|
q = 0.00012000000000000002
|
s = '5 4 4 2 2 8'
|
s = [int(num) for num in s.split(' ')]
|
s = [5, 4, 4, 2, 2, 8]
|
i = 3
|
s = i - 1
|
i = 3; s = 2
|
x = ['f', 'a', 'i', 'l', 'u', 'h', 'k', 'q', 'q']
|
x.sort()
|
x = ['a', 'f', 'h', 'i', 'k', 'l', 'q', 'q', 'u']
|
f = {(5): 3, (1): 2, (2): 2, (4): 2, (3): 1}; v = 5
|
f[v] = 3
|
f = {5: 3, 1: 2, 2: 2, 4: 2, 3: 1}; v = 5
|
l = [0]; t = 26
|
l.append(t)
|
l = [0, 26]; t = 26
|
t = [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]
|
t[26] += 1
|
t = [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, 1]
|
o = '1 1 3 3 6 8 9 9 10 12 13 16 16 18 20 21 21 22 23 24 25 25 25 27 27 '; x = 30
|
o += str(x) + ' '
|
o = '1 1 3 3 6 8 9 9 10 12 13 16 16 18 20 21 21 22 23 24 25 25 25 27 27 30 '; x = 30
|
p = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71 ]
|
e *= p[k]
|
e = 144.0689369083294; k = -5; p = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71]
|
v = [2, 3, 4]
|
p = v.pop()
|
p = 4; v = [2, 3]
|
h = 122; i = 16, 81, 49; n = [3, 1000]
|
h = sum(i) % n[1]
|
h = 146; i = (16, 81, 49); n = [3, 1000]
|
i = [0, 1, 2, 4, 6, 5, 3]; x = 0
|
z = i[x]
|
i = [0, 1, 2, 4, 6, 5, 3]; x = 0; z = 0
|
a = [1, 4, 5, 3, 2]; i = 1; r = 2; v = {(1): 1}
|
v[a[i]] = r
|
a = [1, 4, 5, 3, 2]; i = 1; r = 2; v = {1: 1, 4: 2}
|
i = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535]; m = 31071
|
i.append(m)
|
i = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535, 31071]; m = 31071
|
v = {6}; y = 5
|
v.add(y)
|
v = {5, 6}; y = 5
|
d = [1, 0]; i = 0; o = -1
|
o = i + d[0]
|
d = [1, 0]; i = 0; o = 1
|
m = [73, 48, 95, 95, 33, 47, 98, 91, 95, 93, 70, 85, 33, 47, 95, 84, 43, 95, 54 ]; x = 72
|
m.append(x)
|
m = [73, 48, 95, 95, 33, 47, 98, 91, 95, 93, 70, 85, 33, 47, 95, 84, 43, 95, 54, 72]; x = 72
|
k = 0.03125; l = 56
|
l = int(k)
|
k = 0.03125; l = 0
|
f = 3
|
f %= 2
|
f = 1
|
e = 1; j = [0, 1]
|
j.append(j[-1] + e)
|
e = 1; j = [0, 1, 2]
|
i = 2; j = 1; k = 2; z = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2], [0, 2, 1], [2, 0, 1], [2, 0, 2], [2, 1, 0], [2, 1, 1]]
|
z.append([i, j, k])
|
i = 2; j = 1; k = 2; z = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2], [0, 2, 1], [2, 0, 1], [2, 0, 2], [2, 1, 0], [2, 1, 1], [2, 1, 2]]
|
a = 'e'; t = ['a', 'e', 'b']
|
t.remove(a)
|
a = 'e'; t = ['a', 'b']
|
a = 1; i = 2; r = 1; v = 0
|
a, r = divmod(v + i, 5)
|
a = 0; i = 2; r = 2; v = 0
|
y = 3
|
i = [0] * y
|
i = [0, 0, 0]; y = 3
|
m = '11111111111111111'
|
m += '1'
|
m = '111111111111111111'
|
a = '00'; h = 0
|
a = str(h) + a
|
a = '000'; h = 0
|
o = [0, 0, 0, 0, 2, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; x = 'g'
|
o = [(x / 2) for x in o]
|
o = [0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 2.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.0, 0.0, 0.0, 0.0]; x = 'g'
|
d = [[1, 2, 3], [4], [1, 2], [1, 2, 3], [4, 5, 6], [1], [1, 2, 3], [4, 5, 6 ], [7, 8, 9]]; n = [10]
|
d.append(n)
|
d = [[1, 2, 3], [4], [1, 2], [1, 2, 3], [4, 5, 6], [1], [1, 2, 3], [4, 5, 6], [7, 8, 9], [10]]; n = [10]
|
c = '('; i = '(A, K)'
|
i = i.replace(c, '')
|
c = '('; i = 'A, K)'
|
q = [2, 1, 5, 3, 4]
|
i = len(q)
|
i = 5; q = [2, 1, 5, 3, 4]
|
i = 5; j = 2; s = [[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, 2, 2, 3], [0, 1, None, None, None, None]]
|
s[i][j] = max(s[i - 1][j], s[i][j - 1])
|
i = 5; j = 2; s = [[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, 2, 2, 3], [0, 1, 2, None, None, None]]
|
r = '10000'
|
r += '0'
|
r = '100000'
|
a = 46
|
a += 1
|
a = 47
|
j = 0; l = [4, 7, 7, 5, 6, 2]
|
l[j + 1] = l[j]
|
j = 0; l = [4, 4, 7, 5, 6, 2]
|
u = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55]
|
u.append(u[-1] + u[-2])
|
u = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
|
a = 'cdefghmnopqrstuvw'; b = ['c', 'd', 'e', 'f', 'g', 'h', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w']; i = 2; n = [1, 1]
|
n.append(a.count(b[i]))
|
a = 'cdefghmnopqrstuvw'; b = ['c', 'd', 'e', 'f', 'g', 'h', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w']; i = 2; n = [1, 1, 1]
|
v = '12'
|
v = int(v)
|
v = 12
|
i = 3; j = 2; s = 9; 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 = 3; j = 2; s = 19; 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]]
|
j = 7; k = 1; w = ['f', 'e', 'd', 'c', 'b', 'a', 'b', 'c', 'd']
|
w[j], w[j + k] = w[j + k], w[j]
|
j = 7; k = 1; w = ['f', 'e', 'd', 'c', 'b', 'a', 'b', 'd', 'c']
|
a = [-7330761, -6461594, -3916237, -3620601, -357920, -20, 30, 266854, 6246457, 7374819]; i = 1
|
s = a[i] - a[i - 1]
|
a = [-7330761, -6461594, -3916237, -3620601, -357920, -20, 30, 266854, 6246457, 7374819]; i = 1; s = 869167
|
f = ['{', '{', '[', '[']
|
f.pop()
|
f = ['{', '{', '[']
|
b = 1; n = 3
|
b = n
|
b = 3; n = 3
|
a = 'il'; i = 1; j = 4; n = 'ifailuhkqq'
|
a = ''.join(sorted(n[j:j + i + 1]))
|
a = 'lu'; i = 1; j = 4; n = 'ifailuhkqq'
|
b = '+'; z = -3 - 5.0j
|
b = '-' if z.imag < 0 else '+'
|
b = '-'; z = (-3-5j)
|
i = {'ive': 1, 'got': 1, 'a': 1}; m = 'lovely'
|
i[m] = 1
|
i = {'ive': 1, 'got': 1, 'a': 1, 'lovely': 1}; m = 'lovely'
|
a = 3; i = 7; j = 'cga'; v = ['a', 't', 'c', 'g', 'a', 't', 'c', 'g', 'a']
|
j = ''.join(v[i:i + a])
|
a = 3; i = 7; j = 'ga'; v = ['a', 't', 'c', 'g', 'a', 't', 'c', 'g', 'a']
|
a = 1; n = 1; p = 0; q = 0; s = 1000000007
|
p = (4 * p + (3 * n + 2) * q + (8 * n + 3) * a) % s
|
a = 1; n = 1; p = 11; q = 0; s = 1000000007
|
m = 10; w = 10; x = 1
|
m += x * w
|
m = 20; w = 10; x = 1
|
f = [1, 3, 3, 4, 5, 6]; j = 0; u = 2
|
f[j + 1] = u
|
f = [1, 2, 3, 4, 5, 6]; j = 0; u = 2
|
i = 2; j = 3; s = 'abba'; x = 'abb'
|
x = ''.join(sorted(s[i:j]))
|
i = 2; j = 3; s = 'abba'; x = 'b'
|
g = 2; p = -1
|
g = p
|
g = -1; p = -1
|
g = 249; n = 15
|
n = int(g ** 0.5)
|
g = 249; n = 15
|
j = 1
|
z = j
|
j = 1; z = 1
|
a = 2147483648; g = 2147483643; t = '1'
|
g += a * int(t)
|
a = 2147483648; g = 4294967291; t = '1'
|
w = 'bcdef'
|
l.append(w)
|
l = ['bcdef']; w = 'bcdef'
|
i = 5; z = [0, 0, 2, 4, 5, 5, 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]
|
z[i + 1] += z[i]
|
i = 5; z = [0, 0, 2, 4, 5, 5, 5, 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]
|
t = ['0', '2', '3']; x = 10
|
x = int(t[2])
|
t = ['0', '2', '3']; x = 3
|
j = 3; s = [2, 2, 2, 2, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
s[j] -= 1
|
j = 3; s = [2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
i = 0; r = ['1', '1', '3', '1', '2']; z = '2'
|
r[i + 1] = z
|
i = 0; r = ['1', '2', '3', '1', '2']; z = '2'
|
b = [0, 1, 0]; i = 2; m = [1, 0]; r = {0}; w = {0, 1}
|
r = w - {b[i], m[-1]}
|
b = [0, 1, 0]; i = 2; m = [1, 0]; r = {1}; w = {0, 1}
|
c = [6, 5, 2]; i = 2; m = 11; x = 2
|
m += c[i] * x
|
c = [6, 5, 2]; i = 2; m = 15; x = 2
|
q = {'a': 1}; s = 'a'
|
q[s] = q.get(s, 0) + 1
|
q = {'a': 2}; s = 'a'
|
i = 0; j = 0; m = [[inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf]]
|
m[i][j] = 0
|
i = 0; j = 0; m = [[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]]
|
h = [[6, '-'], [6, '-'], [4, '-']]; x = [6, '-']
|
h.append(x)
|
h = [[6, '-'], [6, '-'], [4, '-'], [6, '-']]; x = [6, '-']
|
a = [6, 5, 8, 4, 7, 10, 9]; i = 3; l = [6, 5]
|
l.append(a[i])
|
a = [6, 5, 8, 4, 7, 10, 9]; i = 3; l = [6, 5, 4]
|
i = 2; j = [4, -1]; p = {(2): 1, (3): 1}
|
p[j[0]] = i
|
i = 2; j = [4, -1]; p = {2: 1, 3: 1, 4: 2}
|
a = ['9', '9', '910', '91011']; l = ['9', '10', '11', '12']
|
a.append(''.join(l))
|
a = ['9', '9', '910', '91011', '9101112']; l = ['9', '10', '11', '12']
|
b = 'AABBC'; i = 3; s = 'A'
|
s = b[i - 1] if i - 1 in range(len(b)) else ''
|
b = 'AABBC'; i = 3; s = 'B'
|
q = ['2', '4']; y = 3
|
y = int(q[1])
|
q = ['2', '4']; y = 4
|
e = 8; l = [5, 2, 1]
|
l.append(e)
|
e = 8; l = [5, 2, 1, 8]
|
a = -1; b = 5; c = [(6, -1), (7, 8), (-1, 9), (-1, -1), (10, 11), (-1, -1), (-1, -1), (-1, -1) ]
|
b, a = c.pop(0)
|
a = -1; b = 6; c = [(7, 8), (-1, 9), (-1, -1), (10, 11), (-1, -1), (-1, -1), (-1, -1)]
|
i = 1; n = [2, 1]
|
n.append(i)
|
i = 1; n = [2, 1, 1]
|
c = 0; m = 0; n = [[2, 3, 4, 8], [5, 6, 7, 12], [5, 10, 11, 16], [9, 13, 14, 15]]
|
n[c + 1][m] = n[c][m]
|
c = 0; m = 0; n = [[2, 3, 4, 8], [2, 6, 7, 12], [5, 10, 11, 16], [9, 13, 14, 15]]
|
p = 21; s = 36
|
p = s
|
p = 36; s = 36
|
i = [[], [(3, 2), (4, 3)], [(3, 1), (6, 4)], [(4, 1)], [(6, 2)], [(2, 2)]]; u = 5; v = 2; w = 2
|
i[v].append((w, u))
|
i = [[], [(3, 2), (4, 3)], [(3, 1), (6, 4), (2, 5)], [(4, 1)], [(6, 2)], [(2, 2)]]; u = 5; v = 2; w = 2
|
d = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]; i = 8; w = 450
|
w = d[i] - d[i - 1]
|
d = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]; i = 8; w = 50
|
j = 162
|
j += i
|
i = -91; j = 71
|
j = 2
|
j += 1 + int(j == 0)
|
j = 3
|
i = 1; j = 0; z = [[0, 1, 0, 0], [0, 1, 1, 0], [0, 0, 1, 0], [1, 0, 0, 0]]
|
z[j][i] = 0
|
i = 1; j = 0; z = [[0, 0, 0, 0], [0, 1, 1, 0], [0, 0, 1, 0], [1, 0, 0, 0]]
|
i = 2; j = [1, 2, 1, 2, 1, 2, 3, 4, 1, 1]
|
j[-i] = j[-i + 1] + 1
|
i = 2; j = [1, 2, 1, 2, 1, 2, 3, 4, 2, 1]
|
g = 295636; i = 4; p = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]
|
g = abs(p[i - 1] - p[i])
|
g = 3262681; i = 4; p = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]
|
f = [1, 2, 100]
|
f = f[::-1]
|
f = [100, 2, 1]
|
m = 2; o = [1, 1, None, None]; r = 2
|
o[m] = r
|
m = 2; o = [1, 1, 2, None]; r = 2
|
n = [4, 4]; o = 10
|
o -= n[1] - n[0] + 1
|
n = [4, 4]; o = 9
|
d = {'fi': 1, 'af': 1, 'ai': 1}; e = 'il'
|
d[e] = d.setdefault(e, 0) + 1
|
d = {'fi': 1, 'af': 1, 'ai': 1, 'il': 1}; e = 'il'
|
i = 5; j = 6; q = 'h', 'k', 'l', 'q', 'q', 'u'; s = 'ifailuhkqq'
|
q = tuple(sorted(list(s[i:j])))
|
i = 5; j = 6; q = ('u',); s = 'ifailuhkqq'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.