start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
f = 'abdc'; i = 3; w = 'no'
|
w = f[i:]
|
f = 'abdc'; i = 3; w = 'c'
|
d = 'abcabcddd'; i = 1; j = 3; w = {'abc', 'abcab', 'abcabc', 'ab', 'abcabcd', 'b', 'abcabcdd', 'a', 'abcabcddd', 'abca', 'bc'}
|
w.add(d[i:j + 1])
|
d = 'abcabcddd'; i = 1; j = 3; w = {'bc', 'abcabcdd', 'abcabcd', 'abc', 'bca', 'abcabcddd', 'abca', 'b', 'abcab', 'a', 'ab', 'abcabc'}
|
e = {98}; o = 98
|
e.add(o)
|
e = {98}; o = 98
|
a = 16; b = 18
|
b = a % b
|
a = 16; b = 16
|
g = 'abc'; j = [(2, 3)]; s = 0
|
j.append((1, g[s:]))
|
g = 'abc'; j = [(2, 3), (1, 'abc')]; s = 0
|
b = 4; k = 100; o = [0, 100, 100, 0, 0, 0]
|
o[b + 1] -= k
|
b = 4; k = 100; o = [0, 100, 100, 0, 0, -100]
|
i = 20; j = 1000000007; v = [1, 1, 2, 6, 24, 120, 720, 227020758, 178290591, 674358851, 789741546, 425606191, 660911389, 557316307]
|
v.append(v[-1] * i % j)
|
i = 20; j = 1000000007; v = [1, 1, 2, 6, 24, 120, 720, 227020758, 178290591, 674358851, 789741546, 425606191, 660911389, 557316307, 146326063]
|
f = 1; h = 4; l = [[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 = 4
|
f = l[h + 1][q - 1]
|
f = 2; h = 4; l = [[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 = 4
|
y = ['0', '3']
|
x.append([int(y[0]), int(y[1])])
|
x = [[0, 3]]; y = ['0', '3']
|
k = 1; x = 0
|
x = k % 10
|
k = 1; x = 1
|
e = 8; o = 10
|
e = o
|
e = 10; o = 10
|
i = 10
|
i = i + 1
|
i = 11
|
m = [4978, 11735, 14216, 14470, 38120, 51135, 64630, 67060, 73429, 99233]; w = 5
|
i = (m[w - 1] + m[w]) / 2
|
i = 44627.5; m = [4978, 11735, 14216, 14470, 38120, 51135, 64630, 67060, 73429, 99233]; w = 5
|
a = [1, 2, 3, 4, 5]; d = 4; i = 4; n = [1, 1, 2, 3, 4]
|
n[i - d] = a[i]
|
a = [1, 2, 3, 4, 5]; d = 4; i = 4; n = [5, 1, 2, 3, 4]
|
d = [1, 2, 3]; j = 0
|
o.append(d[j] ^ d[j + 1])
|
d = [1, 2, 3]; j = 0; o = [3]
|
a = ['d']; r = ["['a']", "['a', 'b']", "['a', 'b', 'c']", "['a', 'b', 'c', 'd']", "['b', 'c', 'd']", "['c']", "['c', 'd']"]
|
r.append(str(a))
|
a = ['d']; r = ["['a']", "['a', 'b']", "['a', 'b', 'c']", "['a', 'b', 'c', 'd']", "['b', 'c', 'd']", "['c']", "['c', 'd']", "['d']"]
|
i = 4; y = 7
|
y = y + i
|
i = 4; y = 11
|
e = ['b', 'a']
|
x = ''.join(map(str, e))
|
e = ['b', 'a']; x = 'ba'
|
m = 14; p = 2
|
m += p
|
m = 16; p = 2
|
l = 2
|
u = [[] for _ in range(l)]
|
l = 2; u = [[], []]
|
f = 6.0; g = 1
|
f -= g
|
f = 5.0; g = 1
|
i = 4; j = 2; z = 5
|
i = j * (z - j)
|
i = 6; j = 2; z = 5
|
l = '1'
|
l = int(l)
|
l = 1
|
i = 'b'; p = 'aba'
|
p += i
|
i = 'b'; p = 'abab'
|
r = [3, 1]
|
r.sort()
|
r = [1, 3]
|
i = 3; l = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [], [], []]; m = 6
|
l[i] = [(0) for _ in range(m)]
|
i = 3; l = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [], []]; m = 6
|
a = 1; j = 5; n = 2; t = -2
|
t = a * n - j
|
a = 1; j = 5; n = 2; t = -3
|
d = 2; o = 117
|
o += d
|
d = 2; o = 119
|
i = 6; t = ['2']; x = ['2', '2', '2', '2', '2', '2', '2']; z = 4
|
t = x[z:i]
|
i = 6; t = ['2', '2']; x = ['2', '2', '2', '2', '2', '2', '2']; z = 4
|
f = '001001'; s = '99910001001'; t = 4
|
f = s[t:]
|
f = '0001001'; s = '99910001001'; t = 4
|
k = 12
|
k += 1
|
k = 13
|
g = ['A', 'A']; z = 'A'
|
g.append(z)
|
g = ['A', 'A', 'A']; z = 'A'
|
j = 1; s = ['b']; w = 'bb'
|
s.append(w[j])
|
j = 1; s = ['b', 'b']; w = 'bb'
|
x = 5
|
x += 1
|
x = 6
|
j = [1, 2, 5]; m = 1, 3, 5
|
j = sorted(m)
|
j = [1, 3, 5]; m = (1, 3, 5)
|
b = 0; o = 1
|
b += o
|
b = 1; o = 1
|
k = -1713; w = {-1188, 1083, 873, 1260, 1581, -786, -594, -1293, -939, 630, -297, 315, -1572}
|
w.add(k)
|
k = -1713; w = {-1572, 873, 1260, 1581, -786, -594, -1713, 315, -1293, -939, 630, -297, 1083, -1188}
|
c = 4
|
c -= 2
|
c = 2
|
i = 7; k = -15; s = -2
|
k += s * i
|
i = 7; k = -29; s = -2
|
a = 5
|
b = a + 1
|
a = 5; b = 6
|
b = 0; n = [(' ', 0)]
|
k, b = n.pop(0)
|
b = 0; k = ' '; n = []
|
j = 7; m = [0, 1, 1, 2, 2, 1, 2, 4]; y = 2
|
m[j] = y
|
j = 7; m = [0, 1, 1, 2, 2, 1, 2, 2]; y = 2
|
m = ['{', '{', '[']; y = '['
|
m.append(y)
|
m = ['{', '{', '[', '[']; y = '['
|
b = 'CANDY'; d = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 20), ('CANDY', 5)]); s = '5'
|
d[b] = d[b] + int(s)
|
b = 'CANDY'; d = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 20), ('CANDY', 10)]); s = '5'
|
r = 1; w = 4
|
r = w
|
r = 4; w = 4
|
h = 0; o = 11
|
h = o
|
h = 11; o = 11
|
y = -1
|
y -= 1
|
y = -2
|
f = '}'; x = ['}', '}', ']', ']', ')', ')', '(', '(', '[', '[', '{']
|
f = x.pop()
|
f = '{'; x = ['}', '}', ']', ']', ')', ')', '(', '(', '[', '[']
|
l = {'8', '21', '11', '55', '10', '1', '6', '2', '3'}; u = {'4', '8', '1', '6', '9', '2', '5', '7', '3'}
|
i = len(u.difference(l))
|
i = 4; l = {'10', '6', '21', '11', '3', '55', '8', '2', '1'}; u = {'6', '7', '3', '8', '2', '9', '5', '1', '4'}
|
b = 'cdcd'; i = 2; j = 4; n = 'cdc'
|
n = b[i:i + j]
|
b = 'cdcd'; i = 2; j = 4; n = 'cd'
|
j = 4; k = 'e-d-e'; s = 'abcdefghijklmnopqrstuvwxyz'
|
k += s[j] + '-'
|
j = 4; k = 'e-d-ee-'; s = 'abcdefghijklmnopqrstuvwxyz'
|
a = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; i = 2; j = 2; k = 39
|
k += abs(a[i][j] - a[i][j - 1])
|
a = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; i = 2; j = 2; k = 41
|
a = 1; e = 0; n = 9
|
n = e + a
|
a = 1; e = 0; n = 1
|
a = 'b'; h = ['a', 'b', 'b']
|
h = sorted(a)
|
a = 'b'; h = ['b']
|
i = ['6', 'gh']; j = 0
|
j = int(i[0])
|
i = ['6', 'gh']; j = 6
|
h = 789; s = 10
|
s = h + 1
|
h = 789; s = 790
|
p = 0; y = True
|
p = p ^ int(y)
|
p = 1; y = True
|
c = 1; q = 12
|
q = c * 8
|
c = 1; q = 8
|
o = ['{', '{', '[', '[', '(']; x = '('
|
x = o.pop()
|
o = ['{', '{', '[', '[']; x = '('
|
i = 'k', 'a'; t = 'akka'
|
t = ''.join(i)
|
i = ('k', 'a'); t = 'ka'
|
e = 0, 0; j = 1, 0; k = [[(-1, -1), 'X', '.'], ['.', 'X', '.'], ['.', '.', '.']]
|
k[j[0]][j[1]] = e[0], e[1]
|
e = (0, 0); j = (1, 0); k = [[(-1, -1), 'X', '.'], [(0, 0), 'X', '.'], ['.', '.', '.']]
|
i = 3; s = '9899100'; t = 7
|
t = int(s[:i])
|
i = 3; s = '9899100'; t = 989
|
f = 1024; o = {(256): 2, (32): 1, (1): 1, (2048): 1, (1048576): 1, (128): 1}
|
o[f] = 1
|
f = 1024; o = {256: 2, 32: 1, 1: 1, 2048: 1, 1048576: 1, 128: 1, 1024: 1}
|
p = 10
|
p += 1
|
p = 11
|
a = 'must'; i = 10
|
i = i + len(a)
|
a = 'must'; i = 14
|
b = 400; j = 1200; r = 1600
|
b = abs(2 * j - r)
|
b = 800; j = 1200; r = 1600
|
n = [1, 12, 5, 111, 200, 1000, 10]
|
n = sorted(n)
|
n = [1, 5, 10, 12, 111, 200, 1000]
|
n = [1, 9]; v = 4
|
v = n[1]
|
n = [1, 9]; v = 9
|
a = [2]; x = '1'; y = '4'
|
a.append(abs(int(x) - int(y)))
|
a = [2, 3]; x = '1'; y = '4'
|
e = ['1.0']; j = 1; k = 2; u = [12, 34, 56]
|
e.append(u[j] / k)
|
e = ['1.0', 17.0]; j = 1; k = 2; u = [12, 34, 56]
|
m = 10; w = [5, 0]
|
m += w[0]
|
m = 15; w = [5, 0]
|
c = 30; i = 5; k = 4; l = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]
|
c = l[i + k - 1] - l[i]
|
c = 80; i = 5; k = 4; l = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]
|
i = 58; x = 3249
|
x = i * i
|
i = 58; x = 3364
|
d = {'a': 0, 'b': 0, 'c': 0, 'd': 0}; i = 4
|
d[chr(ord('a') + i)] = 0
|
d = {'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0}; i = 4
|
l = 4; p = 5
|
p = l
|
l = 4; p = 4
|
i = 1; n = [['2', '3', '4', '8'], ['1', '6', '7', '8'], ['5', '10', '11', '16'], [ '9', '13', '14', '15']]; r = '12'; u = 3
|
r = n[i][u]
|
i = 1; n = [['2', '3', '4', '8'], ['1', '6', '7', '8'], ['5', '10', '11', '16'], ['9', '13', '14', '15']]; r = '8'; u = 3
|
p = 4; w = 7; z = [2, 5, 7, 8]
|
p = z.index(w)
|
p = 2; w = 7; z = [2, 5, 7, 8]
|
g = 0; j = 0
|
g += j + 1
|
g = 1; j = 0
|
c = 3; o = 5; q = [1, 4, 7]; w = 2
|
w, c, o = q
|
c = 4; o = 7; q = [1, 4, 7]; w = 1
|
j = '3 '; n = 1
|
j += '%d' % n
|
j = '3 1'; n = 1
|
a = 153; b = [99, 123, 138, 155, 174, 114, 138]; m = 1000
|
b.append(a % m)
|
a = 153; b = [99, 123, 138, 155, 174, 114, 138, 153]; m = 1000
|
e = [None, 0, None, 6]; f = 3; l = 11
|
l = e[f]
|
e = [None, 0, None, 6]; f = 3; l = 6
|
i = 6; n = 6
|
n = n // i
|
i = 6; n = 1
|
b = 1; g = 8; n = 5
|
g = n - b + 1
|
b = 1; g = 5; n = 5
|
j = 44; l = 31
|
j -= l
|
j = 13; l = 31
|
i = 4; w = [0, 0, 2, 2, 4]; x = 3
|
w[i] = w[i] & x
|
i = 4; w = [0, 0, 2, 2, 0]; x = 3
|
q = '9'; r = '99910001001'; y = 2
|
q = r[:y]
|
q = '99'; r = '99910001001'; y = 2
|
b = [[0, 0, 1], [0, 0, 0], [0, 0, 0]]; i = 0; j = 2
|
b[i + 1][j] = 1
|
b = [[0, 0, 1], [0, 0, 1], [0, 0, 0]]; i = 0; j = 2
|
i = 'the'; m = ['f', 'o', 'r']
|
m = list(i)
|
i = 'the'; m = ['t', 'h', 'e']
|
d = 64; n = 1; x = 4
|
d *= x ** (n - 2)
|
d = 16.0; n = 1; x = 4
|
a = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101]; u = 2310; x = 5
|
u = u * a[x]
|
a = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101]; u = 30030; x = 5
|
i = [1, 4, 9, 16, 25]; x = 36
|
i.append(x)
|
i = [1, 4, 9, 16, 25, 36]; x = 36
|
f = [1, 9, 36, 84, 126, 126, 84, 36, 9, 1]; i = 3; t = [1, 10, 45]
|
t += [(f[i - 1] + f[i]) % 10 ** 9]
|
f = [1, 9, 36, 84, 126, 126, 84, 36, 9, 1]; i = 3; t = [1, 10, 45, 120]
|
b = 5; m = 97
|
m += b * b
|
b = 5; m = 122
|
a = [3, 2, 1, 3, 2, 3]; i = 4; j = 4; z = 3
|
z = max(a[i:j + 1])
|
a = [3, 2, 1, 3, 2, 3]; i = 4; j = 4; z = 2
|
j = [1, 0, 5]; m = 8
|
m = j[2]
|
j = [1, 0, 5]; m = 5
|
j = 'c'; r = deque(['a', 'b', 'd', 'd', 'd'])
|
j = r.popleft()
|
j = 'a'; r = deque(['b', 'd', 'd', 'd'])
|
b = [4, 5, 7, 5]; z = 2
|
z = b[0]
|
b = [4, 5, 7, 5]; z = 4
|
b = ['_', '_']
|
b = [cell for cell in b if cell != '_']
|
b = []
|
a = {'give': 1, 'me': 1, 'one': 1, 'grand': 1}; w = 'today'
|
a[w] = 0
|
a = {'give': 1, 'me': 1, 'one': 1, 'grand': 1, 'today': 0}; w = 'today'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.