start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
t = [1, 3, 5, 7, 9]; u = 4
|
t = t[:u]
|
t = [1, 3, 5, 7]; u = 4
|
b = 1; h = 1.0
|
m = 1 / 2 * (b - h)
|
b = 1; h = 1.0; m = 0.0
|
k = 0; p = [1, 1, 1, 1, 1, 1]
|
q = q + p[k]
|
k = 0; p = [1, 1, 1, 1, 1, 1]; q = 49
|
p = 'ifailuhkqq'
|
n = len(p)
|
n = 10; p = 'ifailuhkqq'
|
m = 'a'
|
b[m] = b.get(m, 0) + 1
|
b = {'a': 1}; m = 'a'
|
w = 15
|
w = w + 1
|
w = 16
|
a = 16; x = 83
|
a = x
|
a = 83; x = 83
|
h = 4.768462058062727; p = 1.7763568394002505e-15; y = 2
|
h *= p % y + 1
|
h = 4.7684620580627355; p = 1.7763568394002505e-15; y = 2
|
b = '4'; y = '2'
|
y, b = [int(y), int(b)]
|
b = 4; y = 2
|
c = {2, 3, 4, 5}
|
p = c.pop()
|
c = {3, 4, 5}; p = 2
|
e = '3'; j = 2
|
j = len(e)
|
e = '3'; j = 1
|
a = [3, 1, 2]; e = 0; i = 0; j = 2
|
a[e + i], a[j - i] = a[j - i], a[e + i]
|
a = [2, 1, 3]; e = 0; i = 0; j = 2
|
d = OrderedDict([('a', 2)]); k = 'b'
|
d[k] = 1
|
d = OrderedDict([('a', 2), ('b', 1)]); k = 'b'
|
a = {1, 2, 3, 4, 5, 6, 7, 8, 9, 11}; b = {66, 55}
|
a.update(b)
|
a = {1, 2, 3, 4, 5, 6, 7, 8, 9, 66, 11, 55}; b = {66, 55}
|
b = 10; c = 2
|
k = b / c
|
b = 10; c = 2; k = 5.0
|
l = [1]; n = 0
|
n = len(l)
|
l = [1]; n = 1
|
i = -3; s = 10
|
s = s - i
|
i = -3; s = 13
|
d = 4; h = 2; i = 4
|
i = h - d
|
d = 4; h = 2; i = -2
|
k = 5; n = 12; p = 'bbbbaa'; t = 'aaaaabbbbaaaa'
|
p = t[k:n]
|
k = 5; n = 12; p = 'bbbbaaa'; t = 'aaaaabbbbaaaa'
|
l = 5; u = 10
|
u += l
|
l = 5; u = 15
|
i = 1; j = 3; n = 3
|
i, j = 0, n - 1
|
i = 0; j = 2; n = 3
|
i = 2; s = 'aabbcd'; y = [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, 0]
|
y[ord(s[i]) - ord('a')] += 1
|
i = 2; s = 'aabbcd'; y = [2, 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]
|
i = 1; r = [(55.0, 3), (59.0, 4), (81.0, 1), (89.0, 5), (99.0, 2)]; t = [3]
|
t.append(r[i][1])
|
i = 1; r = [(55.0, 3), (59.0, 4), (81.0, 1), (89.0, 5), (99.0, 2)]; t = [3, 4]
|
h = [[0, -1], [-1, 0]]; i = 1; j = 1; u = [[0, 0], [0, 0]]
|
m = h[i][j] * 2 + u[i][j] * 2
|
h = [[0, -1], [-1, 0]]; i = 1; j = 1; m = 0; u = [[0, 0], [0, 0]]
|
f = 1.2000000000000003e-14
|
f = f / 10
|
f = 1.2000000000000002e-15
|
p = 'a'; t = 12
|
t = len(p)
|
p = 'a'; t = 1
|
k = 5
|
k -= 5
|
k = 0
|
c = 3; d = 1; t = 3; w = [(9, 1), (6, 2), (11, 3)]
|
w.append((t + d, c + 1))
|
c = 3; d = 1; t = 3; w = [(9, 1), (6, 2), (11, 3), (4, 4)]
|
c = 3; q = 4; s = 0; x = 12
|
x = 2 * (q - s) + 2 * c
|
c = 3; q = 4; s = 0; x = 14
|
h = 45
|
h += 1
|
h = 46
|
n = 1.0; r = 2.0
|
v = r - n
|
n = 1.0; r = 2.0; v = 1.0
|
a = [4, 5, 3, 7, 2]
|
e = filter(lambda v: v > a[0], a)
|
a = [4, 5, 3, 7, 2]; e = <filter object at 0x7f1bf4224550>
|
o = 'a'; r = 'd'
|
r = o
|
o = 'a'; r = 'a'
|
j = 20; n = 19.0
|
n = float(j)
|
j = 20; n = 20.0
|
g = [[0, 0, 0], [0, 0, 1]]; x = [0, 1, 0]
|
g.append(x)
|
g = [[0, 0, 0], [0, 0, 1], [0, 1, 0]]; x = [0, 1, 0]
|
i = 3; y = [5, 3, 2, 1, 1, 1]
|
c = [y[i + 2], y[i + 1], y[i]]
|
c = [1, 1, 1]; i = 3; y = [5, 3, 2, 1, 1, 1]
|
j = 4; s = [3, 3, 2, 2, 5]; w = 2
|
w += s[j]
|
j = 4; s = [3, 3, 2, 2, 5]; w = 7
|
d = -2; k = -1
|
d = k
|
d = -1; k = -1
|
i = 0; q = [2, 1, 5, 3, 4]
|
q[i], q[i + 1] = q[i + 1], q[i]
|
i = 0; q = [1, 2, 5, 3, 4]
|
p = [3, 2]
|
p.sort()
|
p = [2, 3]
|
j = 1; v = [3, 0, 0, 0]
|
v[j] += 1
|
j = 1; v = [3, 1, 0, 0]
|
o = Counter({'c': 2, 'd': 2}); t = 'c'
|
c += o[t] * (o[t] - 1) / 2
|
c = -68.0; o = Counter({'c': 2, 'd': 2}); t = 'c'
|
g = 13
|
g += 1
|
g = 14
|
b = 4; p = [3, 4, 1, 0, 2]; x = 1
|
b = p[x] + 1
|
b = 5; p = [3, 4, 1, 0, 2]; x = 1
|
a = {1, 2}; m = 1; u = 3
|
a.add(m * u)
|
a = {1, 2, 3}; m = 1; u = 3
|
i = '00000000000000000000000000000000'; y = 802743475
|
i = '{0:032b}'.format(y)
|
i = '00101111110110001110010010110011'; y = 802743475
|
j = 0; y = [1, 2]
|
j = y.pop()
|
j = 2; y = [1]
|
q = 1
|
q = q - 1
|
q = 0
|
i = 0; n = 19; x = ['a', 'ab', 'abc', 'b', 'bc', 'c']; y = ['a']
|
n = n + pow(len(x[i]), len(y))
|
i = 0; n = 20.0; x = ['a', 'ab', 'abc', 'b', 'bc', 'c']; y = ['a']
|
i = 6; x = 4
|
i = max(0, i + x)
|
i = 10; x = 4
|
a = 'BACABA['
|
a = a[1:]
|
a = 'ACABA['
|
d = 5; k = 1; r = 11
|
r = k + d
|
d = 5; k = 1; r = 6
|
h = ['c']; i = 1; j = 1; s = 'cdcd'
|
h.append(s[j:j + i])
|
h = ['c', 'd']; i = 1; j = 1; s = 'cdcd'
|
c = 'b'; s = [2, 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]
|
s[ord(c) - 97] += 1
|
c = 'b'; s = [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, 0]
|
i = 0; w = 1; z = [-1, 2, -3]
|
z[i] += w
|
i = 0; w = 1; z = [0, 2, -3]
|
g = [81.0, 99.0, 55.0, 59.0, 89.0]; p = [1, 2, 3, 4, 5]; z = [(9.0, 2), (19.0, 4), (75.0, 3), (89.0, 5), (91.0, 1)]
|
z = list(zip(g, p))
|
g = [81.0, 99.0, 55.0, 59.0, 89.0]; p = [1, 2, 3, 4, 5]; z = [(81.0, 1), (99.0, 2), (55.0, 3), (59.0, 4), (89.0, 5)]
|
i = 16; y = 12
|
i += y
|
i = 28; y = 12
|
r = 'Such were Willarski and '; x = 'even'
|
r += x + ' '
|
r = 'Such were Willarski and even '; x = 'even'
|
i = 1, 1, 3; r = [[1, 1, 1], [1, 1, 3], [1, 1, 3], [1, 1, 3]]
|
r.append(sorted(i))
|
i = (1, 1, 3); r = [[1, 1, 1], [1, 1, 3], [1, 1, 3], [1, 1, 3], [1, 1, 3]]
|
j = 27; n = 31.0
|
n = float(j)
|
j = 27; n = 27.0
|
a = 'cab '
|
y = list(a)
|
a = 'cab '; y = ['c', 'a', 'b', ' ', ' ']
|
b = 'DANIEL['; o = deque([])
|
o.append(b[0])
|
b = 'DANIEL['; o = deque(['D'])
|
h = '10 1 2 3 11 21 55 6 8'
|
o = h.split(' ')
|
h = '10 1 2 3 11 21 55 6 8'; o = ['10', '1', '2', '3', '11', '21', '55', '6', '8']
|
k = 1; p = 1
|
q = k / p
|
k = 1; p = 1; q = 1.0
|
d = {(1): 4, (2): 4, (3): 3, (6): 3, (5): 4, (4): 4}; e = 3
|
d[e] += 1
|
d = {1: 4, 2: 4, 3: 4, 6: 3, 5: 4, 4: 4}; e = 3
|
r = {(2): {'b', 'a'}}; v = 1
|
r.setdefault(v, set())
|
r = {2: {'a', 'b'}, 1: set()}; v = 1
|
l = ['a', 'ab', 'aba', 'b', 'ba', 'a']
|
l = list(set(l))
|
l = ['ba', 'b', 'a', 'ab', 'aba']
|
d = {'c': 4, 'd': 4}; z = 'e'
|
d[z] = 1
|
d = {'c': 4, 'd': 4, 'e': 1}; z = 'e'
|
e = []; g = {(0): {1, 4}, (1): {0}, (2): {3}, (3): {2}, (4): {0}}; y = 2
|
e = list(g[y])
|
e = [3]; g = {0: {1, 4}, 1: {0}, 2: {3}, 3: {2}, 4: {0}}; y = 2
|
e = 1; w = 0; x = [0, 5, None, 24]; y = 0
|
y = w + x[e]
|
e = 1; w = 0; x = [0, 5, None, 24]; y = 5
|
j = 2; v = 6.103515625e-05
|
v /= j
|
j = 2; v = 3.0517578125e-05
|
d = 1; u = 5
|
d += u
|
d = 6; u = 5
|
b = [4, 5, 6, 7]; p = [7, 4, 6, 5]; t = 4
|
t = p.index(b[-1])
|
b = [4, 5, 6, 7]; p = [7, 4, 6, 5]; t = 0
|
i = 7; k = ['HA', 'HC', 'HK', 'AH', 'AC', 'AK', ('C', 'A'), ('C', 'K'), ('K', 'H'), ('K', 'A'), ('K', 'C')]
|
k[i] = ''.join(k[i])
|
i = 7; k = ['HA', 'HC', 'HK', 'AH', 'AC', 'AK', ('C', 'A'), 'CK', ('K', 'H'), ('K', 'A'), ('K', 'C')]
|
a = 2971215073; o = 1836311903
|
o = a
|
a = 2971215073; o = 2971215073
|
h = 2; s = '{[(])}'; x = '['
|
x = s[h]
|
h = 2; s = '{[(])}'; x = '('
|
d = 3; x = 6; z = 3.141592653589793
|
x = int(z * d)
|
d = 3; x = 9; z = 3.141592653589793
|
c = '['; n = ['{', '{', '[']
|
n.append(c)
|
c = '['; n = ['{', '{', '[', '[']
|
k = 29
|
k = k + 1
|
k = 30
|
c = 18; s = 'WB'; u = {'BWB': 4, 'WBW': 2, 'WWB': 3, 'WBB': 5}
|
u[s] = c
|
c = 18; s = 'WB'; u = {'BWB': 4, 'WBW': 2, 'WWB': 3, 'WBB': 5, 'WB': 18}
|
i = 3; n = 4
|
n = i
|
i = 3; n = 3
|
b = 4; y = 4
|
y *= b ** (b - 1)
|
b = 4; y = 256
|
a = [7, 10, 9, 8, 7, 11, 6, 0, -2, -9]; f = 8
|
a.append(f)
|
a = [7, 10, 9, 8, 7, 11, 6, 0, -2, -9, 8]; f = 8
|
a = [['X', 'X', 'X', 'X', 'X'], ['X', '*', '.', 'M', 'X'], ['X', '.', 'X', '.', 'X'], ['X', 'X', 'X', 'X', 'X']]; m = 1; n = 3
|
a[m][n] = step % 10
|
a = [['X', 'X', 'X', 'X', 'X'], ['X', '*', '.', 5, 'X'], ['X', '.', 'X', '.', 'X'], ['X', 'X', 'X', 'X', 'X']]; m = 1; n = 3; t = 15
|
h = [1, 2, 3, 3]; i = 1
|
h.remove(i)
|
h = [2, 3, 3]; i = 1
|
a = '6'; p = 'append 9'
|
p, a = p.split()
|
a = '9'; p = 'append'
|
l = 300000; s = [(2, [1, 1])]
|
s.append((l, []))
|
l = 300000; s = [(2, [1, 1]), (300000, [])]
|
s = 'hackerha'
|
s = s[:-1]
|
s = 'hackerh'
|
l = 25; o = {(63): 1}
|
o[l] = 1
|
l = 25; o = {63: 1, 25: 1}
|
i = 2; z = 1
|
z = i
|
i = 2; z = 2
|
l = [0]; z = [3, 1, 2]
|
a = z[:l[0]] + [z[l[0] + 1]] + [z[l[0]]] + z[l[0] + 2:]
|
a = [1, 3, 2]; l = [0]; z = [3, 1, 2]
|
a = '7 8'; x = -1
|
x = int(a.split(' ')[1])
|
a = '7 8'; x = 8
|
i = 7; k = 2; t = 11; x = [2, 4, 5, 6, 7, 9, 11, 12]
|
t = x[i] + k
|
i = 7; k = 2; t = 14; x = [2, 4, 5, 6, 7, 9, 11, 12]
|
q = 1.2000000000000007e-53
|
q = q / 10
|
q = 1.2000000000000008e-54
|
i = '55'; y = [10, 1, 2, 3, 11, 21]
|
y.append(int(i))
|
i = '55'; y = [10, 1, 2, 3, 11, 21, 55]
|
c = 'a'; f = {'a': 0}
|
f[c] += 1
|
c = 'a'; f = {'a': 1}
|
h = [999, 1000, 1001, 1002, 1002]; z = [999, 1000, 0, 0, 0]
|
z[2] = h[2]
|
h = [999, 1000, 1001, 1002, 1002]; z = [999, 1000, 1001, 0, 0]
|
l = [0, 1, 1, 2, 3, 5, 8, 13, 3524578, 5702887, 9227465, 14930352, 24157817, 39088169, 63245986, 102334155]; t = 165580141
|
l.append(t)
|
l = [0, 1, 1, 2, 3, 5, 8, 13, 3524578, 5702887, 9227465, 14930352, 24157817, 39088169, 63245986, 102334155, 165580141]; t = 165580141
|
l = 205; p = {(203): 1, (204): 2, (205): 3, (206): 3, (207): 1, (208): 1}
|
p[l] = p[l] - 1
|
l = 205; p = {203: 1, 204: 2, 205: 2, 206: 3, 207: 1, 208: 1}
|
d = [[0, 0, 0, 0, 0, 0], [1, 1, 0, 0, 0, 0], [1, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]]; n = 2; r = 1
|
d[n][r] = d[n - 1][r - 1] + d[n - 1][r]
|
d = [[0, 0, 0, 0, 0, 0], [1, 1, 0, 0, 0, 0], [1, 2, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]]; n = 2; r = 1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.