start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
q = [1, 4, 9]; x = 16
|
q.append(x)
|
q = [1, 4, 9, 16]; x = 16
|
c = [50, 13, 2]; i = 2; o = 50
|
o ^= c[i]
|
c = [50, 13, 2]; i = 2; o = 48
|
b = '0'
|
y.append('0' if b == '1' else '1')
|
b = '0'; y = ['1']
|
l = 3; x = [4, 0]
|
x.append(l)
|
l = 3; x = [4, 0, 3]
|
e = 4; s = 1
|
e += s
|
e = 5; s = 1
|
p = 6; x = 10; y = 13
|
p = x ^ y
|
p = 7; x = 10; y = 13
|
g = [0, 1002, 1001, 1000, 999]; h = [0, 1, 1, 1, 999]; i = 0; k = 1; l = [0, 3, 1001, 1000, 999]
|
k = h[i] + g[i + 1] - l[i + 1]
|
g = [0, 1002, 1001, 1000, 999]; h = [0, 1, 1, 1, 999]; i = 0; k = 999; l = [0, 3, 1001, 1000, 999]
|
i = 8; k = [[1, 1, 1], [1, 3, 3]]; r = [[1, 1, 1], [1, 1, 3], [1, 1, 3], [1, 1, 3], [1, 1, 3], [1, 1, 3], [1, 1, 3], [1, 3, 3], [1, 3, 3]]
|
k.append(r[i])
|
i = 8; k = [[1, 1, 1], [1, 3, 3], [1, 3, 3]]; r = [[1, 1, 1], [1, 1, 3], [1, 1, 3], [1, 1, 3], [1, 1, 3], [1, 1, 3], [1, 1, 3], [1, 3, 3], [1, 3, 3]]
|
k = 2; n = 5; s = 'ede'
|
s = alphabet[n - k - 1:n][::-1][:-1] + alphabet[n - k - 1:n]
|
d = 'zu8TVA409Fd6'; k = 2; n = 5; s = 'VT8TV'
|
a = [-2, -3, -1, -4, -6]
|
a.sort(reverse=True)
|
a = [-1, -2, -3, -4, -6]
|
i = 3; l = -16; s = 5
|
l += s * i
|
i = 3; l = -1; s = 5
|
h = {9, 2, 4, 5}; i = {2, 11, 4, 12}
|
d = i.difference(h)
|
d = {11, 12}; h = {9, 2, 4, 5}; i = {2, 11, 4, 12}
|
i = 1; q = 1; x = ['a', 'ab', 'aba', 'b', 'ba']; y = ['a', 'b']
|
q = q + pow(len(x[i]), len(y))
|
i = 1; q = 5.0; x = ['a', 'ab', 'aba', 'b', 'ba']; y = ['a', 'b']
|
s = [1, 3, 3]
|
s.append(1)
|
s = [1, 3, 3, 1]
|
j = 0; k = '9899100'; m = 4; p = '7891011'; s = '9899100'
|
p, k, m = s[:j + 1], s[:j + 1], 0
|
j = 0; k = '9'; m = 0; p = '9'; s = '9899100'
|
e = ['0', '4']; h = 2; y = 1
|
y, h = int(e[0]), int(e[1])
|
e = ['0', '4']; h = 4; y = 0
|
i = 7; l = ['a']; t = 'gfedcbagfedcba'
|
l.append(t[i])
|
i = 7; l = ['a', 'g']; t = 'gfedcbagfedcba'
|
d = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 20), ('CANDY', 20)]); l = 'POTATO CHIPS'; p = '30'
|
d[l] = d[l] + int(p)
|
d = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 60), ('APPLE JUICE', 20), ('CANDY', 20)]); l = 'POTATO CHIPS'; p = '30'
|
l = 8
|
l = l - 1
|
l = 7
|
i = 0
|
h = i + 1
|
h = 1; i = 0
|
d = 4; i = 1; j = 7; l = [2, 4, 5, 6, 7, 9, 11, 12]
|
j = l[i + d]
|
d = 4; i = 1; j = 9; l = [2, 4, 5, 6, 7, 9, 11, 12]
|
a = 'b'; z = {'a': 2}
|
z[a] = 1
|
a = 'b'; z = {'a': 2, 'b': 1}
|
n = 111; v = 22
|
v -= n
|
n = 111; v = -89
|
l = 5; r = [2.5]; x = 5
|
r.append(l / float(x))
|
l = 5; r = [2.5, 1.0]; x = 5
|
y = ['10', '1', '2', '3', '11', '21', '55', '6', '8']
|
y = set(y)
|
y = {'10', '6', '21', '11', '3', '55', '8', '2', '1'}
|
i = 7; l = 3; s = 'ifailuhkqq'; y = 'hkq'
|
y = list(s[i:i + l])
|
i = 7; l = 3; s = 'ifailuhkqq'; y = ['k', 'q', 'q']
|
a = 'aba'; j = 0; k = 3; p = 'ab'
|
p = a[j:k]
|
a = 'aba'; j = 0; k = 3; p = 'aba'
|
j = 2; r = [4, 2, 9, 10, 1]; s = 2
|
s += r[j]
|
j = 2; r = [4, 2, 9, 10, 1]; s = 11
|
k = [1]; s = 1
|
k.append(s)
|
k = [1, 1]; s = 1
|
a = [[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 = 3; j = 2; l = 0
|
l = a[i + 1][j + 1]
|
a = [[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 = 3; j = 2; l = 2
|
i = [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]; r = 'b'
|
i[ord(r) - 97] += 1
|
i = [1, 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]; r = 'b'
|
i = 4
|
w = i
|
i = 4; w = 4
|
n = 1.2000000000000007e-42
|
n = n / 10
|
n = 1.2000000000000007e-43
|
i = 3; t = [1, 4, 6]; y = [1, 3, 3, 1]
|
t += [(y[i - 1] + y[i]) % 10 ** 9]
|
i = 3; t = [1, 4, 6, 4]; y = [1, 3, 3, 1]
|
i = 0; p = [4, 3, 5, 1, 2]
|
x = p.index(p.index(i + 1) + 1) + 1
|
i = 0; p = [4, 3, 5, 1, 2]; x = 1
|
h = 3; i = 4
|
h = i
|
h = 4; i = 4
|
g = {'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0, 'f': 0, 'g': 0}; z = 'h'
|
g[z] = 0
|
g = {'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0, 'f': 0, 'g': 0, 'h': 0}; z = 'h'
|
e = ['i', 'l']
|
e = ''.join(e)
|
e = 'il'
|
b = '10011111'; l = 8
|
b = list('0' * (l - len(b)) + b)
|
b = ['1', '0', '0', '1', '1', '1', '1', '1']; l = 8
|
c = {(1): 1, (4): 1}; e = 4
|
c[e] += 1
|
c = {1: 1, 4: 2}; e = 4
|
h = 0; l = 'b'
|
h = ord(l) - ord('a')
|
h = 1; l = 'b'
|
a = 'xyyx'; b = ['m', 'n']; m = 2
|
b = list(a[0:m])
|
a = 'xyyx'; b = ['x', 'y']; m = 2
|
d = 102; i = 'ok'
|
i += chr(d)
|
d = 102; i = 'okf'
|
i = 0; s = ['a', 'b']
|
l = s[i]
|
i = 0; l = 'a'; s = ['a', 'b']
|
i = 20; t = [1, 1, 3, 3, 6, 8, 9, 9, 10, 12, 13, 16, 16, 18]
|
t.append(i)
|
i = 20; t = [1, 1, 3, 3, 6, 8, 9, 9, 10, 12, 13, 16, 16, 18, 20]
|
h = [1, 2, 1, 2, 1, 2, 3, 3, 2, 1]; i = 7
|
h[i] = max(h[i], h[i + 1] + 1, h[i - 1] + 1)
|
h = [1, 2, 1, 2, 1, 2, 3, 4, 2, 1]; i = 7
|
l = [1, 1, 1]; x = 0
|
l[x + 1] = l[x] + 1
|
l = [1, 2, 1]; x = 0
|
q = [1]; r = 5
|
q.append(r)
|
q = [1, 5]; r = 5
|
i = 'd'; z = {'a': 2, 'b': 2, 'c': 2, 'd': 1}
|
z[i] += 1
|
i = 'd'; z = {'a': 2, 'b': 2, 'c': 2, 'd': 2}
|
k = 1
|
k -= 5
|
k = -4
|
j = 4; w = 'c'; z = ['a', 'b', 'c', 'e', 'd']
|
w = z[j]
|
j = 4; w = 'd'; z = ['a', 'b', 'c', 'e', 'd']
|
i = 1; j = [1, 1, 4, 1, 1]
|
k += j[i - 1]
|
i = 1; j = [1, 1, 4, 1, 1]; k = -55
|
k = '99910'; m = 2; p = '9991099911'
|
p += str(int(k) + m)
|
k = '99910'; m = 2; p = '999109991199912'
|
i = 3; x = {(0): [], (1): [], (2): []}
|
x[i] = []
|
i = 3; x = {0: [], 1: [], 2: [], 3: []}
|
c = 45; n = 55
|
n += c
|
c = 45; n = 100
|
l = [2, 1]; s = 1; v = 0
|
v = l.index(max(l[s:]))
|
l = [2, 1]; s = 1; v = 1
|
e = [0, 0, 0, 0, 0, 0]; i = 1; q = 2
|
e[q] = i
|
e = [0, 0, 1, 0, 0, 0]; i = 1; q = 2
|
j = 0; v = [0, 0, 0]
|
v.append(j)
|
j = 0; v = [0, 0, 0, 0]
|
i = 4; s = {(1): [], (2): [], (3): []}
|
s[i] = []
|
i = 4; s = {1: [], 2: [], 3: [], 4: []}
|
q = 6; x = 5
|
q = x
|
q = 5; x = 5
|
c = 6; g = 10
|
x = g / c
|
c = 6; g = 10; x = 1.6666666666666667
|
f = 5; n = 3; w = 8
|
w = n + f
|
f = 5; n = 3; w = 8
|
j = 7
|
j = j + 1
|
j = 8
|
i = 2; s = [1, 2, 3, 1, 6, 10]; t = 5; w = 2
|
t = sum(s[i:i + w])
|
i = 2; s = [1, 2, 3, 1, 6, 10]; t = 4; w = 2
|
p = 2
|
t *= p
|
p = 2; t = 108
|
r = deque(['{']); s = '{'
|
r.append(s)
|
r = deque(['{', '{']); s = '{'
|
c = [20, 20, 30, 50, 20]; m = 20
|
c.remove(m)
|
c = [20, 30, 50, 20]; m = 20
|
l = [2, -1, 2, 3, 4, -5]; p = 10
|
p = sum([x for x in l if x > 0])
|
l = [2, -1, 2, 3, 4, -5]; p = 11
|
v = 3; z = 'aac'
|
v = len(z)
|
v = 3; z = 'aac'
|
p = 2
|
p += 1
|
p = 3
|
h = 7; i = 1; n = 7
|
h = n - i * 4
|
h = 3; i = 1; n = 7
|
n = [False, False, False, False, False]; x = 0
|
n[x] = True
|
n = [True, False, False, False, False]; x = 0
|
i = 1
|
a = i
|
a = 1; i = 1
|
q = 1; s = 2
|
q = s
|
q = 2; s = 2
|
c = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30)]); p = ['APPLE', 'JUICE', '10']
|
c[' '.join(p[:-1])] = c.get(' '.join(p[:-1]), 0) + int(p[-1])
|
c = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 10)]); p = ['APPLE', 'JUICE', '10']
|
c = deque(['b', 'd', 'd', 'd']); h = 'a'
|
h = c.popleft()
|
c = deque(['d', 'd', 'd']); h = 'b'
|
b = 2
|
b = b + 1
|
b = 3
|
j = 4; u = 3
|
u += j
|
j = 4; u = 7
|
i = 0
|
c = i
|
c = 0; i = 0
|
n = [0, 0]; x = 0
|
n += [x]
|
n = [0, 0, 0]; x = 0
|
x = 154742504910672534362390528
|
x *= 2
|
x = 309485009821345068724781056
|
f = 5
|
f += 1
|
f = 6
|
t = [(0, '-'), (6, '-'), (0, '-'), (6, '-'), (4, '-'), (0, '-')]; u = ['6', 'cd']
|
t.append((int(u[0]), '-'))
|
t = [(0, '-'), (6, '-'), (0, '-'), (6, '-'), (4, '-'), (0, '-'), (6, '-')]; u = ['6', 'cd']
|
f = [5, 2]; s = [1, 1]
|
f.append(s[0])
|
f = [5, 2, 1]; s = [1, 1]
|
i = 5; m = [0, 1, 3, 4, 5, 6, 8, 9, 12]
|
e = m[i]
|
e = 6; i = 5; m = [0, 1, 3, 4, 5, 6, 8, 9, 12]
|
a = ['gurwgrb', 'maqz']; n = 'holpkhqx',
|
a.append(''.join(n))
|
a = ['gurwgrb', 'maqz', 'holpkhqx']; n = ('holpkhqx',)
|
h = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; i = 0; s = 4
|
b = h[i + s - 1] - h[i]
|
b = 3; h = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; i = 0; s = 4
|
a = 2; j = 7
|
j = a + (j - a) % 5
|
a = 2; j = 2
|
q = 0; x = 0
|
n = q - x
|
n = 0; q = 0; x = 0
|
a = 16; b = 7
|
b = a % b
|
a = 16; b = 2
|
a = [1, 1]; x = 2
|
a[x % len(a)] += 1
|
a = [2, 1]; x = 2
|
d = 3; l = [9, 6, 11, 4]; t = 4
|
l.append(t + d)
|
d = 3; l = [9, 6, 11, 4, 7]; t = 4
|
j = [97]
|
j.pop()
|
j = []
|
l = '55555533'
|
l += '3'
|
l = '555555333'
|
c = ['y', 'x']; p = 'x'
|
c.remove(p)
|
c = ['y']; p = 'x'
|
a = 2, [1, 6]; i = [(3, [1, 6, 1]), (3, [1, 1, 6]), (300000, [])]
|
a = min(i)
|
a = (3, [1, 1, 6]); i = [(3, [1, 6, 1]), (3, [1, 1, 6]), (300000, [])]
|
b = ['1', '5']
|
k = int(b[1])
|
b = ['1', '5']; k = 5
|
x = 2; y = 2
|
x, y = y, x % y
|
x = 2; y = 0
|
c = 5; x = 8
|
c = x
|
c = 8; x = 8
|
a = 1000; g = 153; w = 170
|
g = w % a
|
a = 1000; g = 170; w = 170
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.