start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
i = 5; j = 2; s = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 1, 1, 1], [0, 0, 1, 1], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; y = 0
|
y = s[i][j - 1] if j >= 1 else 0
|
i = 5; j = 2; s = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 1, 1, 1], [0, 0, 1, 1], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; y = 0
|
r = [8, 9, '1']
|
r[2] = int(r[2])
|
r = [8, 9, 1]
|
x = '11010000001001110001101101001'
|
x += '1'
|
x = '110100000010011100011011010011'
|
m = 'bcxz'
|
m = list(m)
|
m = ['b', 'c', 'x', 'z']
|
i = '4'; y = [1, 2, 3]
|
y.append(int(i))
|
i = '4'; y = [1, 2, 3, 4]
|
f = [[0, 1], [0, 2], [0, 3]]; i = 0; j = 0; t = {(0): []}; v = [[100, 1], [200, 2], [300, 3]]
|
t[i].append((v[j][0] - f[i][0]) ** 2 + (v[j][1] - f[i][1]) ** 2)
|
f = [[0, 1], [0, 2], [0, 3]]; i = 0; j = 0; t = {0: [10000]}; v = [[100, 1], [200, 2], [300, 3]]
|
i = 2; j = [9, 49, 8, 9]
|
j[i] = j[i] ** 2
|
i = 2; j = [9, 49, 64, 9]
|
i = 0; k = 4; z = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]
|
f = z[i + k - 1]
|
f = 4; i = 0; k = 4; z = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]
|
e = [0, 1]; i = 2
|
e.append(i)
|
e = [0, 1, 2]; i = 2
|
c = 1581
|
c *= 2
|
c = 3162
|
n = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 2, 'f': 1, 'g': 1, 'h': 1, 'i': 1}
|
s = min(n.values())
|
n = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 2, 'f': 1, 'g': 1, 'h': 1, 'i': 1}; s = 1
|
c = 'B'; x = ['A', 'B', 'A', 'B', 'A', 'B', 'A']
|
x.append(c)
|
c = 'B'; x = ['A', 'B', 'A', 'B', 'A', 'B', 'A', 'B']
|
i = 2; y = [1, 3, 0, 0]; z = 3
|
y[i] = y[i - 1] * (z - i + 1) / i
|
i = 2; y = [1, 3, 3.0, 0]; z = 3
|
a = ['i', 'fi', 'afi', 'afii', 'afiil', 'afiilu', 'afilu', 'afhilu', 'afhiklu', 'afhiklqu', 'afhiklqqu']; i = 2; j = 1; s = 'ifailuhkqq'
|
a.append(''.join(sorted(s[i:i + j])))
|
a = ['i', 'fi', 'afi', 'afii', 'afiil', 'afiilu', 'afilu', 'afhilu', 'afhiklu', 'afhiklqu', 'afhiklqqu', 'a']; i = 2; j = 1; s = 'ifailuhkqq'
|
p = 3
|
p += 1
|
p = 4
|
w = 1.2000000000000011e-77
|
w = w / 10
|
w = 1.2000000000000012e-78
|
x = 15
|
x = x + 1
|
x = 16
|
o = [1, 2]
|
y = o[1] - 1
|
o = [1, 2]; y = 1
|
f = 5702887; s = 9227465; t = 9227465
|
t = f + s
|
f = 5702887; s = 9227465; t = 14930352
|
u = '1'; v = '2'
|
u, v = [int(u), int(v)]
|
u = 1; v = 2
|
i = 66; v = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 52, 1, 55, 0, 56, 1, 59, 0, 60, 1, 63, 0, 64, 1]
|
v.append(v[-1] ^ i)
|
i = 66; v = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 52, 1, 55, 0, 56, 1, 59, 0, 60, 1, 63, 0, 64, 1, 67]
|
m = 1346269; z = 832040
|
m = z + m
|
m = 2178309; z = 832040
|
b = {'w', 'o', 'r', 'l', 'd'}; p = {'h', 'o', 'e', 'l'}
|
a = p & b
|
a = {'l', 'o'}; b = {'l', 'r', 'd', 'o', 'w'}; p = {'e', 'h', 'l', 'o'}
|
c = 0; f = 6
|
c, f = f, c
|
c = 6; f = 0
|
i = 2; k = 0
|
k = int(i)
|
i = 2; k = 2
|
a = ['1', '2', '3', '4', '1']; i = 3; n = ['1', '4']
|
n.append(a[i - 1])
|
a = ['1', '2', '3', '4', '1']; i = 3; n = ['1', '4', '3']
|
u = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 961, 1024, 1089, 1156, 1225, 1296, 1369, 1444, 1521, 1600]; x = 1681
|
u.append(x)
|
u = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 961, 1024, 1089, 1156, 1225, 1296, 1369, 1444, 1521, 1600, 1681]; x = 1681
|
i = 7; t = ['0', '1', '1', '0', '1', '1', '1', '0', '1', '0']
|
t[i + 2] = '1'
|
i = 7; t = ['0', '1', '1', '0', '1', '1', '1', '0', '1', '1']
|
d = 1; h = [0, 1, 0, -1, -2, -1, -2, -1]
|
h.append(d + h[-1])
|
d = 1; h = [0, 1, 0, -1, -2, -1, -2, -1, 0]
|
m = [0.32, 0.32, 0.12, 0.04, 0.07, 0.13]
|
t.append(m[0])
|
m = [0.32, 0.32, 0.12, 0.04, 0.07, 0.13]; t = [0.32]
|
b = '1'; s = '1111111'
|
s += b
|
b = '1'; s = '11111111'
|
c = 't'; i = 10; p = 'middle-Outz'
|
c = p[i]
|
c = 'z'; i = 10; p = 'middle-Outz'
|
c = 4; i = 5
|
i += c
|
c = 4; i = 9
|
f = ['e', 'g']; r = 'ggegge'; z = 4
|
f.append(r[z])
|
f = ['e', 'g', 'g']; r = 'ggegge'; z = 4
|
d = 4
|
d = d + 1
|
d = 5
|
q = {(4): 1, (3): 2, (5): 3, (1): 4, (2): 5}; x = 2; z = 4
|
z = q[x]
|
q = {4: 1, 3: 2, 5: 3, 1: 4, 2: 5}; x = 2; z = 5
|
i = 2; m = [1, 2, 4, 4, 3]
|
m[i + 1] = m[i + 2]
|
i = 2; m = [1, 2, 4, 3, 3]
|
s = ['append', '1']; z = [5, 10, 9]
|
z.append(int(s[1]))
|
s = ['append', '1']; z = [5, 10, 9, 1]
|
i = 11
|
i += 1
|
i = 12
|
q = 3; x = 2
|
q += x
|
q = 5; x = 2
|
c = '0'; h = '99100010'
|
h += c
|
c = '0'; h = '991000100'
|
q = 1
|
q += 1
|
q = 2
|
k = '9'; m = 4; p = '9101112'
|
p += str(int(k) + m)
|
k = '9'; m = 4; p = '910111213'
|
a = '10 3'
|
a = a.split()
|
a = ['10', '3']
|
a = 39088169; p = {1, 2, 3, 5, 2178309, 8, 13, 144, 75025, 21, 2584, 46368, 34, 832040, 17711, 14930352, 121393, 514229, ...}
|
p.add(a)
|
a = 39088169; p = {1, 2, 3, 2178309, 5, 8, 13, 144, 75025, 21, 2584, 46368, 34, 832040, 39088169, 17711, 14930352, 121393, 514229, Ellipsis}
|
l = [6, 5, 10]; x = 6
|
l.remove(x)
|
l = [5, 10]; x = 6
|
s = '110100000010011100011011010'
|
s += '0'
|
s = '1101000000100111000110110100'
|
s = ['X']; u = 'Y'
|
s.append(u)
|
s = ['X', 'Y']; u = 'Y'
|
m = [('b ', 0)]; p = ' '; z = 0
|
p, z = m.pop(0)
|
m = []; p = 'b '; z = 0
|
z = ['1', '2', '3', '4']
|
z = [int(ri) for ri in z]
|
z = [1, 2, 3, 4]
|
m = [1]
|
p.append(m)
|
m = [1]; p = [[1]]
|
y = 3.75
|
y = y * 3
|
y = 11.25
|
i = 2; j = [1, 2, 3, 4, 4]; w = [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]
|
w[j[i]] += 1
|
i = 2; j = [1, 2, 3, 4, 4]; w = [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 = 139740771567856, 139741231867136; f = set(); i = array([1.5, 3.5])
|
f.add(e)
|
e = (139740771567856, 139741231867136); f = {(139740771567856, 139741231867136)}; i = array([1.5, 3.5])
|
j = 6; m = [0, 1, 1, 2, 2, 1, 3, 4]; z = 2
|
m[j] = z
|
j = 6; m = [0, 1, 1, 2, 2, 1, 2, 4]; z = 2
|
m = 7.450580596923828e-08
|
m /= 2
|
m = 3.725290298461914e-08
|
f = {'c': 4, 'd': 3}; j = 'd'
|
f[j] += 1
|
f = {'c': 4, 'd': 4}; j = 'd'
|
a = 267914296; c = 165580141
|
c = a
|
a = 267914296; c = 267914296
|
j = [2, 5, 6]
|
i = len(j)
|
i = 3; j = [2, 5, 6]
|
i = 2; k = [1, 2, 3]; u = [0, 1, 0]
|
u[i] = k[i - 1] + u[i - 1]
|
i = 2; k = [1, 2, 3]; u = [0, 1, 3]
|
b = 12; e = 34
|
e -= b
|
b = 12; e = 22
|
f = 'dhck'; h = 'hegf'
|
h = list(f)
|
f = 'dhck'; h = ['d', 'h', 'c', 'k']
|
p = {(2): 5, (1): 3}; z = 1
|
p[z] = p[z] + 1
|
p = {2: 5, 1: 4}; z = 1
|
i = 0; j = 2; v = [[11, 2, 4], [4, 5, 6], [10, 8, -12]]
|
n += v[i][j]
|
i = 0; j = 2; n = 100; v = [[11, 2, 4], [4, 5, 6], [10, 8, -12]]
|
a = [[], []]; y = 5; z = 0
|
a[z].append(y)
|
a = [[5], []]; y = 5; z = 0
|
o = {'a', 'ba', 'ab', 'b', 'aba', 'aa'}; q = 'baa'
|
o.add(q)
|
o = {'ba', 'baa', 'aa', 'b', 'a', 'ab', 'aba'}; q = 'baa'
|
h = '7'
|
h = str(int(h) + 1)
|
h = '8'
|
v = [5, 4, 4, 2, 2, 8]
|
b = min(v)
|
b = 2; v = [5, 4, 4, 2, 2, 8]
|
b = ['a']; e = ['i', 'f', 'a', 'i', 'l', 'u', 'h', 'k', 'q', 'q']; i = 2; l = 2
|
b = e[i:i + l]
|
b = ['a', 'i']; e = ['i', 'f', 'a', 'i', 'l', 'u', 'h', 'k', 'q', 'q']; i = 2; l = 2
|
i = 'abaab'; m = ['', 'b']; o = 'baab'
|
m = i.replace(o, '_')
|
i = 'abaab'; m = 'a_'; o = 'baab'
|
i = 'O'; o = 45
|
o = ord(i)
|
i = 'O'; o = 79
|
i = 2; m = 2
|
i = m + 2
|
i = 4; m = 2
|
w = '2 4 11 12'
|
i = w.split()
|
i = ['2', '4', '11', '12']; w = '2 4 11 12'
|
s = 'beabeefeab'
|
l = list(set(s))
|
l = ['a', 'e', 'b', 'f']; s = 'beabeefeab'
|
g = ['insert', '0', '6']; s = [5, 10]
|
s.insert(int(g[1]), int(g[2]))
|
g = ['insert', '0', '6']; s = [6, 5, 10]
|
n = 5
|
s = [(0, -1)] * n
|
n = 5; s = [(0, -1), (0, -1), (0, -1), (0, -1), (0, -1)]
|
d = 1; i = 3; k = 2; x = [1, 1, 1, 2, 2]
|
d = x[i + k - 1] - x[i]
|
d = 0; i = 3; k = 2; x = [1, 1, 1, 2, 2]
|
c = 'abcd'; i = 5
|
i = i + len(c)
|
c = 'abcd'; i = 9
|
i = 16; t = 15
|
t = i
|
i = 16; t = 16
|
i = 3.469446951953614e-17; x = 1.734723475976807e-17
|
i = x % 2
|
i = 1.734723475976807e-17; x = 1.734723475976807e-17
|
r = '11111111111111111111'
|
r += '1'
|
r = '111111111111111111111'
|
r = [4, 5]; v = 0
|
r.append(r[-1] + v)
|
r = [4, 5, 5]; v = 0
|
k = '3'; n = '6'
|
n, k = [int(n), int(k)]
|
k = 3; n = 6
|
j = 2; k = 0; m = 'dkhc'; n = ['d', 'k', 'h', 'c']
|
n[j] = m[k]
|
j = 2; k = 0; m = 'dkhc'; n = ['d', 'k', 'd', 'c']
|
j = 5; k = 7
|
k = j + 1
|
j = 5; k = 6
|
c = ' 204'; x = 205
|
c += ' %s' % x
|
c = ' 204 205'; x = 205
|
e = 1; p = [0, 1, 2, 3, 4]; t = 0
|
p[e] = t
|
e = 1; p = [0, 0, 2, 3, 4]; t = 0
|
a = ['1', '0', '0', '0', '0', '0', '0', '1']; b = ['1', '0', '1', '0', '1', '0', '0', '0']; i = 7; r = 4
|
r += int(a[i]) + int(b[i])
|
a = ['1', '0', '0', '0', '0', '0', '0', '1']; b = ['1', '0', '1', '0', '1', '0', '0', '0']; i = 7; r = 5
|
f = '98'; x = 9
|
x = int(f)
|
f = '98'; x = 98
|
n = 2
|
n -= 1
|
n = 1
|
q = '000010'; w = '00'
|
q = w[::-1]
|
q = '00'; w = '00'
|
f = [0, 0, 0, 0, 0, 0, 0, 0]; i = 0; n = [1, 2, 1, 2, 1, 2, 1, 1]; p = [1, 2, 1, 2, 1, 2, 1, 2]
|
f[i] = max(p[i], n[i])
|
f = [1, 0, 0, 0, 0, 0, 0, 0]; i = 0; n = [1, 2, 1, 2, 1, 2, 1, 1]; p = [1, 2, 1, 2, 1, 2, 1, 2]
|
i = 3; j = 0; k = ['ab', 'bc', 'cd']; s = 'abcd'
|
k.append(''.join(sorted(s[j:j + i])))
|
i = 3; j = 0; k = ['ab', 'bc', 'cd', 'abc']; s = 'abcd'
|
c = 'B'; d = {'A': 2, 'B': 1}
|
d[c] += 1
|
c = 'B'; d = {'A': 2, 'B': 2}
|
i = 1
|
k.add(i)
|
i = 1; k = {1}
|
a = 174; b = [99, 123, 138, 155]; m = 1000
|
b.append(a % m)
|
a = 174; b = [99, 123, 138, 155, 174]; m = 1000
|
s = [0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6]
|
q = n = len(s)
|
n = 14; q = 14; s = [0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6]
|
f = 'bcd'; r = {'a': 1, 'ab': 1, 'abc': 1, 'abcd': 1, 'b': 1, 'bc': 1}
|
r[f] = r.get(f, 0) + 1
|
f = 'bcd'; r = {'a': 1, 'ab': 1, 'abc': 1, 'abcd': 1, 'b': 1, 'bc': 1, 'bcd': 1}
|
h = 2; p = '+-'
|
h = len(p)
|
h = 2; p = '+-'
|
r = [3, 3]; s = 3
|
r.append(s)
|
r = [3, 3, 3]; s = 3
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.