start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
a = 21; b = 32; c = 32 | c = a + b | a = 21; b = 32; c = 53 |
w = '1' | w += '0' | w = '10' |
n = 1; v = [0, 1, 3] | v[n] += 1 | n = 1; v = [0, 2, 3] |
n = 2; x = [] | x = x + [n] | n = 2; x = [2] |
y = [4, 2] | l.append(y) | l = [[4, 2]]; y = [4, 2] |
l = 'hefg'; x = 'b' | l = [x for x in l] | l = ['h', 'e', 'f', 'g']; x = 'b' |
q = deque([(33, 0)]); u = 0 | f, u = q[-1] | f = 33; q = deque([(33, 0)]); u = 0 |
f = [['h', 'a', 'v', 'e'], ['a', 'n', 'i', ''], ['', '', '', '']]; i = 1; j = 3; w = 'c' | f[i][j] = w | f = [['h', 'a', 'v', 'e'], ['a', 'n', 'i', 'c'], ['', '', '', '']]; i = 1; j = 3; w = 'c' |
a = 8; d = [[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]]; g = 2; i = 1 | a = sum(d[i][g:g + 3]) + d[i + 1][g + 1] + sum(d[i + 2][g:g + 3]) | a = 10; d = [[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]]; g = 2; i = 1 |
a = 4; m = 3; r = 4 | m = (r + a) // 2 | a = 4; m = 4; r = 4 |
l = '1'; y = 10 | y = int(l) | l = '1'; y = 1 |
o = [4, 5]; p = 7 | o.append(p) | o = [4, 5, 7]; p = 7 |
b = 2; y = [2, 1, 3] | y[b] = y[swapIndex] | b = 2; c = False; y = [2, 1, 2] |
b = [[1, 1, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0], [1, 1, 1, 0, 0, 0], [0, 0, 2, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]]; i = 3; j = 3; w = ['0', '0', '2', '4', '4', '0'] | b[i][j] = int(w[j]) | b = [[1, 1, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0], [1, 1, 1, 0, 0, 0], [0, 0, 2, 4, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]]; i = 3; j = 3; w = ['0', '0', '2', '4', '4', '0'] |
g = 1; w = 2 | r = max(g, w) | g = 1; r = 2; w = 2 |
d = 8192; g = 14 | d = 1 << g | d = 16384; g = 14 |
j = 6; r = 'aaaaaaaaab'; y = 'aaaaa' | y += r[j] | j = 6; r = 'aaaaaaaaab'; y = 'aaaaaa' |
a = [2, 1, 3]; g = 1 | a[g] = a[g - 1] | a = [2, 2, 3]; g = 1 |
i = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; k = 4; t = 3; x = 1 | t = i[x + k - 1] - i[x] | i = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; k = 4; t = 8; x = 1 |
i = 4, 7, 8; j = 1; s = 16 | s += i[j] ** 2 | i = (4, 7, 8); j = 1; s = 65 |
g = 4; u = 17 | u += g | g = 4; u = 21 |
i = 1; y = [3, 2, 1] | y[i:] = y[len(y) - 1:i - 1:-1] | i = 1; y = [3, 1, 2] |
b = {'a': 2, 'b': 2, 'c': 1, 'd': 1} | z = set(b.values()) | b = {'a': 2, 'b': 2, 'c': 1, 'd': 1}; z = {1, 2} |
i = 2; j = 2; w = [['l', 'm', 'o', 'n'], ['a', 'b', 'c', 'd'], ['d', 'b', 'b', 'c'], ['a', 'b', 'd', 'c'], ['a', 'b', 'c', 'd'], ['f', 'e', 'd', 'b', 'c', 'd']] | w[i][j + 1:] = sorted(w[i][j + 1:]) | i = 2; j = 2; w = [['l', 'm', 'o', 'n'], ['a', 'b', 'c', 'd'], ['d', 'b', 'b', 'c'], ['a', 'b', 'd', 'c'], ['a', 'b', 'c', 'd'], ['f', 'e', 'd', 'b', 'c', 'd']] |
w = 1 | l = w | l = 1; w = 1 |
d = deque([1]); y = ['append', '2'] | d.append(int(y[1])) | d = deque([1, 2]); y = ['append', '2'] |
n = 1; y = 2 | y = n | n = 1; y = 1 |
a = 4; i = 3; m = [1, 2, 1, 1, 1, 2, 1, 3] | a += m[i] | a = 5; i = 3; m = [1, 2, 1, 1, 1, 2, 1, 3] |
m = -1; n = 11; s = 3 | m = n - s | m = 8; n = 11; s = 3 |
i = [1, 5, 10, 12, 111, 200, 1000]; l = 44; x = 2 | l -= i[x] | i = [1, 5, 10, 12, 111, 200, 1000]; l = 34; x = 2 |
a = [1, 3, 3, 3]; i = 2; j = 1; k = 1; r = -7; t = [[0, inf, inf, inf, inf], [-1, -3, inf, inf, inf], [-4, -4, -12, inf, inf], [-7, -1, inf, inf, inf], [inf, inf, inf, inf, inf]] | r = t[i][j] + a[i] * (j - (k - j)) | a = [1, 3, 3, 3]; i = 2; j = 1; k = 1; r = -1; t = [[0, inf, inf, inf, inf], [-1, -3, inf, inf, inf], [-4, -4, -12, inf, inf], [-7, -1, inf, inf, inf], [inf, inf, inf, inf, inf]] |
e = 'abba'; i = 2; j = 2; z = 'bba' | z = e[i:j + 1] | e = 'abba'; i = 2; j = 2; z = 'b' |
d = [1, 2, 3, 4, 5]; f = 4; i = 0; o = 0 | l = (f - o + 1) * d[i] | d = [1, 2, 3, 4, 5]; f = 4; i = 0; l = 5; o = 0 |
a = ['1', '2', '3', '4', '1']; b = ['3', '4', '1', '2', '1', '3']; i = 1; j = 3; l = False | l = a[i - 1] == b[j - 1] | a = ['1', '2', '3', '4', '1']; b = ['3', '4', '1', '2', '1', '3']; i = 1; j = 3; l = True |
n = [3, 9, 10, 12, 5] | n.sort() | n = [3, 5, 9, 10, 12] |
r = 1 | r += 1 | r = 2 |
q = 5 | q = q + 1 | q = 6 |
u = 2 | m = u | m = 2; u = 2 |
i = 1; j = 1; m = [[1, 1, 1], [1, 0, 0], 0, 0, 0]; x = 1; y = 1 | m[i][j] = x + y | i = 1; j = 1; m = [[1, 1, 1], [1, 2, 0], 0, 0, 0]; x = 1; y = 1 |
w = '91011'; x = 99 | w = str(x) | w = '99'; x = 99 |
f = [[0, 0], [1, 0]]; i = 0 | f[0][i] = 1 | f = [[1, 0], [1, 0]]; i = 0 |
b = 8; c = 2; e = 2 | c = (e + b) % 10 | b = 8; c = 0; e = 2 |
i = 1; j = 1; o = 2; u = [[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]] | o = sum(u[i + 2][j:j + 3]) | i = 1; j = 1; o = 6; u = [[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]] |
f = 2; i = 9; k = 3; s = [[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]] | i = s[k][f] + s[k][f + 1] + s[k][f + 2] | f = 2; i = 10; k = 3; s = [[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]] |
p = 385; y = 160 | p += y | p = 545; y = 160 |
c = 0; f = 1; y = 1 | c = y if y < f else f | c = 1; f = 1; y = 1 |
a = [0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; o = 2 | a[o] += 1 | a = [0, 0, 3, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; o = 2 |
a = 3; u = [8, 5, 2, 1] | k = sum(u[a:]) | a = 3; k = 1; u = [8, 5, 2, 1] |
a = 37.89922442251353; c = 5; d = 2.899224422513519 | a += d / c | a = 38.47906930701623; c = 5; d = 2.899224422513519 |
g = [4, 2, 4, 6, 1]; i = 2; y = 6 | y += g[i] | g = [4, 2, 4, 6, 1]; i = 2; y = 10 |
d = 6; n = [2, 1, 3] | n = n + [d] | d = 6; n = [2, 1, 3, 6] |
d = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 1, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; i = 2; j = 2; x = 0; y = 1 | d[i][j] = x + y | d = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 1, 1, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; i = 2; j = 2; x = 0; y = 1 |
i = 0 | i -= 1 | i = -1 |
c = 5; j = 3 | c = j | c = 3; j = 3 |
j = 10; x = '9' | x += str(j) | j = 10; x = '910' |
p = 0, 0 | l.append(p) | l = [(0, 0)]; p = (0, 0) |
a = [70, 70, 78]; r = 68679.0 | r = r + a[2] * a[0] | a = [70, 70, 78]; r = 74139.0 |
a = 11; t = '910' | t += str(a) | a = 11; t = '91011' |
a = [False, {}]; c = '1'; h = [False, {}] | h[1][c] = [False, {}] | a = [False, {}]; c = '1'; h = [False, {'1': [False, {}]}] |
g = 4.14213562373095; t = 1; v = 10; w = 100 | g = pow(2, 0.5) * (v - pow(w, 0.5)) / t | g = 0.0; t = 1; v = 10; w = 100 |
s = 328.794419528818; x = 59 | s += 0.5 * (1 + (1 + 4 * x) ** 0.5) | s = 336.99182168798836; x = 59 |
d = []; w = 1 | d.append(w) | d = [1]; w = 1 |
p = '10000' | p = p + '0' | p = '100000' |
u = {(2): 1}; y = 4 | u[y] = 1 | u = {2: 1, 4: 1}; y = 4 |
e = 2; j = [5, 1, 7]; l = 2 | j[l] = e | e = 2; j = [5, 1, 2]; l = 2 |
y = [(2, 'S'), (1, 'o'), (1, 'r'), (1, 't'), (1, 'i'), (1, 'g'), (3, '1'), (4, '2'), (3, '3'), (4, '4')] | v = sorted(y) | v = [(1, 'g'), (1, 'i'), (1, 'o'), (1, 'r'), (1, 't'), (2, 'S'), (3, '1'), (3, '3'), (4, '2'), (4, '4')]; y = [(2, 'S'), (1, 'o'), (1, 'r'), (1, 't'), (1, 'i'), (1, 'g'), (3, '1'), (4, '2'), (3, '3'), (4, '4')] |
a = 2; m = {1, 2, 3, 4} | m.add(a) | a = 2; m = {1, 2, 3, 4} |
c = 'k'; k = [1, {'k': [0, {}]}] | k = k[1][c] | c = 'k'; k = [0, {}] |
m = [0, 1, 1, 2, 3, 5, 8, 24157817, 39088169, 63245986, 102334155, 165580141, 267914296, 433494437]; t = 701408733 | m.append(t) | m = [0, 1, 1, 2, 3, 5, 8, 24157817, 39088169, 63245986, 102334155, 165580141, 267914296, 433494437, 701408733]; t = 701408733 |
e = 'a'; r = {'c': 2, 'e': 1, 'd': 2, 'b': 3, 'a': 2, 'g': 1} | r[e] = r.get(e, 0) + 1 | e = 'a'; r = {'c': 2, 'e': 1, 'd': 2, 'b': 3, 'a': 3, 'g': 1} |
c = '7'; n = '3'; r = '6' | r, c, n = [int(r), int(c), int(n)] | c = 7; n = 3; r = 6 |
a = [0, 0, 4, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; d = 4 | a[d] += 1 | a = [0, 0, 4, 4, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; d = 4 |
r = 125000; t = 125000; x = 2 | t = (x + r) // 2 | r = 125000; t = 62501; x = 2 |
f = 1; i = 4; r = [2, 4, 2, 6, None, None, None, None, None, None] | r[i] = f | f = 1; i = 4; r = [2, 4, 2, 6, 1, None, None, None, None, None] |
e = [5, 4, 4, 8]; t = [5, 4, 4, 2, 2, 8] | t = e | e = [5, 4, 4, 8]; t = [5, 4, 4, 8] |
d = [0, 2, 0, 2, 0, 0, 1, 0, 1, 2, 1, 0, 1, 1, 0, 0]; o = [63, 25, 73, 1, 98, 73, 56, 84, 86, 57, 16, 83, 82, 67, 61, 32, 21, 79, 75, 75, 13, 87, 70, 33]; x = 16 | d.append(o.count(x)) | d = [0, 2, 0, 2, 0, 0, 1, 0, 1, 2, 1, 0, 1, 1, 0, 0, 1]; o = [63, 25, 73, 1, 98, 73, 56, 84, 86, 57, 16, 83, 82, 67, 61, 32, 21, 79, 75, 75, 13, 87, 70, 33]; x = 16 |
x = -156.7 | x -= 1 | x = -157.7 |
e = 18; q = 9 | q = e | e = 18; q = 18 |
i = 2; s = {(0): 0, (1): 0} | s[i] = 0 | i = 2; s = {0: 0, 1: 0, 2: 0} |
k = '11111111111' | k += '1' | k = '111111111111' |
r = -1; t = ['7', '8'] | r = int(t[1]) | r = 8; t = ['7', '8'] |
a = 54 | a = a + 1 | a = 55 |
f = '2' | f = int(f) | f = 2 |
j = 2; k = 100; z = [0, 100, 0, 0, 0, 0, 0] | z[j + 1] -= k | j = 2; k = 100; z = [0, 100, 0, -100, 0, 0, 0] |
f = 802743475 | o = f % 2 | f = 802743475; o = 1 |
o = 10; t = 2 | h = o / t | h = 5.0; o = 10; t = 2 |
u = ['2']; x = 1 | u.append(str(x)) | u = ['2', '1']; x = 1 |
d = [1, 5, 4, 3, 2, 6] | i = sorted(d) | d = [1, 5, 4, 3, 2, 6]; i = [1, 2, 3, 4, 5, 6] |
j = 3; l = [3, 4, 7, 5, 6, 2] | l[j] = l[j - 1] | j = 3; l = [3, 4, 7, 7, 6, 2] |
z = 0 | i.append(z) | i = [0]; z = 0 |
h = 2; i = 1; k = [3, 4, 4, 2, 2, 8] | k[i] = k[i] - h | h = 2; i = 1; k = [3, 2, 4, 2, 2, 8] |
i = '-1' | i = int(i) | i = -1 |
p = 1 | p += 1 | p = 2 |
h = '11111111111111111111111111' | h = h + '1' | h = '111111111111111111111111111' |
a = 1.0000000000000001e-23; i = 1.0000000000000001e-24 | a = i % 10 | a = 1.0000000000000001e-24; i = 1.0000000000000001e-24 |
z = [1, 1, 1] | b = z[0] | b = 1; z = [1, 1, 1] |
d = 'transpose'; s = array([[1, 2], [3, 4]]) | g = getattr(s, d, None) | d = 'transpose'; g = <built-in method transpose of numpy.ndarray object at 0x7f1c77b00a80>; s = array([[1, 2],
[3, 4]]) |
d = {'c': 1, 'd': 1, 'e': 1, 'f': 1, 'g': 1, 'h': 1, 'm': 1}; i = 'n' | d[i] = 1 | d = {'c': 1, 'd': 1, 'e': 1, 'f': 1, 'g': 1, 'h': 1, 'm': 1, 'n': 1}; i = 'n' |
h = 65 | h += 1 | h = 66 |
l = 24; n = 3 | l *= n | l = 72; n = 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.