start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
j = 1; o = '2'
|
j += int(o)
|
j = 3; o = '2'
|
o = 'aaaaaaaaaab'; v = 'gurwgrb'
|
v = o
|
o = 'aaaaaaaaaab'; v = 'aaaaaaaaaab'
|
w = [1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1]; x = 1; y = 3
|
w.append(abs(int(x) - int(y)))
|
w = [1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2]; x = 1; y = 3
|
h = 5.0
|
w = h
|
h = 5.0; w = 5.0
|
u = 0; z = [[1000000, False], [0, True], [6, True], [6, True], [1000000, False]]
|
z[u][1] = True
|
u = 0; z = [[1000000, True], [0, True], [6, True], [6, True], [1000000, False]]
|
t = [3]; v = 1
|
t = [v]
|
t = [1]; v = 1
|
m = 2; n = 1; q = [3, 2]; x = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]
|
q.append(x[m][n])
|
m = 2; n = 1; q = [3, 2, 2]; x = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]
|
n = 1.2e-19
|
n = n / 10
|
n = 1.2000000000000001e-20
|
b = 1
|
b += 1
|
b = 2
|
a = ['5', '3']
|
t = a[-1]
|
a = ['5', '3']; t = '3'
|
h = ['i', 'fi', 'afi', 'afii', 'afiil', 'afiilu', 'afilu', 'afhilu', 'afhiklu', 'afhiklqu', 'afhiklqqu']; i = 2; j = 2; s = 'ifailuhkqq'
|
h.append(''.join(sorted(s[i:j + 1])))
|
h = ['i', 'fi', 'afi', 'afii', 'afiil', 'afiilu', 'afilu', 'afhilu', 'afhiklu', 'afhiklqu', 'afhiklqqu', 'a']; i = 2; j = 2; s = 'ifailuhkqq'
|
n = 1.2000000000000004e-27
|
n = n / 10
|
n = 1.2000000000000003e-28
|
b = 1.2000000000000008e-52
|
b = b / 10
|
b = 1.2000000000000007e-53
|
a = 60; i = 11; j = 56
|
a = i ^ j
|
a = 51; i = 11; j = 56
|
b = 0; k = 2; x = 2
|
b += k * x
|
b = 4; k = 2; x = 2
|
d = [['h', 'a', 'v', 'e'], ['a', 'n', 'i', 'c'], ['e', 'd', 'a', 'y']]; i = 3; j = 1; v = [['h', 'a', 'e'], ['a', 'n', 'd'], ['v', 'i', 'a'], ['e', 0, 0]]
|
v[i][j] = d[j][i]
|
d = [['h', 'a', 'v', 'e'], ['a', 'n', 'i', 'c'], ['e', 'd', 'a', 'y']]; i = 3; j = 1; v = [['h', 'a', 'e'], ['a', 'n', 'd'], ['v', 'i', 'a'], ['e', 'c', 0]]
|
f = 4; n = 6; z = [[], [2, 3, 4, 5, 6, 7], [3, 4, 5, 6, 7, 8], [4, 5, 6, 7, 8, 9], [5], [ ], [], [], [], [], [], []]
|
z[f].append(n)
|
f = 4; n = 6; z = [[], [2, 3, 4, 5, 6, 7], [3, 4, 5, 6, 7, 8], [4, 5, 6, 7, 8, 9], [5, 6], [], [], [], [], [], [], []]
|
n = 5; x = [1001, 3, 2, 1, 0]
|
x = [0] * n
|
n = 5; x = [0, 0, 0, 0, 0]
|
a = ['.....', '.x.x.', '.....', '.....']; g = 0; i = 0; j = 4
|
z = a[i + depth][g:j + 1]
|
a = ['.....', '.x.x.', '.....', '.....']; c = True; g = 0; i = 0; j = 4; z = '.x.x.'
|
b = 'xyyx'; e = 'op'; g = 2
|
e = b[g:]
|
b = 'xyyx'; e = 'yx'; g = 2
|
d = deque([4, 5, 1, 2, 3])
|
d.rotate(-1)
|
d = deque([5, 1, 2, 3, 4])
|
a = 11; k = 2; n = 7; x = [2, 4, 5, 6, 7, 9, 11, 12]
|
a = x[n] + k
|
a = 14; k = 2; n = 7; x = [2, 4, 5, 6, 7, 9, 11, 12]
|
b = [(0, '-'), (6, '-'), (0, '-'), (6, '-'), (4, '-'), (2, 'not'), (4, 'is' ), (2, 'to'), (4, 'the')]; e = [[(0, '-'), (2, '-')], [], [], [], [], [], [(1, '-'), (3, '-')], [], [], [], [], [], [], [], []]; i = 4
|
e[b[i][0]].append((i, b[i][1]))
|
b = [(0, '-'), (6, '-'), (0, '-'), (6, '-'), (4, '-'), (2, 'not'), (4, 'is'), (2, 'to'), (4, 'the')]; e = [[(0, '-'), (2, '-')], [], [], [], [(4, '-')], [], [(1, '-'), (3, '-')], [], [], [], [], [], [], [], []]; i = 4
|
d = {(2): 0, (1): 1}; i = 0; j = 1; n = 2
|
j = d[n - i]
|
d = {2: 0, 1: 1}; i = 0; j = 0; n = 2
|
g = 6.0; u = 8
|
u = g - 1
|
g = 6.0; u = 5.0
|
i = 1; p = [-2, 3, -2]; t = -2
|
p[i] += t
|
i = 1; p = [-2, 1, -2]; t = -2
|
g = 5; i = 1; q = [1, 2, 4, 3, 5]
|
g = q[i]
|
g = 2; i = 1; q = [1, 2, 4, 3, 5]
|
b = 18; t = 8
|
t = b
|
b = 18; t = 18
|
c = 2; r = 2; v = [['X', 'X', 0, 0], [0, 'X', 'X', 0], [0, 0, 1, 0], [1, 0, 0, 0]]
|
v[r][c] = 'X'
|
c = 2; r = 2; v = [['X', 'X', 0, 0], [0, 'X', 'X', 0], [0, 0, 'X', 0], [1, 0, 0, 0]]
|
c = [2, 4, 2]; t = '6\n'
|
c.append(int(t))
|
c = [2, 4, 2, 6]; t = '6\n'
|
d = 2; z = 40
|
z += d
|
d = 2; z = 42
|
d = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; i = 5; s = 30; u = 4
|
s = d[i + u - 1] - d[i]
|
d = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; i = 5; s = 80; u = 4
|
f = '5'; l = '01'
|
f = str(int(l) + 1)
|
f = '2'; l = '01'
|
i = 11; s = [2, 3, 5, 2, 3, 4, 5, 6, 9, 10]
|
s.append(i)
|
i = 11; s = [2, 3, 5, 2, 3, 4, 5, 6, 9, 10, 11]
|
z = 3.552713678800501e-14
|
z /= 2
|
z = 1.7763568394002505e-14
|
l = 8; r = 14; u = 0.5; v = 9
|
u = min(abs(l - v), abs(r - v))
|
l = 8; r = 14; u = 1; v = 9
|
h = [0, 1, 1, 1, 999]; i = 4; s = 0
|
s = s + sum(h[i:])
|
h = [0, 1, 1, 1, 999]; i = 4; s = 999
|
c = '25'; j = '97'; x = {(32): 62, (42): 68, (12): 98, (95): 13}
|
x[int(j)] = int(c)
|
c = '25'; j = '97'; x = {32: 62, 42: 68, 12: 98, 95: 13, 97: 25}
|
y = 1, 1, 1
|
i = sorted(y)
|
i = [1, 1, 1]; y = (1, 1, 1)
|
i = 5
|
i += 1
|
i = 6
|
v = '2 4 5 9'
|
v = v.split()
|
v = ['2', '4', '5', '9']
|
f = '8'; w = '99'; y = '16'
|
w, y, f = [int(w), int(y), int(f)]
|
f = 8; w = 99; y = 16
|
j = 0; v = [2, 1, 3, 1, 2]
|
v[j + 1] = v[j]
|
j = 0; v = [2, 2, 3, 1, 2]
|
g = 2
|
g -= 1
|
g = 1
|
a = 'b'; i = 1; j = 3; s = 'abba'
|
a = ''.join(sorted(s[i:j]))
|
a = 'bb'; i = 1; j = 3; s = 'abba'
|
a = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; n = 8191
|
a.append(n % 2)
|
a = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; n = 8191
|
j = ['a', 's']; z = 97, 116
|
j = list(map(chr, z))
|
j = ['a', 't']; z = (97, 116)
|
a = [9]; x = 7
|
a.append(x)
|
a = [9, 7]; x = 7
|
i = 0; j = 1; s = ['1', '2', '3', '4']; t = [['1']]
|
t[i].append(s[j])
|
i = 0; j = 1; s = ['1', '2', '3', '4']; t = [['1', '2']]
|
j = {(0, 0): 1, (1, 0): 1, (1, 1): 1, (2, 1): 2, (2, 2): 1, (3, 1): 3}; n = 2; r = 1; w = 4
|
j[n, r] = w
|
j = {(0, 0): 1, (1, 0): 1, (1, 1): 1, (2, 1): 4, (2, 2): 1, (3, 1): 3}; n = 2; r = 1; w = 4
|
i = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; m = 0; n = 0
|
i[n][m] = True
|
i = [[True, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; m = 0; n = 0
|
a = 10; b = 100; y = [1, 2]
|
y = [a, b]
|
a = 10; b = 100; y = [10, 100]
|
a = 63245986; t = {1, 2, 3, 5, 2178309, 8, 13, 144, 75025, 21, 2584, 46368, 34, 832040, 39088169, 17711, 14930352, ...}
|
t.add(a)
|
a = 63245986; t = {1, 2, 3, 2178309, 5, 8, 13, 144, 75025, 21, 2584, 46368, 34, 63245986, 832040, 39088169, 17711, 14930352, Ellipsis}
|
i = 20; x = 361
|
x = i * i
|
i = 20; x = 400
|
d = [0, 0]; i = 0; k = 1
|
d[i] = i + k + 1
|
d = [2, 0]; i = 0; k = 1
|
a = '555'
|
a = a + str(5)
|
a = '5555'
|
c = 2; m = 0; n = 1; x = [[1, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0]]
|
y = x[m][n - c] if n - c >= 0 else 0
|
c = 2; m = 0; n = 1; x = [[1, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0]]; y = 0
|
z = 'abc'
|
h = len(z) - 1
|
h = 2; z = 'abc'
|
c = {'7': [0, 5], '1': [1, 4], '3': [2], '4': [3]}; g = '7'
|
x = c[g]
|
c = {'7': [0, 5], '1': [1, 4], '3': [2], '4': [3]}; g = '7'; x = [0, 5]
|
d = 2; j = [[], [], [3], []]; k = 3
|
j[k].append(d)
|
d = 2; j = [[], [], [3], [2]]; k = 3
|
e = 2; h = 2; s = [(1, 0), (1, 1), (1, 1), (1, 0), (0, 2), (0, 1), (2, 1), (2, 0), (1, 2), (1, 1), (1, 3), (3, 2)]
|
s.append((e + 1, h - 1))
|
e = 2; h = 2; s = [(1, 0), (1, 1), (1, 1), (1, 0), (0, 2), (0, 1), (2, 1), (2, 0), (1, 2), (1, 1), (1, 3), (3, 2), (3, 1)]
|
i = 1
|
o.append(i - 1)
|
i = 1; o = [0]
|
e = [1, 3, 3, 1]; i = 2; t = [1, 4]
|
t += [(e[i - 1] + e[i]) % 10 ** 9]
|
e = [1, 3, 3, 1]; i = 2; t = [1, 4, 6]
|
g = [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]
|
g = g + [0]
|
g = [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, 0]
|
b = [1]; c = [8, 6, 4]
|
c.append(len(b))
|
b = [1]; c = [8, 6, 4, 1]
|
c = 1; q = '1 0 3'; x = 1; y = 7
|
c, x, y = map(int, q.split(' '))
|
c = 1; q = '1 0 3'; x = 0; y = 3
|
j = 832040; x = 514229
|
j = x + j
|
j = 1346269; x = 514229
|
a = 2; l = 2
|
h = 2 * a / l
|
a = 2; h = 2.0; l = 2
|
d = 1
|
d += 1
|
d = 2
|
l = 'c'
|
w.add(l)
|
l = 'c'; w = {'c'}
|
x = 0
|
b.append(x)
|
b = [0]; x = 0
|
g = 189; m = 1000; n = 25, 81, 100
|
g = max(sum(n) % m, g)
|
g = 206; m = 1000; n = (25, 81, 100)
|
i = 'e'; s = {'c': 4, 'd': 4, 'e': 0}
|
s[i] += 1
|
i = 'e'; s = {'c': 4, 'd': 4, 'e': 1}
|
e = {'a': 1, 'aa': 1, 'aab': 1, 'd': 1, 'de': 1, 'def': 1, 'defg': 1, 'defga': 1}; i = 1; x = 6; y = ['aab', 'defgab', 'abcde', 'aabcde', 'cedaaa', 'bbbbbbbbbb', 'jabjjjad']
|
e[y[i][:x]] = 1
|
e = {'a': 1, 'aa': 1, 'aab': 1, 'd': 1, 'de': 1, 'def': 1, 'defg': 1, 'defga': 1, 'defgab': 1}; i = 1; x = 6; y = ['aab', 'defgab', 'abcde', 'aabcde', 'cedaaa', 'bbbbbbbbbb', 'jabjjjad']
|
d = [1]; m = 1; n = 0; z = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]
|
d.append(z[m][n])
|
d = [1, 2]; m = 1; n = 0; z = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]
|
f = ['1', '1st', '2', '2nd', '3', '3rd', '4', '4th', '5', '5th', '6', '6th', '7', '7th', '8', '8th']; i = 9
|
f.append(str(i))
|
f = ['1', '1st', '2', '2nd', '3', '3rd', '4', '4th', '5', '5th', '6', '6th', '7', '7th', '8', '8th', '9']; i = 9
|
x = 2; z = 50
|
z = z ^ x
|
x = 2; z = 48
|
n = 10; v = [-5, -1, 2, 2, 3, 4]
|
n = v[len(v) - 1]
|
n = 4; v = [-5, -1, 2, 2, 3, 4]
|
f = [(0, '-'), (6, '-'), (0, '-'), (6, '-'), (4, '-'), (0, '-'), (4, 'that' ), (3, 'be'), (0, 'to')]; n = ['1', 'be']
|
f.append((int(n[0]), n[1]))
|
f = [(0, '-'), (6, '-'), (0, '-'), (6, '-'), (4, '-'), (0, '-'), (4, 'that'), (3, 'be'), (0, 'to'), (1, 'be')]; n = ['1', 'be']
|
d = '10000000000'
|
d += '0'
|
d = '100000000000'
|
s = 'aaab'
|
n = len(s)
|
n = 4; s = 'aaab'
|
i = 2; j = 66560; p = 3; z = 'ifailuhkqq'
|
j += (p + 1) ** (ord(z[i]) - ord('a'))
|
i = 2; j = 66561; p = 3; z = 'ifailuhkqq'
|
g = 2; n = 1; w = 2
|
g = n + g % w
|
g = 1; n = 1; w = 2
|
l = [7, 8, 9]
|
l.sort(reverse=True)
|
l = [9, 8, 7]
|
a = 1
|
a += 1
|
a = 2
|
c = 4; j = [['O', 'O', 'O', 'O', 'O', 'O'], ['O', 'O', '.', '.', 'O', 'O'], ['O', 'O', 'O', '.', 'O', 'O'], ['O', 'O', 'O', '.', 'O', 'O'], ['O', 'O', 'O', 'O', 'O', 'O'], ['O', 'O', 'O', 'O', 'O', 'O']]; r = 2
|
j[r][c + 1] = '.'
|
c = 4; j = [['O', 'O', 'O', 'O', 'O', 'O'], ['O', 'O', '.', '.', 'O', 'O'], ['O', 'O', 'O', '.', 'O', '.'], ['O', 'O', 'O', '.', 'O', 'O'], ['O', 'O', 'O', 'O', 'O', 'O'], ['O', 'O', 'O', 'O', 'O', 'O']]; r = 2
|
x = 12
|
x += 1
|
x = 13
|
n = '10\n15\n\n\n\n'; v = 1
|
n = v
|
n = 1; v = 1
|
a = 2; w = 1
|
w = a
|
a = 2; w = 2
|
t = '{'
|
x.append(t)
|
t = '{'; x = ['{']
|
m = [0, 1]; x = 2
|
m.append(x)
|
m = [0, 1, 2]; x = 2
|
h = ['a', 'b', 'a']; s = ['a', 'b', 'a']
|
x = len(s) - len(h)
|
h = ['a', 'b', 'a']; s = ['a', 'b', 'a']; x = 0
|
h = 2; j = 1; v = 1
|
v = h ^ j
|
h = 2; j = 1; v = 3
|
c = -1; t = -19; y = 18.0
|
y = t / c
|
c = -1; t = -19; y = 19.0
|
d = {'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0, 'f': 0}; i = 6
|
d[chr(ord('a') + i)] = 0
|
d = {'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0, 'f': 0, 'g': 0}; i = 6
|
l = -1; t = 1.0
|
p = int(round((-l + t) / (2 * A)))
|
l = -1; p = 0; t = 1.0
|
f = 1; j = 6
|
f = j - 1
|
f = 5; j = 6
|
b = [10]; l = 5
|
b.append(l)
|
b = [10, 5]; l = 5
|
f = '4'; k = '4'
|
f = str(int(k) + 1)
|
f = '5'; k = '4'
|
b = [[1, 2, 3], [3, 2, 1]]; r = [1, 2, 3]
|
b.append(r)
|
b = [[1, 2, 3], [3, 2, 1], [1, 2, 3]]; r = [1, 2, 3]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.