start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
s = ['2', '6'] | w = int(s[0]) | s = ['2', '6']; w = 2 |
f = ['-3', '1', '17', '68', '71'] | c = abs(int(f[0]) - int(f[len(f) - 1])) | c = 74; f = ['-3', '1', '17', '68', '71'] |
i = 7; j = 3; l = 1 | l = i - j | i = 7; j = 3; l = 4 |
z = 3.0 | p = (z - 1) * 9 + z * 1 | p = 21.0; z = 3.0 |
e = '5'; l = '0'; q = '5'; s = '1' | e, s, l, q = [int(e), int(s), int(l), int(q)] | e = 5; l = 0; q = 5; s = 1 |
b = 3; k = 3 | b += k | b = 6; k = 3 |
d = 4; i = 0; j = 0; l = 3 | z = 2 * (l - i) + 2 * (d - j) | d = 4; i = 0; j = 0; l = 3; z = 14 |
n = 5; y = """5 4\n1 2 3 4 5\n\n\n\n""" | y = [None] * n | n = 5; y = [None, None, None, None, None] |
x = 4; y = 2; z = 3 | z = abs(x - y) | x = 4; y = 2; z = 2 |
i = 2; j = 2; m = [[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]]; y = 4 | y = m[j - 1][i] + m[j - 1][i - 1] + m[j - 1][i + 1] | i = 2; j = 2; m = [[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]]; y = 1 |
i = 0; j = 1; r = ['1112', '1912', '1892', '1234']; x = '1' | x = r[i][j] | i = 0; j = 1; r = ['1112', '1912', '1892', '1234']; x = '1' |
l = 3; s = 2 | b = max(0, l - s) | b = 1; l = 3; s = 2 |
g = [0]; i = 1 | g.append(i) | g = [0, 1]; i = 1 |
i = 4; k = 'BABABA'; o = 'BABA' | o = o + k[i] | i = 4; k = 'BABABA'; o = 'BABAB' |
g = 3; i = 3; m = 5 | g += i % m | g = 6; i = 3; m = 5 |
f = 1; m = 2; s = '99910001001' | d = int(s[f:f + m]) | d = 99; f = 1; m = 2; s = '99910001001' |
g = {'i': 2, 'u': 2, 'a': 2, '\n': 1, 'o': 2, 'e': 2} | r = list(g.keys()) | g = {'i': 2, 'u': 2, 'a': 2, '\n': 1, 'o': 2, 'e': 2}; r = ['i', 'u', 'a', '\n', 'o', 'e'] |
c = 'a'; i = 7; j = 'gfedcbagfedcba' | c = j[i] | c = 'g'; i = 7; j = 'gfedcbagfedcba' |
x = 2; z = '1111110110001110010010110011' | z = str(x % 2) + z | x = 2; z = '01111110110001110010010110011' |
i = '123 3' | o = i.split(' ')[1] | i = '123 3'; o = '3' |
g = 'x'; u = {'y', 'x'} | u.add(g) | g = 'x'; u = {'x', 'y'} |
e = 10 | e //= 10 | e = 1 |
q = 6 | q += 1 | q = 7 |
u = [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, 0, 2] | u = [0] * 96 | u = [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, 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, 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, 0, 0, 0, 0, 0, 0] |
a = [[1, 1, 1, 2], [1, 9, 1, 2], [1, 8, 9, 2], []]; i = 3; j = 0 | a[i].append(j) | a = [[1, 1, 1, 2], [1, 9, 1, 2], [1, 8, 9, 2], [0]]; i = 3; j = 0 |
g = 'F'; i = {'D': 2, '_': 3, 'F': 1, 'Q': 3} | i[g] += 1 | g = 'F'; i = {'D': 2, '_': 3, 'F': 2, 'Q': 3} |
q = 9; x = 7 | q += c * x | c = -12; q = -75; x = 7 |
x = 89; y = 144 | x, y = y, x + y | x = 144; y = 233 |
i = 5; l = [-7330761, -6461594, -3916237, -3620601, -357920, -20, 30, 266854, 6246457, 7374819]; w = [-20] | w.append(l[i + 1]) | i = 5; l = [-7330761, -6461594, -3916237, -3620601, -357920, -20, 30, 266854, 6246457, 7374819]; w = [-20, 30] |
i = 0; j = 3; p = ['a', 'ab']; s = 'abcd' | p.append(''.join(sorted(s[i:j]))) | i = 0; j = 3; p = ['a', 'ab', 'abc']; s = 'abcd' |
b = 4; m = '42' | b = int(m) | b = 42; m = '42' |
l = 7; n = 'ededdee'; s = 'ededdeededee'; x = 1 | n = s[x:x + l] | l = 7; n = 'deddeed'; s = 'ededdeededee'; x = 1 |
a = 6.0; i = 1; l = 1.3333333333333333; o = [6, 5, 2] | a += l * o[i] | a = 12.666666666666666; i = 1; l = 1.3333333333333333; o = [6, 5, 2] |
h = ' ###' | h = h + '#' | h = ' ####' |
c = [10, 100, 300, 200, 1000]; v = '20\n' | c.append(int(v)) | c = [10, 100, 300, 200, 1000, 20]; v = '20\n' |
e = 'p'; s = ' ' | s = e.lower() | e = 'p'; s = 'p' |
i = [{}, {}, {(2): 1}, {(3): 1}, {}]; j = 1; m = 4; x = 2 | i[m][x] = j | i = [{}, {}, {2: 1}, {3: 1}, {2: 1}]; j = 1; m = 4; x = 2 |
c = 'c'; m = [0, {'h': [1, {...}], 'a': [1, {...}]}] | m[1][c] = [0, {}] | c = 'c'; m = [0, {'h': [1, {Ellipsis}], 'a': [1, {Ellipsis}], 'c': [0, {}]}] |
d = 0.0003662109375; n = 0.00018310546875; p = 2 | d = n % p | d = 0.00018310546875; n = 0.00018310546875; p = 2 |
a = 'abba'; e = 'b'; i = 1; j = 3 | e = a[i:j] | a = 'abba'; e = 'bb'; i = 1; j = 3 |
o = 3; p = '010'; s = '010203' | p = s[:o + 1] | o = 3; p = '0102'; s = '010203' |
o = 0; z = [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] | z[o] += 1 | o = 0; z = [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] |
i = 2; k = 'ccccc' | i = k.count('b') | i = 0; k = 'ccccc' |
a = 'aab' | l.append(a) | a = 'aab'; l = ['aab'] |
p = [2, 3]; x = 8 | p.append(x) | p = [2, 3, 8]; x = 8 |
t = 2; w = 3 | t = w | t = 3; w = 3 |
i = 1; m = [3, '1', '2'] | m[i] = int(m[i]) | i = 1; m = [3, 1, '2'] |
i = 0; x = [1, 3, 2]; y = [1, 3, 2] | y.remove(x[i]) | i = 0; x = [1, 3, 2]; y = [3, 2] |
a = 4; b = 3; c = 12; e = {(1, 2): 24, (2, 1): 24, (1, 4): 20, (4, 1): 20, (3, 1): 3, (1, 3): 3} | e[a, b] = min(e.get((a, b), c), c) | a = 4; b = 3; c = 12; e = {(1, 2): 24, (2, 1): 24, (1, 4): 20, (4, 1): 20, (3, 1): 3, (1, 3): 3, (4, 3): 12} |
i = 140; v = ['18', '60'] | i += int(v[1]) | i = 200; v = ['18', '60'] |
b = 1; c = 'B'; g = 'DABCD'; p = 2 | b = g.find(c, p) | b = 2; c = 'B'; g = 'DABCD'; p = 2 |
s = [4, 4, 4]; x = 1 | x = s[1] | s = [4, 4, 4]; x = 4 |
d = 0.497664; x = 2.9859839999999997; z = 5 | d = x / z | d = 0.5971968; x = 2.9859839999999997; z = 5 |
n = 11; u = 'came from the' | n = len(u) | n = 13; u = 'came from the' |
z = '1111111' | z = z + '1' | z = '11111111' |
a = '5'; h = '3' | a, h = int(a), int(h) | a = 5; h = 3 |
l = 1; t = [3, 1, 2] | l = len(t) | l = 3; t = [3, 1, 2] |
h = [[1, 1], [2, 2], [2, 2], [1, 3]]; r = [1, 1] | h.append(r) | h = [[1, 1], [2, 2], [2, 2], [1, 3], [1, 1]]; r = [1, 1] |
c = [20, 10, 10, 30]; m = 50 | m = c.pop() | c = [20, 10, 10]; m = 30 |
y = '56 125 56 49' | y = [int(x) for x in y.split(' ')] | y = [56, 125, 56, 49] |
i = 2; l = 1; q = 'b'; s = 'abba' | q = list(s[i:i + l]) | i = 2; l = 1; q = ['b']; s = 'abba' |
f = {}; x = 1 | f[x] = 0 | f = {1: 0}; x = 1 |
d = 0; g = 2; o = 0; v = 0 | g = d + o + v | d = 0; g = 0; o = 0; v = 0 |
g = [7]; h = [[5, 3], [7]]; j = 7; n = 2; x = 1 | g = h[(x ^ j) % n] | g = [5, 3]; h = [[5, 3], [7]]; j = 7; n = 2; x = 1 |
c = 5; f = 2.8593239759476345; v = 0.4765539959912724 | v = f / c | c = 5; f = 2.8593239759476345; v = 0.5718647951895269 |
j = 4; m = 'AABABACABAC'; w = 'ABACABAz' | m += w[j] | j = 4; m = 'AABABACABACA'; w = 'ABACABAz' |
b = [6, 7, 6]; i = 2; n = 3 | b = [(0) for i in range(n)] | b = [0, 0, 0]; i = 2; n = 3 |
e = [30, 50]; z = 20 | e.append(z) | e = [30, 50, 20]; z = 20 |
e = [1, 3, 2]; p = 3 | p = len(e) | e = [1, 3, 2]; p = 3 |
b = 3; g = 35; w = 3; x = 1; y = 9 | g = b * x + w * y | b = 3; g = 30; w = 3; x = 1; y = 9 |
i = 3; p = {(5): 1}; q = [2, 1, 5, 3, 4] | p[q[i - 1]] += 1 | i = 3; p = {5: 2}; q = [2, 1, 5, 3, 4] |
k = 3; l = 3, 2, 1; x = 0 | k = l[x] ^ l[x + 1] | k = 1; l = (3, 2, 1); x = 0 |
q = 4.4176303858686795e-156 | q /= 42 | q = 1.0518167585401618e-157 |
j = 1; u = [3, 3, 3, 4]; z = 1 | j = u[z] | j = 3; u = [3, 3, 3, 4]; z = 1 |
n = 8 | c = [False] * (n + 1) | c = [False, False, False, False, False, False, False, False, False]; n = 8 |
t = {'level': 20} | e = t.pop('stream', None) | e = None; t = {'level': 20} |
b = 'acbd'; i = 2; s = 'abcd' | b = s[:i] | b = 'ab'; i = 2; s = 'abcd' |
i = 106; o = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'] | o.append(chr(i)) | i = 106; o = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'] |
c = ['e', 'r', 'r', 'a', 'n', 'k'] | c = c[1:] | c = ['r', 'r', 'a', 'n', 'k'] |
p = 3; s = 6 | s = p * 3 | p = 3; s = 9 |
a = [1, 2, 3, 3]; j = 0; x = [0, 6, 3, 0] | x[j] = x[j + 1] + a[j + 1] | a = [1, 2, 3, 3]; j = 0; x = [8, 6, 3, 0] |
d = 4; v = 4 | g = 2 * d + 2 * v - 8 * layer - 4 | d = 4; g = 140; j = -16; v = 4 |
b = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 11 | b[i] = b[i - 1] + b[i - 2] | b = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 11 |
k = 2.7755575615628914e-17 | k /= 2 | k = 1.3877787807814457e-17 |
c = 2; g = [1, 2, 1, 2, 1, 2, 1, 2]; i = 3 | c = g[i] + 1 | c = 3; g = [1, 2, 1, 2, 1, 2, 1, 2]; i = 3 |
h = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 1; j = 0; q = [1, 6, 9] | h[i] = max(h[i], h[i - q[j]] + q[j]) | h = [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 1; j = 0; q = [1, 6, 9] |
d = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | d.append(0) | d = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
d = '1000'; i = 9 | d = bin(i)[2:] | d = '1001'; i = 9 |
i = 2; x = [2, 5, '3', '6'] | x[i] = int(x[i]) | i = 2; x = [2, 5, 3, '6'] |
k = {1, 2} | r = k | k = {1, 2}; r = {1, 2} |
i = '4'; w = {'1': 1, '2': 1, '3': 1, '6': 1, '5': 1, '4': 1} | w[i] += 1 | i = '4'; w = {'1': 1, '2': 1, '3': 1, '6': 1, '5': 1, '4': 2} |
e = '1012\n'; y = 12 | y = int(e) | e = '1012\n'; y = 1012 |
b = [1, 2, 2, 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]; d = 208; q = 203 | b[d - q] += 1 | b = [1, 2, 2, 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]; d = 208; q = 203 |
i = 0; m = 4; n = [4, 2, 1]; u = 2 | m += n[i] * u | i = 0; m = 12; n = [4, 2, 1]; u = 2 |
i = [73, 48, 95, 95, 33, 47, 98, 91, 95]; m = 93 | i.append(m) | i = [73, 48, 95, 95, 33, 47, 98, 91, 95, 93]; m = 93 |
r = {1}; y = 2 | r.add(y) | r = {1, 2}; y = 2 |
i = 1; z = 0 | z = i | i = 1; z = 1 |
b = 15; d = 5 | o = b + d | b = 15; d = 5; o = 20 |
c = 1; i = 2 | i = c | c = 1; i = 1 |
c = [0, 0, 1, 0, 0, 1, 1, 0]; e = 93; i = 0 | e -= 1 if c[i] == 0 else 3 | c = [0, 0, 1, 0, 0, 1, 1, 0]; e = 92; i = 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.