start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
g = 1561; q = 608 | g += q | g = 2169; q = 608 |
c = 439006.0; i = 10 | j = c / i | c = 439006.0; i = 10; j = 43900.6 |
i = 2; p = 4; z = 9 | z = i * p | i = 2; p = 4; z = 8 |
a = 2; q = {(1): {0}} | q[a] = set() | a = 2; q = {1: {0}, 2: set()} |
w = 1; y = {0} | y.add(w) | w = 1; y = {0, 1} |
b = 0; c = 1; g = [(0, 0), (0, 1), (1, 0), (0, 0), (0, 1), (0, 2), (1, 0), (1, 1), (1, 2), (2, 0)]; r = 1; x = 1 | g.append((r + x, c + b)) | b = 0; c = 1; g = [(0, 0), (0, 1), (1, 0), (0, 0), (0, 1), (0, 2), (1, 0), (1, 1), (1, 2), (2, 0), (2, 1)]; r = 1; x = 1 |
c = '5'; x = [False, {}] | x[1][c] = [False, {}] | c = '5'; x = [False, {'5': [False, {}]}] |
q = 5 | q += 1 | q = 6 |
j = {6}; z = 7 | j = set([z]) | j = {7}; z = 7 |
b = {2, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 44, 45, 46, ...}; i = 44 | b.discard(i) | b = {2, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 46, Ellipsis}; i = 44 |
c = 5; f = [0, 0, 0, 0, 0]; i = 3; s = [4, 3, 2] | f[s.pop()] = c - i | c = 5; f = [0, 0, 2, 0, 0]; i = 3; s = [4, 3] |
i = 0; r = 'zxc'; s = 'acxz' | r += s[i] | i = 0; r = 'zxca'; s = 'acxz' |
c = [1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]; i = 20 | c[i] += 1 | c = [1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0]; i = 20 |
b = 3; f = 0.3584073464102069; p = 3.141592653589793; u = 8 | f = abs(u / b - p) | b = 3; f = 0.4749259869231266; p = 3.141592653589793; u = 8 |
j = 5; s = 2.8593239759476345; x = 0.4765539959912724 | x = s / j | j = 5; s = 2.8593239759476345; x = 0.5718647951895269 |
d = 9; k = 3 | d += k | d = 12; k = 3 |
j = 11; l = 97; p = 4; s = 'aaabbbbcccddd' | p = p + (ord(s[j]) - l + 1) | j = 11; l = 97; p = 8; s = 'aaabbbbcccddd' |
c = 'B'; l = ['a'] | l.append(c) | c = 'B'; l = ['a', 'B'] |
a = 'ABABABAB'; e = ['AB', 'BA']; x = 2 | e.append(a[x:x + 2]) | a = 'ABABABAB'; e = ['AB', 'BA', 'AB']; x = 2 |
j = 9; w = 5 | j, w = 0, 0 | j = 0; w = 0 |
f = [7, 4] | k = f[1] | f = [7, 4]; k = 4 |
h = 9223372036854775807; j = 3 | h = min(h, j) | h = 3; j = 3 |
i = 3; x = ['3', '2', '1'] | r = [[(0) for x in range(i)] for x in range(i)] | i = -94; r = []; x = ['3', '2', '1'] |
u = [[1, 2, 3]] | s = u[0] if u else None | s = [1, 2, 3]; u = [[1, 2, 3]] |
t = 610; x = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377] | x.append(t) | t = 610; x = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610] |
g = '100'; h = {(1): [1, 2]}; u = 3 | h[u] = [int(g)] | g = '100'; h = {1: [1, 2], 3: [100]}; u = 3 |
s = 1.2340000000000002e-17 | s /= 10 | s = 1.2340000000000001e-18 |
f = [[-12, -7], [12, -7], [-12, 7], [12, 7], [-7, -12], [-4, 12], [4, -12], [-4, -12], [12, 4], [-12, 4]]; i = [4, 12] | f.append([i[1], -i[0]]) | f = [[-12, -7], [12, -7], [-12, 7], [12, 7], [-7, -12], [-4, 12], [4, -12], [-4, -12], [12, 4], [-12, 4], [12, -4]]; i = [4, 12] |
f = ['1', '3', '', '', ''] | v = f[1:] | f = ['1', '3', '', '', '']; v = ['3', '', '', ''] |
s = 'MonthNum_35 914800'; v = 1065316 | v = int(s.split()[1]) | s = 'MonthNum_35 914800'; v = 914800 |
f = ['$']; j = 1; l = '$a ' | f.append(l[j]) | f = ['$', 'a']; j = 1; l = '$a ' |
c = 'D'; l = ['A'] | l.append(c) | c = 'D'; l = ['A', 'D'] |
l = [93, 83, 90]; z = [76, 76, 95, 96, 79, 74, 97, 97, 90] | z.append(l[2]) | l = [93, 83, 90]; z = [76, 76, 95, 96, 79, 74, 97, 97, 90, 90] |
b = 1922; i = 960; x = 3 | b = i * x | b = 2880; i = 960; x = 3 |
e = 2; n = 10; s = 'aba' | a = n / len(s) * e | a = 6.666666666666667; e = 2; n = 10; s = 'aba' |
f = ['d', 'b', 'a', 'c']; x = 'db' | f.append(x) | f = ['d', 'b', 'a', 'c', 'db']; x = 'db' |
j = 1; t = [8, 3, 4, 1, 9, 6, 7, 2]; u = 4; z = [3, 4, 9, 8, 2, 1, 6, 7] | u += abs(z[j] - t[j]) | j = 1; t = [8, 3, 4, 1, 9, 6, 7, 2]; u = 5; z = [3, 4, 9, 8, 2, 1, 6, 7] |
a = [1, 3, 2, 6, 1, 2]; i = 2; j = 3; m = 5 | m = a[i] + a[j] | a = [1, 3, 2, 6, 1, 2]; i = 2; j = 3; m = 8 |
i = 1 | n = str(i) | i = 1; n = '1' |
f = 9 | f = 10 ** 9 | f = 1000000000 |
a = [72, 67, 92, 95, 59, 58, 95, 94, 84, 83, 70, 79, 67, 73, 87, 86, 63, 92, 80, 76]; n = 20 | n = len(a) | a = [72, 67, 92, 95, 59, 58, 95, 94, 84, 83, 70, 79, 67, 73, 87, 86, 63, 92, 80, 76]; n = 20 |
c = 20; l = 30; m = 100 | l = m - c | c = 20; l = 80; m = 100 |
h = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | h.append(0) | h = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
z = 9 | z = z + 1 | z = 10 |
p = 3 | x += int(p) | p = 3; x = -57 |
c = 'ifa'; v = ['f', 'i'] | v = list(c) | c = 'ifa'; v = ['i', 'f', 'a'] |
b = 4; h = 'abba'; i = 'abb'; v = 0 | i = ''.join(sorted(h[v:b])) | b = 4; h = 'abba'; i = 'aabb'; v = 0 |
a = {(0, 0)}; g = 1; r = 0 | a.add((g, r)) | a = {(1, 0), (0, 0)}; g = 1; r = 0 |
l = 'a' | k[l] = True | k = {'a': True}; l = 'a' |
i = 3; j = 72 | j += i | i = 3; j = 75 |
o = [[], []] | o.append([]) | o = [[], [], []] |
i = 1; j = 3; m = ['2', '22', '222', '2222', '22222', '222222', '2222222', '2']; s = '2222222' | m.append(s[i:j]) | i = 1; j = 3; m = ['2', '22', '222', '2222', '22222', '222222', '2222222', '2', '22']; s = '2222222' |
a = 0; s = '1' | k = ord(s[a]) - ord('0') | a = 0; k = 1; s = '1' |
l = 7; m = 'eededde'; s = 'eededdeedede'; x = 1 | m = s[x:x + l] | l = 7; m = 'ededdee'; s = 'eededdeedede'; x = 1 |
a = [1, 3, 1, 2]; i = 2; m = [(0, 1), (1, 3)] | m.append((i, a[i])) | a = [1, 3, 1, 2]; i = 2; m = [(0, 1), (1, 3), (2, 1)] |
k = 4; n = 5 | m = k % n | k = 4; m = 4; n = 5 |
h = 2; z = 3 | h *= z | h = 6; z = 3 |
g = 2; n = 2; y = 0 | g = 2 * n - y - 1 | g = 3; n = 2; y = 0 |
f = 3; j = 1 | f = j | f = 1; j = 1 |
c = [(0, 0), (0, 1), (1, 1), (1, 2), (2, 2)]; o = 3; x = 0 | c.append((o, x)) | c = [(0, 0), (0, 1), (1, 1), (1, 2), (2, 2), (3, 0)]; o = 3; x = 0 |
f = {(0): 2, (1): 4}; i = 2 | f[i] = f[i - 2] + f[i - 1] | f = {0: 2, 1: 4, 2: 6}; i = 2 |
g = [[1, 1, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0], [1, 1, 1, 0, 0, 0], [0, 0, 2, 4, 4, 0]]; i = 1; j = 1; m = 2 | m = sum(g[i + 2][j:j + 3]) | g = [[1, 1, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0], [1, 1, 1, 0, 0, 0], [0, 0, 2, 4, 4, 0]]; i = 1; j = 1; m = 6 |
h = 4; q = 5; r = 2 | q = max(q, h * r) | h = 4; q = 8; r = 2 |
f = 0; h = 1; s = [(0, 0)] | s.append((f, h)) | f = 0; h = 1; s = [(0, 0), (0, 1)] |
s = 'cd' | s = s.replace(s[0], '') | s = 'd' |
b = ['c', 'cd', 'cdc', 'cdcd', 'd', 'dc', 'dcd', 'c']; x = 'cd' | b.append(x) | b = ['c', 'cd', 'cdc', 'cdcd', 'd', 'dc', 'dcd', 'c', 'cd']; x = 'cd' |
h = 2; y = 0 | h = y | h = 0; y = 0 |
q = 3.469446951953614e-17 | q /= 2 | q = 1.734723475976807e-17 |
i = 2; p = {(1): 4}; x = ['4', '2'] | p[i] = int(x[i - 1]) | i = 2; p = {1: 4, 2: 2}; x = ['4', '2'] |
v = [['1', '1', '1', '2'], ['1', '9', '1', '2'], ['1', '8', '9', '2'], ['1', '2', '3', '4']] | j = len(v) | j = 4; v = [['1', '1', '1', '2'], ['1', '9', '1', '2'], ['1', '8', '9', '2'], ['1', '2', '3', '4']] |
d = 7; i = 2; r = [[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]]; s = 3 | d = sum(r[i][s:s + 3]) + r[i + 1][s + 1] + sum(r[i + 2][s:s + 3]) | d = 6; i = 2; r = [[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]]; s = 3 |
q = [0, 1, 2, 3, 4, 5, 6, 7, 8, 8]; x = 9 | x = q.pop() | q = [0, 1, 2, 3, 4, 5, 6, 7, 8]; x = 8 |
k = '4'; n = '5' | n, k = [int(n), int(k)] | k = 4; n = 5 |
c = [76, 76, 95, 96, 79]; p = 74 | c.append(p) | c = [76, 76, 95, 96, 79, 74]; p = 74 |
m = 'fai' | m = ''.join(sorted(m)) | m = 'afi' |
u = 8 | u *= 2 | u = 16 |
i = 62 | i += 1 | i = 63 |
f = [[(1, 3), (2, 4)], [(0, 3)], [], [], []]; r = 4; x = 1; y = 3 | f[y - 1].append((x - 1, r)) | f = [[(1, 3), (2, 4)], [(0, 3)], [(0, 4)], [], []]; r = 4; x = 1; y = 3 |
i = 9; k = 6; p = 'ac'; s = 'bacbacacb' | p = s[k:i] | i = 9; k = 6; p = 'acb'; s = 'bacbacacb' |
g = 2.48832; o = 5; p = 0.497664 | g = g % o + p | g = 2.9859839999999997; o = 5; p = 0.497664 |
g = [33, 67, 76]; p = [72, 67, 92, 95, 59, 58, 95, 94, 84, 83, 70, 79] | p.append(g[1]) | g = [33, 67, 76]; p = [72, 67, 92, 95, 59, 58, 95, 94, 84, 83, 70, 79, 67] |
j = '1111111' | j = j + '1' | j = '11111111' |
i = 182.0; x = 1019.0 | x += i | i = 182.0; x = 1201.0 |
e = 1.1102230246251565e-16 | e /= 2 | e = 5.551115123125783e-17 |
d = ['QUERY', 1, 1, 1, 3, '3', '3']; i = 5 | d[i] = int(d[i]) | d = ['QUERY', 1, 1, 1, 3, 3, '3']; i = 5 |
i = 1; n = 2; x = 0 | x = 2 ** 2 ** i * (4 ** (n + 1) - 1) // 3 | i = 1; n = 2; x = 84 |
n = 12 | n = n // 10 | n = 1 |
b = 2; g = 3; i = [[112, 42, 83, 119], [56, 125, 56, 49], [15, 78, 101, 43], [62, 98, 114, 108]]; v = 98 | v = i[g][b] | b = 2; g = 3; i = [[112, 42, 83, 119], [56, 125, 56, 49], [15, 78, 101, 43], [62, 98, 114, 108]]; v = 114 |
k = [1, 3, 4, 5, 6, 2]; t = 6; y = 6 | t = k[y - 1] | k = [1, 3, 4, 5, 6, 2]; t = 2; y = 6 |
a = 11; b = 21; c = 21 | c = a + b | a = 11; b = 21; c = 32 |
s = 'B'; t = {'R': 1, 'B': 1, 'Y': 2, '_': 1} | t[s] += 1 | s = 'B'; t = {'R': 1, 'B': 2, 'Y': 2, '_': 1} |
o = {(1): [(2, 24)], (2): [(1, 24)], (4): []}; r = 20; x = 1; y = 4 | o[x].append((y, r)) | o = {1: [(2, 24), (4, 20)], 2: [(1, 24)], 4: []}; r = 20; x = 1; y = 4 |
b = 0.5; c = 4.0 | c += b | b = 0.5; c = 4.5 |
j = 4; m = 9; n = 4; x = 4 | m = n - x + (n - j) + (x - 1) + (j - 1) | j = 4; m = 6; n = 4; x = 4 |
x = 6; y = 4 | y = x + 1 | x = 6; y = 7 |
i = 4; j = [1000000001, 0, 24, 3, 15]; m = [24] | m.append(j[i]) | i = 4; j = [1000000001, 0, 24, 3, 15]; m = [24, 15] |
b = False; c = ']'; d = '[' | b = c == '}' and d == '{' or c == ')' and d == '(' or c == ']' and d == '[' | b = True; c = ']'; d = '[' |
i = 1; s = 'aabbccddeefghi'; x = [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] | x[ord(s[i]) - 97] += 1 | i = 1; s = 'aabbccddeefghi'; x = [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] |
d = 0.0078125; e = 0.0078125; s = 0 | e = (s + d) / 2 | d = 0.0078125; e = 0.00390625; s = 0 |
a = '56'; j = 6; s = '387420489' | a += s[j] | a = '564'; j = 6; s = '387420489' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.