start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
|---|---|---|
c = 7; n = 11; r = 4
|
r = n - c + 1
|
c = 7; n = 11; r = 5
|
n = '2'
|
n = int(n)
|
n = 2
|
a = [(1, 1), (2, 5), (3, 4), (4, 2), (5, 3)]; k = 2
|
c, x = a[k]
|
a = [(1, 1), (2, 5), (3, 4), (4, 2), (5, 3)]; c = 3; k = 2; x = 4
|
i = 3; l = ['{', '{', '[']; s = '{{[[(())]]}}'
|
l.append(s[i])
|
i = 3; l = ['{', '{', '[', '[']; s = '{{[[(())]]}}'
|
j = {(1): 1, (2): 1, (3): 1, (4): 1, (5): 1}; k = 2; r = 1; x = 2
|
r += j[x + k]
|
j = {1: 1, 2: 1, 3: 1, 4: 1, 5: 1}; k = 2; r = 2; x = 2
|
j = 121
|
j += 1
|
j = 122
|
c = 4; i = 5; j = 'CDC'; x = 'ABCDCDC'
|
c = x.find(j, i)
|
c = -1; i = 5; j = 'CDC'; x = 'ABCDCDC'
|
c = ['d', 'de', 'def', 'defg', 'defga', 'defgab']; s = 'abcde'
|
c = [s[:i + 1] for i in range(len(s))]
|
c = []; s = []
|
b = {0, 2, 10, 5}; v = {1, 4, 9}
|
b = v
|
b = {1, 4, 9}; v = {1, 4, 9}
|
e = 3; i = 5; k = {(4): 3, (3): 2}
|
k[i] = e
|
e = 3; i = 5; k = {4: 3, 3: 2, 5: 3}
|
l = 10; x = [4978, 11735, 14216, 14470, 38120, 51135, 64630, 67060, 73429, 99233]
|
u = (x[l // 2] + x[l // 2 - 1]) / 2
|
l = 10; u = 44627.5; x = [4978, 11735, 14216, 14470, 38120, 51135, 64630, 67060, 73429, 99233]
|
h = 'ccd'; n = {'c': 2, 'd': 2, 'cd': 3, 'ccd': 0}
|
n[h] += 1
|
h = 'ccd'; n = {'c': 2, 'd': 2, 'cd': 3, 'ccd': 1}
|
c = 3; i = 2; p = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]
|
c += (p[i + 1] - p[i]) * (i + 1)
|
c = 6; i = 2; p = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]
|
i = 1, 2, 3; j = 0
|
x = i[j] ^ i[j + 1]
|
i = (1, 2, 3); j = 0; x = 3
|
m = 10
|
u[m] = 1
|
m = 10; u = {10: 1}
|
x = [2, 2]
|
x.append(0)
|
x = [2, 2, 0]
|
a = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; i = 0; j = 0; t = 18
|
t += a[i][j]
|
a = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; i = 0; j = 0; t = 19
|
a = [1, 2]; b = [3, 4, 5]; c = [3, 4, 5]; i = 0; j = 0
|
c.append(min(b[j], a[i]))
|
a = [1, 2]; b = [3, 4, 5]; c = [3, 4, 5, 1]; i = 0; j = 0
|
i = 11; j = 20; u = 24
|
u = i ^ j
|
i = 11; j = 20; u = 31
|
h = [False, {}]; p = [False, {'1': [False, {}]}]
|
h[0] = True
|
h = [True, {}]; p = [False, {'1': [False, {}]}]
|
b = [['-', '-', '-'], [], [], [], ['-'], [], ['-', '-', '-'], [], [], [], [ ], [], [], [], [], [], []]; d = 'ef'; x = 0
|
b[x].append(d)
|
b = [['-', '-', '-', 'ef'], [], [], [], ['-'], [], ['-', '-', '-'], [], [], [], [], [], [], [], [], [], []]; d = 'ef'; x = 0
|
r = 3; v = 1
|
r = r + v
|
r = 4; v = 1
|
u = [(2, -2, ('c', 2)), (3, -1, ('b', 3)), (2, 0, ('a', 2))]
|
u.sort(reverse=True)
|
u = [(3, -1, ('b', 3)), (2, 0, ('a', 2)), (2, -2, ('c', 2))]
|
a = [1, 2, 1]
|
a.sort(reverse=True)
|
a = [2, 1, 1]
|
f = 6; x = 5
|
f += x
|
f = 11; x = 5
|
b = 'c'; n = ['b', 'a']
|
n.append(b)
|
b = 'c'; n = ['b', 'a', 'c']
|
t = ['b', 'a', 'b', 'a', 'b']
|
q = max(q, len(t))
|
q = 52; t = ['b', 'a', 'b', 'a', 'b']
|
e = '999100010001'; s = '99100010001'
|
s = e
|
e = '999100010001'; s = '999100010001'
|
f = [1, 2, 1, 2, 1, 2, 3, 4, 2]; g = [1, 2, 1, 2, 1, 2, 3, 4, 1, 1]; i = 9; w = [1, 2, 1, 2, 1, 1, 1, 3, 2, 1]
|
f.append(max(g[i], w[i]))
|
f = [1, 2, 1, 2, 1, 2, 3, 4, 2, 1]; g = [1, 2, 1, 2, 1, 2, 3, 4, 1, 1]; i = 9; w = [1, 2, 1, 2, 1, 1, 1, 3, 2, 1]
|
i = 2; j = 2; z = [(3, 2), (1, 2), (2, 3), (2, 1), (3, 3)]
|
z.append((i + 1, j - 1))
|
i = 2; j = 2; z = [(3, 2), (1, 2), (2, 3), (2, 1), (3, 3), (3, 1)]
|
a = 3; f = [1, 2, 4, 5, 5]; o = 2
|
f[o + 1] = a
|
a = 3; f = [1, 2, 4, 3, 5]; o = 2
|
j = 0; n = 2; z = 0
|
n = z - j
|
j = 0; n = 0; z = 0
|
m = 295636; x = 869167
|
x = m
|
m = 295636; x = 295636
|
a = ( 'In the third category he included those Brothers..., breathless from his gallop and his excitement. ' ); j = 'In the third category he included those Brothers (the majority'; k = 62
|
j += a[k]
|
a = 'In the third category he included those Brothers..., breathless from his gallop and his excitement. '; j = 'In the third category he included those Brothers (the majoritys'; k = 62
|
j = 0
|
j += 1
|
j = 1
|
a = ['9', '9', '910', '91011', '91011121314151617', '9101112131415161718', '910111213141516171819']; i = ['9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20']
|
a.append(''.join(i))
|
a = ['9', '9', '910', '91011', '91011121314151617', '9101112131415161718', '910111213141516171819', '91011121314151617181920']; i = ['9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20']
|
g = 3; x = 2
|
g = g + x
|
g = 5; x = 2
|
x = 765.5558347702026
|
x = x / 2
|
x = 382.7779173851013
|
c = 3; r = 6
|
w = 2 * (c - 1) + (r + 1) % 2
|
c = 3; r = 6; w = 5
|
j = 0; u = [1, 0, 0, 0, 0]
|
z = u[j]
|
j = 0; u = [1, 0, 0, 0, 0]; z = 1
|
a = 2; o = 'xyyx'
|
a = len(o) // 2
|
a = 2; o = 'xyyx'
|
p = '['; v = ['{']
|
v.append(p)
|
p = '['; v = ['{', '[']
|
b = 167772160
|
b <<= 1
|
b = 335544320
|
i = 3; k = 6; s = '999100010001'; x = '99910'
|
x = s[i:i + k]
|
i = 3; k = 6; s = '999100010001'; x = '100010'
|
d = ['}', ']']; i = 2; s = '{[()]}'
|
d.append(chr(ord(s[i]) + 1))
|
d = ['}', ']', ')']; i = 2; s = '{[()]}'
|
n = 2; q = {'e': 1, 'g': 1}; z = 'g'
|
q[z] = n
|
n = 2; q = {'e': 1, 'g': 2}; z = 'g'
|
n = 'abdc'; z = ['l', 'm', 'o', 'n']
|
z = list(n)
|
n = 'abdc'; z = ['a', 'b', 'd', 'c']
|
i = 2; j = 3; x = [2, 3, 6, 6, 5]
|
j = x[i]
|
i = 2; j = 6; x = [2, 3, 6, 6, 5]
|
i = 6; k = [['-', '-', '-'], [], [], [], ['-'], [], ['-', '-'], [], [], [], [], [], [], [], [], [], [], []]
|
k[i].append('-')
|
i = 6; k = [['-', '-', '-'], [], [], [], ['-'], [], ['-', '-', '-'], [], [], [], [], [], [], [], [], [], [], []]
|
k = {2}; n = 3
|
k.add(n)
|
k = {2, 3}; n = 3
|
m = OrderedDict([('bcdef', 1)]); y = 'abcdefg'
|
m[y] = 1
|
m = OrderedDict([('bcdef', 1), ('abcdefg', 1)]); y = 'abcdefg'
|
j = 120
|
j += i
|
i = 3; j = 123
|
i = 0; j = 2; u = 21
|
u = (i + 2) * 10 + j
|
i = 0; j = 2; u = 22
|
h = [4, 6]; j = 8
|
h.append(j)
|
h = [4, 6, 8]; j = 8
|
k = 1
|
s = s + k
|
k = 1; s = -81
|
i = 5; y = 5
|
y = i + 1
|
i = 5; y = 6
|
n = [112, 42, 83, 119]
|
t.append(n)
|
n = [112, 42, 83, 119]; t = [[112, 42, 83, 119]]
|
m = 5; p = 9; s = 2
|
p = m * s
|
m = 5; p = 10; s = 2
|
a = '22222'
|
a = int(a)
|
a = 22222
|
t = '2 4 '; x = 4
|
t = t + str(x) + ' '
|
t = '2 4 4 '; x = 4
|
d = ['Krishna 67 68 69', 'Arjun 70 98 63', 'Malika 52 56 60']; r = b'3\nKrishna 67 68 69\nArjun 70 98 63\nMalika 52 56 60\nMalika\n\n\n\n'
|
r = {x.split()[0]: x.split()[1:] for x in d}
|
d = ['Krishna 67 68 69', 'Arjun 70 98 63', 'Malika 52 56 60']; r = {'Krishna': ['67', '68', '69'], 'Arjun': ['70', '98', '63'], 'Malika': ['52', '56', '60']}
|
c = 'b'; s = 'cdea'
|
s = s + c
|
c = 'b'; s = 'cdeab'
|
a = 2; i = 4; j = 5; s = '2222222'
|
a = s[i:j + 1]
|
a = '22'; i = 4; j = 5; s = '2222222'
|
e = 0; w = 0
|
u.append((e, w + 1))
|
e = 0; u = [(0, 1)]; w = 0
|
i = ' he went to the other room'; n = ['i', 'came', 'from', 'the', 'moon']
|
n = i.split(' ')
|
i = ' he went to the other room'; n = ['', 'he', 'went', 'to', 'the', 'other', 'room']
|
l = 1; x = [5, 2]
|
x.append(l)
|
l = 1; x = [5, 2, 1]
|
r = ['c', 'd', 'c', 'd']
|
r.sort()
|
r = ['c', 'c', 'd', 'd']
|
c = 174; m = 155; n = 1000
|
m = c % n
|
c = 174; m = 174; n = 1000
|
a = [1, 2, 3, 1, 1, 2, 3, 1, 10]; i = 1; j = 0; k = -1
|
k = j - a[i]
|
a = [1, 2, 3, 1, 1, 2, 3, 1, 10]; i = 1; j = 0; k = -2
|
b = 3; m = 0; r = [[0, 1, 100], [1, 4, 100], [2, 3, 100]]
|
b = r[m][1]
|
b = 1; m = 0; r = [[0, 1, 100], [1, 4, 100], [2, 3, 100]]
|
b = 1; c = 1; w = 8
|
o.append([b, w + c])
|
b = 1; c = 1; o = [[1, 9]]; w = 8
|
e = [3, 2, 2, 0]; m = 1; q = 3
|
q = e[m]
|
e = [3, 2, 2, 0]; m = 1; q = 2
|
j = 3; v = 4; x = [1, 4, 3, 5, 6, 2]
|
v = x[j - 1]
|
j = 3; v = 3; x = [1, 4, 3, 5, 6, 2]
|
i = 4; n = 2; x = [2, 4, 5, 6, 7, 9, 11, 12]
|
n = x[i]
|
i = 4; n = 7; x = [2, 4, 5, 6, 7, 9, 11, 12]
|
g = ['3', '2']; n = 'xy'; t = 1
|
t, n = int(g[0]), g[1]
|
g = ['3', '2']; n = '2'; t = 3
|
b = [10, 5, 20, 20, 4, 5, 2, 25, 1]; i = 8; y = 2
|
y = b[i]
|
b = [10, 5, 20, 20, 4, 5, 2, 25, 1]; i = 8; y = 1
|
i = 0; k = 1; q = [1, 2, 3, 4, 5]
|
k = q[i] - i - 1
|
i = 0; k = 0; q = [1, 2, 3, 4, 5]
|
b = 0; z = ['b']
|
z.pop(b)
|
b = 0; z = []
|
j = 7; l = 4; v = 1
|
v = j - l
|
j = 7; l = 4; v = 3
|
e = ['Kitty']
|
e.append('Katty')
|
e = ['Kitty', 'Katty']
|
d = [[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]]; l = [1, 0]; x = 0; y = 2
|
l.append(d[x][y + 2])
|
d = [[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]]; l = [1, 0, 0]; x = 0; y = 2
|
r = 4; s = 3
|
s = r
|
r = 4; s = 4
|
m = 10
|
t += m
|
m = 10; t = -4
|
e = {'a': False, 'b': False}; v = 'c'
|
e[v] = False
|
e = {'a': False, 'b': False, 'c': False}; v = 'c'
|
i = 0; o = [1, 0, -1, 0]; p = 5; w = 0; y = 0
|
p = y + o[i] * w
|
i = 0; o = [1, 0, -1, 0]; p = 0; w = 0; y = 0
|
f = 2; j = -1
|
f += j
|
f = 1; j = -1
|
a = [2, 3, 5, 7, 23, 29, 31, 37, 41, 43, 47, 53, 59]; i = 61
|
a.append(i)
|
a = [2, 3, 5, 7, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61]; i = 61
|
i = 105; l = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']
|
l.append(chr(i))
|
i = 105; l = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i']
|
i = 1; s = 'aba'; u = 3
|
m = s.count('a') * u + s[:i].count('a')
|
i = 1; m = 7; s = 'aba'; u = 3
|
h = [[2, 3, 1], [-1, 4, 2], [5, -1, 2], [6, -1, 3], [10, 11, 4], [-1, -1, 5 ], [-1, -1, 5], [-1, -1, 5]]; t = [5, -1, 2]
|
t[0], t[1] = t[1], t[0]
|
h = [[2, 3, 1], [-1, 4, 2], [5, -1, 2], [6, -1, 3], [10, 11, 4], [-1, -1, 5], [-1, -1, 5], [-1, -1, 5]]; t = [-1, 5, 2]
|
n = [1, 20]; r = [26]
|
r.append(n[1])
|
n = [1, 20]; r = [26, 20]
|
c = {'4'}; d = '2'
|
c.add(d)
|
c = {'2', '4'}; d = '2'
|
a = 1; i = 2; s = [1, 1, 2]
|
a = a + s[i]
|
a = 3; i = 2; s = [1, 1, 2]
|
c = 9; r = ['b', 'b', 'b', 'a', 'a', 'a', 'b', 'b', 'a', 'b']; y = ['b', 'b', 'b', 'a']
|
y.append(r[c])
|
c = 9; r = ['b', 'b', 'b', 'a', 'a', 'a', 'b', 'b', 'a', 'b']; y = ['b', 'b', 'b', 'a', 'b']
|
b = [[(0, 0), (1, 0), (2, 0), (0, 3), (0, 2), (0, 1)]]; i = 0; j = 4; r = 2; w = 5
|
w = (j + r) % len(b[i])
|
b = [[(0, 0), (1, 0), (2, 0), (0, 3), (0, 2), (0, 1)]]; i = 0; j = 4; r = 2; w = 0
|
n = 1
|
n += 1
|
n = 2
|
n = 6
|
x = int(n ** 0.5)
|
n = 6; x = 2
|
h = '000000000000000000000'
|
h = '0' + h
|
h = '0000000000000000000000'
|
s = 139794653673632, 139795115873536; v = set(); y = array([[0, 0], [2, 3]])
|
v.add(s)
|
s = (139794653673632, 139795115873536); v = {(139794653673632, 139795115873536)}; y = array([[0, 0],
[2, 3]])
|
c = [3, 9, 21, 45, 93, 189, 381, 765, 1533, 3069, 6141]; i = 11; u = [3, 6, 12, 24, 48, 96, 25769803776, 51539607552, 103079215104, 206158430208, 412316860416, 824633720832]
|
c.append(c[i - 1] + u[i])
|
c = [3, 9, 21, 45, 93, 189, 381, 765, 1533, 3069, 6141, 824633726973]; i = 11; u = [3, 6, 12, 24, 48, 96, 25769803776, 51539607552, 103079215104, 206158430208, 412316860416, 824633720832]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.