start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
h = 1; j = 2
|
h = j
|
h = 2; j = 2
|
d = [1, 2, 3, 3]; f = 8; j = 1
|
f = f - d[j]
|
d = [1, 2, 3, 3]; f = 6; j = 1
|
l = 1; q = 3.141592653589793
|
t = int(q * l)
|
l = 1; q = 3.141592653589793; t = 3
|
h = ['1', '0', '0', '0', '0']
|
h.reverse()
|
h = ['0', '0', '0', '0', '1']
|
d = 4; m = [5]; q = [1, 2, 3, 4, 5]
|
m.extend(q[:d])
|
d = 4; m = [5, 1, 2, 3, 4]; q = [1, 2, 3, 4, 5]
|
c = 'b'; d = 'a'
|
d = c
|
c = 'b'; d = 'b'
|
e = 'ababaa '; j = 1; k = 0; w = 'ababaa '
|
w = e[j:len(e) - k]
|
e = 'ababaa '; j = 1; k = 0; w = 'babaa '
|
b = 999; w = 100
|
w = b + 1
|
b = 999; w = 1000
|
e = 2; f = 99; l = 3; t = 99
|
t = f - e ** l
|
e = 2; f = 99; l = 3; t = 91
|
i = 55
|
i += 1
|
i = 56
|
a = [-1, -1, -1, -1]; i = 1; r = 3
|
a[i] = r
|
a = [-1, 3, -1, -1]; i = 1; r = 3
|
a = {'c': 1, 'd': 1, 'e': 1, 'a': 0}; x = 'b'
|
a[x] = 0
|
a = {'c': 1, 'd': 1, 'e': 1, 'a': 0, 'b': 0}; x = 'b'
|
x = 100; z = 2
|
x += z
|
x = 102; z = 2
|
i = 'a'
|
g.append(ord(i) - 96)
|
g = [1]; i = 'a'
|
b = ['me', 'grand', 'today', 'night']; k = ['me', 'grand', 'today', 'night']; x = 'grand'
|
k.remove(x)
|
b = ['me', 'grand', 'today', 'night']; k = ['me', 'today', 'night']; x = 'grand'
|
b = ['2', '3', '4', '1', '5', '6', '7', '8']; e = 5; w = 3
|
del b[w - 1:e]
|
b = ['2', '3', '6', '7', '8']; e = 5; w = 3
|
n = [0, 0, 1, 2, 4, 0]; p = [[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]]
|
p.append(n)
|
n = [0, 0, 1, 2, 4, 0]; p = [[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]]
|
n = ['h', 'i', 'l', 'u']
|
n = ''.join(n)
|
n = 'hilu'
|
c = '3'; o = ['31415926535897932384626433832795', '1', '3', '10']
|
o.append(c)
|
c = '3'; o = ['31415926535897932384626433832795', '1', '3', '10', '3']
|
j = 1; l = [7]
|
l.append(j)
|
j = 1; l = [7, 1]
|
v = []; w = [[], ['a', 'b', 'c']]
|
w.append(v[:])
|
v = []; w = [[], ['a', 'b', 'c'], []]
|
b = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; m = 3; x = 2; y = 2
|
m = b[y][x]
|
b = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; m = 4; x = 2; y = 2
|
c = 58; i = 2
|
c += i
|
c = 60; i = 2
|
d = [2, 2]; p = [1, 1]
|
p = d[:(len(d) + 1) // 2]
|
d = [2, 2]; p = [2]
|
p = 5; v = [('b', 'a'), ('b', 'f'), ('b', 'e'), ('a', 'f'), ('a', 'e'), ('f', 'e')]; z = 'a', 'e'
|
z = v[p]
|
p = 5; v = [('b', 'a'), ('b', 'f'), ('b', 'e'), ('a', 'f'), ('a', 'e'), ('f', 'e')]; z = ('f', 'e')
|
e = [1, 0, 0, 1, 0, 0, 0]; j = 5
|
e[j] = 1
|
e = [1, 0, 0, 1, 0, 1, 0]; j = 5
|
n = [['73', '72', '76'], ['48', '67', '76'], ['95', '92', '95'], ['95', '92', '100'], ['54', '80', '87'], ['72', '76', '90']]
|
x = [int(a[0]) for a in n]
|
n = [['73', '72', '76'], ['48', '67', '76'], ['95', '92', '95'], ['95', '92', '100'], ['54', '80', '87'], ['72', '76', '90']]; x = [73, 48, 95, 95, 54, 72]
|
d = -1; e = 0; k = 4; s = 25; t = 170
|
t += k * s * pow(2, d) * pow(2, e)
|
d = -1; e = 0; k = 4; s = 25; t = 220.0
|
e = 'cdcd'; i = 1; j = 3; l = 'dc'
|
l = e[i:i + j]
|
e = 'cdcd'; i = 1; j = 3; l = 'dcd'
|
j = 2; n = 9; y = 64
|
y = n * j
|
j = 2; n = 9; y = 18
|
i = 2; r = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42]; v = 4
|
v = r[i]
|
i = 2; r = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42]; v = 21
|
a = 2; h = ['3', '2']
|
a = int(h[1].strip()) - 1
|
a = 1; h = ['3', '2']
|
b = '1'; z = ['1']
|
z.append('0' if b == '1' else '1')
|
b = '1'; z = ['1', '0']
|
n = 5
|
p = n - 1
|
n = 5; p = 4
|
e = 'bb'; i = 0; m = ''
|
m = e[:i]
|
e = 'bb'; i = 0; m = ''
|
c = ['f', 'a']
|
c.sort()
|
c = ['a', 'f']
|
y = ['1', '2', '100']
|
p = int(y[1])
|
p = 2; y = ['1', '2', '100']
|
b = 3
|
g = [-1] * (b + 1)
|
b = 3; g = [-1, -1, -1, -1]
|
g = '1\n'; y = [3]
|
y.append(int(g))
|
g = '1\n'; y = [3, 1]
|
i = 9; k = 223092870; y = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97]
|
k *= y[i]
|
i = 9; k = 6469693230; y = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97]
|
j = 5; m = {'\n': 0, 'a': 1, 'e': 2, 'i': 2, 'o': 2, 'u': 0}; r = '\naeiouuoiea'
|
m[r[j]] += 1
|
j = 5; m = {'\n': 0, 'a': 1, 'e': 2, 'i': 2, 'o': 2, 'u': 1}; r = '\naeiouuoiea'
|
j = 1
|
j -= 1
|
j = 0
|
c = {(2): 0}; i = 1; m = [2, 1, 3]
|
c[m[i]] = i
|
c = {2: 0, 1: 1}; i = 1; m = [2, 1, 3]
|
q = '011110000011000'; s = '1'
|
q += '0' if s == '1' else '1'
|
q = '0111100000110000'; s = '1'
|
l = [(5, 2)]; n = 1; x = 8
|
l.append((x, n))
|
l = [(5, 2), (8, 1)]; n = 1; x = 8
|
e = 1; n = 1; v = [1, 3, 4, 3, 3, 2, 1]
|
v[n] -= e
|
e = 1; n = 1; v = [1, 2, 4, 3, 3, 2, 1]
|
g = ['1', '0', '0', '1', '1', '1', '1', '1']; i = 0
|
g[i] = '0'
|
g = ['0', '0', '0', '1', '1', '1', '1', '1']; i = 0
|
j = 'a_'
|
j = j.split('_')
|
j = ['a', '']
|
c = '['; u = ['{', '{', '[']
|
u.append(c)
|
c = '['; u = ['{', '{', '[', '[']
|
h = [['D', 2, 1], ['_', 1, 0]]; n = ['_', 1, 0]; x = ['_', 1, 0]
|
x[1] += 1
|
h = [['D', 2, 1], ['_', 1, 0]]; n = ['_', 1, 0]; x = ['_', 2, 0]
|
b = [1, 3]; f = [1, 3]; i = 2
|
i = f.index(b[-1])
|
b = [1, 3]; f = [1, 3]; i = 1
|
s = ' #'; w = 4
|
s = s + ' ' * w
|
s = ' # '; w = 4
|
c = [1]; d = [(7.5, 1), (7.7, 2), (7.9, 3), (8.1, 4), (8.3, 5)]; i = 1
|
c.append(d[i][1])
|
c = [1, 2]; d = [(7.5, 1), (7.7, 2), (7.9, 3), (8.1, 4), (8.3, 5)]; i = 1
|
p = '\n'
|
p = [int(x) for x in p.split()]
|
p = []
|
i = 1; o = [999, 1, 2, 1, 0]
|
o[i] = o[i] + o[i + 1]
|
i = 1; o = [999, 3, 2, 1, 0]
|
i = 0; j = 'AABBB'
|
j = j[:i + 1] + j[i + 2:]
|
i = 0; j = 'ABBB'
|
x = [0, 1, 1, 2]
|
x.append(x[-1] + x[-2])
|
x = [0, 1, 1, 2, 3]
|
a = '111'; n = ['1', '2', '100', '12303479849857341718340192371', '3084193741082937', '3084193741082938']
|
n.append(a)
|
a = '111'; n = ['1', '2', '100', '12303479849857341718340192371', '3084193741082937', '3084193741082938', '111']
|
y = ['55', '3', '45', '33', '25']
|
g = y[0]
|
g = '55'; y = ['55', '3', '45', '33', '25']
|
v = 'wemust'
|
v = v[0:len(v) - 1]
|
v = 'wemus'
|
i = 0; j = 0; q = [2, 1, 3, 4, 5]
|
q[i + j] = q[i + j + 1]
|
i = 0; j = 0; q = [1, 1, 3, 4, 5]
|
i = 0
|
n = i
|
i = 0; n = 0
|
j = 7; m = [0, 1, 2, 3, 4, 5, 6, inf]; o = 7
|
m[j] = o
|
j = 7; m = [0, 1, 2, 3, 4, 5, 6, 7]; o = 7
|
b = 'abaab'
|
s = len(b)
|
b = 'abaab'; s = 5
|
i = [7.5, 7.7, 7.9, 8.1, 8.3]; x = [1, 2, 3, 4, 5]
|
w = list(zip(i, x))
|
i = [7.5, 7.7, 7.9, 8.1, 8.3]; w = [(7.5, 1), (7.7, 2), (7.9, 3), (8.1, 4), (8.3, 5)]; x = [1, 2, 3, 4, 5]
|
a = 5; k = 2; n = 3
|
n = a + k
|
a = 5; k = 2; n = 7
|
g = 1; m = [1, 2, 4]; o = 1
|
g += m[o] - m[o - 1]
|
g = 2; m = [1, 2, 4]; o = 1
|
h = 2; i = 3; j = [1, 1, 2, 3, 3]
|
j[i] = h
|
h = 2; i = 3; j = [1, 1, 2, 2, 3]
|
m = [0, 1, 2, 4, 6, 5, 3]; p = 3; y = 2
|
y = m[p]
|
m = [0, 1, 2, 4, 6, 5, 3]; p = 3; y = 4
|
j = 9
|
j += 1
|
j = 10
|
u = 23
|
u = u + 1
|
u = 24
|
d = [1, 1, 1, 2, 1, 3]; i = 2; r = 2
|
r += d[i]
|
d = [1, 1, 1, 2, 1, 3]; i = 2; r = 3
|
p = [2, 1, 3]
|
m = sorted(p, reverse=True)
|
m = [3, 2, 1]; p = [2, 1, 3]
|
i = ['0', '2']; t = ['0']; w = 0
|
t.append(i[1 - w])
|
i = ['0', '2']; t = ['0', '2']; w = 0
|
c = 'd'; h = [2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
h[ord(c) - 97] += 1
|
c = 'd'; h = [2, 2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
j = 5; k = 4; q = 24
|
q = 4 * 9 + 2 * (9 - j) - (6 - k - 1)
|
j = 5; k = 4; q = 43
|
m = 'a'; q = ['b']
|
q.append(m)
|
m = 'a'; q = ['b', 'a']
|
j = ['\n']; l = [['3\n'], ['3', '3\n'], ['4', '7\n'], ['5', '18\n'], ['\n']]
|
l.append(j)
|
j = ['\n']; l = [['3\n'], ['3', '3\n'], ['4', '7\n'], ['5', '18\n'], ['\n'], ['\n']]
|
c = [1, 2, 1, 2, 1, 2, 3, 4, 1, 1]; i = 8; s = [1, 2, 1, 2, 1, 1, 1, 3, 2, 1]
|
c[i] = s[i]
|
c = [1, 2, 1, 2, 1, 2, 3, 4, 2, 1]; i = 8; s = [1, 2, 1, 2, 1, 1, 1, 3, 2, 1]
|
i = 3; j = [1, 2, 3, 7, 12, 14, 21, 21]; x = 1
|
x = j[i]
|
i = 3; j = [1, 2, 3, 7, 12, 14, 21, 21]; x = 7
|
c = 3; i = 5; z = 5
|
z = c + 2 * i
|
c = 3; i = 5; z = 13
|
b = 1; g = [(4, 0)]; j = 7
|
g.append((j, b))
|
b = 1; g = [(4, 0), (7, 1)]; j = 7
|
d = 1
|
d -= 1
|
d = 0
|
p = 0
|
p = p + 1
|
p = 1
|
f = ['because', 'can', 'do', 'must', 'we', 'what']
|
t = len(f[0])
|
f = ['because', 'can', 'do', 'must', 'we', 'what']; t = 7
|
i = 1; j = 2; t = 1; y = [[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]]
|
t = y[i + 1][j + 1]
|
i = 1; j = 2; t = 0; y = [[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]]
|
q = [1, 2, 3, 4, 5]; t = 2; y = 4
|
y = q[t]
|
q = [1, 2, 3, 4, 5]; t = 2; y = 3
|
b = '0100101010'
|
k = b.count('010')
|
b = '0100101010'; k = 3
|
i = [1, 1, 1, 1, 1]; x = 1; y = 2
|
i.append(abs(int(x) - int(y)))
|
i = [1, 1, 1, 1, 1, 1]; x = 1; y = 2
|
n = '55'
|
n = n + str(5)
|
n = '555'
|
a = 4; q = [2, 4, 3, 7]
|
q.append(a)
|
a = 4; q = [2, 4, 3, 7, 4]
|
m = {0, 2, 12}; x = 6
|
m.add(x // 2)
|
m = {0, 2, 3, 12}; x = 6
|
s = 1; w = [(2, 3), (4, -1), (5, -1), (6, -1), (7, 8), (-1, 9), (-1, -1), (10, 11), (-1, -1), (-1, -1), (-1, -1)]
|
l, r = w[s - 1]
|
l = 2; r = 3; s = 1; w = [(2, 3), (4, -1), (5, -1), (6, -1), (7, 8), (-1, 9), (-1, -1), (10, 11), (-1, -1), (-1, -1), (-1, -1)]
|
j = 6
|
j -= 1
|
j = 5
|
i = 4; m = 4
|
i = m + 2
|
i = 6; m = 4
|
x = 0
|
h.append(x)
|
h = [0]; x = 0
|
c = 'e'; e = 'b'
|
c = e
|
c = 'b'; e = 'b'
|
b = ['to', 'the', 'other']; h = ['i came from', 'the moon he', 'went to the', 'drawing room ', 'came from the', 'moon he went']
|
h.append(' '.join(b))
|
b = ['to', 'the', 'other']; h = ['i came from', 'the moon he', 'went to the', 'drawing room ', 'came from the', 'moon he went', 'to the other']
|
t = 53; x = 98
|
t = x
|
t = 98; x = 98
|
i = 5; l = 'ifailuhkqq'; w = 0; z = 1
|
w += (z + 1) ** (ord(l[i + z]) - ord('a'))
|
i = 5; l = 'ifailuhkqq'; w = 128; z = 1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.