start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
i = 3; j = 2; m = 2; u = [[1, 1, 1, 2], [1, 9, 1, 2], [1, 8, 9, 2], [1, 2, 3, 4]] | m = u[i][j] | i = 3; j = 2; m = 3; u = [[1, 1, 1, 2], [1, 9, 1, 2], [1, 8, 9, 2], [1, 2, 3, 4]] |
f = [0, 0, 2, 2, 2, 3]; g = 1; i = 2 | f[i] = f[i] - g | f = [0, 0, 1, 2, 2, 3]; g = 1; i = 2 |
r = 'Such were Willarski '; x = 'and' | r += x + ' ' | r = 'Such were Willarski and '; x = 'and' |
l = b'5 3\n1 2 100\n2 5 100\n3 4 100\n\n\n\n'; r = 5 | l = (r + 2) * [0] | l = [0, 0, 0, 0, 0, 0, 0]; r = 5 |
b = [1, 2, 3, 4, 5]; i = 1; x = [1] | x.append(b[i]) | b = [1, 2, 3, 4, 5]; i = 1; x = [1, 2] |
d = 1; s = 2 | d = max(d, s) | d = 2; s = 2 |
b = [4]; k = 5 | b.append(k) | b = [4, 5]; k = 5 |
c = 2; s = 9; x = 4 | s = x ** c | c = 2; s = 16; x = 4 |
d = [1, 1, 1, 0, 0, 0, 0]; 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]]; x = 2; y = 3 | d = [s[y - 1][x - 1], s[y - 1][x], s[y - 1][x + 1], s[y][x], s[y + 1][x - 1 ], s[y + 1][x], s[y + 1][x + 1]] | d = [1, 1, 0, 2, 0, 0, 2]; 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]]; x = 2; y = 3 |
d = [0, 0, 0, 0, 0, 0]; v = [[0, 0, 0, 0, 0, 0], [0, 1, 1, 1, 0, 1], [0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 0, 1]] | v.append(d) | d = [0, 0, 0, 0, 0, 0]; v = [[0, 0, 0, 0, 0, 0], [0, 1, 1, 1, 0, 1], [0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 0, 1], [0, 0, 0, 0, 0, 0]] |
l = 1.0; r = 1.75; s = 0.5 | l = r - s | l = 1.25; r = 1.75; s = 0.5 |
u = {'1': 4, '2': 4, '3': 3, '6': 3, '5': 4, '4': 3}; x = '4' | u[x] = u.get(x, 0) + 1 | u = {'1': 4, '2': 4, '3': 3, '6': 3, '5': 4, '4': 4}; x = '4' |
a = 4; s = 6 | a = s | a = 6; s = 6 |
i = 4; u = 1 | u = i | i = 4; u = 4 |
n = '3' | w = [float('inf')] * (int(n) + 1) | n = '3'; w = [inf, inf, inf, inf] |
e = 3.0; s = 1.0 | e += s | e = 4.0; s = 1.0 |
a = [2, 1, 3]; i = 0 | e = max(a[i:]) | a = [2, 1, 3]; e = 3; i = 0 |
i = 3; x = '4'; y = {'7': [0], '1': [1], '3': [2]} | y[x] = [i] | i = 3; x = '4'; y = {'7': [0], '1': [1], '3': [2], '4': [3]} |
c = 2; u = 5 | u += c // 2 | c = 2; u = 6 |
n = 1 | n += 1 | n = 2 |
a = 2; o = [[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]]; q = 0; z = 4 | q = o[z - 1][a] | a = 2; o = [[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]]; q = 2; z = 4 |
a = 1; b = 2 | a, b = b, a | a = 2; b = 1 |
s = {'a': 1, 'b': 1, 'c': 1} | n = max(s.values()) | n = 1; s = {'a': 1, 'b': 1, 'c': 1} |
c = 'u'; e = {'\n': 0, 'a': 1, 'e': 1, 'i': 1, 'o': 1, 'u': 2} | e[c] -= 1 | c = 'u'; e = {'\n': 0, 'a': 1, 'e': 1, 'i': 1, 'o': 1, 'u': 1} |
f = 6 | f += 1 | f = 7 |
d = 6.0; n = 19.0; x = 16.0; y = 5.0 | x, y = n, d | d = 6.0; n = 19.0; x = 19.0; y = 6.0 |
a = 'middle-Outz'; i = 5; u = 110 | u = ord(a[i]) | a = 'middle-Outz'; i = 5; u = 101 |
l = 'b'; w = [{'c': 1, 'd': 1, 'e': 1}, {'a': 1, 'b': 1, 'c': 1}] | q += w[1][l] | l = 'b'; q = 79; w = [{'c': 1, 'd': 1, 'e': 1}, {'a': 1, 'b': 1, 'c': 1}] |
u = 'b '; y = ' ' | y = u[2:] | u = 'b '; y = '' |
s = '{[()]}' | s = list(s) | s = ['{', '[', '(', ')', ']', '}'] |
g = 1 | f = 3 * 2 ** g | f = 6; g = 1 |
v = None | u = v is not None | u = False; v = None |
g = 1; i = 2; u = [0, 1, 1, 1] | u[i] -= g | g = 1; i = 2; u = [0, 1, 0, 1] |
b = ['B', 'B', 'R', 'R', 'R', '_'] | b = [cell for cell in b if cell != '_'] | b = ['B', 'B', 'R', 'R', 'R'] |
d = '01'; j = 10; u = False | d = ('', d[j:])[u] | d = ''; j = 10; u = False |
n = 'wedowha' | n = n[0:len(n) - 1] | n = 'wedowh' |
n = 2; w = [2] | n = len(w) | n = 1; w = [2] |
d = 1; y = ['3', '3'] | d = int(y[0]) | d = 3; y = ['3', '3'] |
l = 2; p = 1; q = [2, 3, 5]; u = 4 | p, l, u = q | l = 3; p = 2; q = [2, 3, 5]; u = 5 |
a = [[1, 0, 0], [1, 0, 0], [1, 2, 2]]; i = 2; j = 2; r = 1 | a[i - 1][j] = a[i][j] + (r ^ 0) | a = [[1, 0, 0], [1, 0, 3], [1, 2, 2]]; i = 2; j = 2; r = 1 |
a = '11111111111111111111111111111' | a += '0' | a = '111111111111111111111111111110' |
i = 2; p = 2; x = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200] | p = x[i] | i = 2; p = 3; x = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200] |
p = [5]; s = [2, 1] | p.append(s[0]) | p = [5, 2]; s = [2, 1] |
b = 'ANIEL['; s = deque(['D']) | s.append(b[0]) | b = 'ANIEL['; s = deque(['D', 'A']) |
i = 2 | s = i | i = 2; s = 2 |
a = 1 | i.add(a) | a = 1; i = {1} |
f = 0; g = [('c', 1), ('b ', 1)]; o = 'ac ' | o, f = g.pop(0) | f = 1; g = [('b ', 1)]; o = 'c' |
j = 1.2000000000000002e-21 | j = j / 10 | j = 1.2000000000000002e-22 |
l = 1; p = {(1): ['1', '2'], (3): ['100', '111', '200'], (29): [ '12303479849857341718340192371'], (16): ['3084193741082937', '3084193741082938']} | o = p[l] | l = 1; o = ['1', '2']; p = {1: ['1', '2'], 3: ['100', '111', '200'], 29: ['12303479849857341718340192371'], 16: ['3084193741082937', '3084193741082938']} |
f = 41 | f = f + 1 | f = 42 |
c = 'b'; f = {'a': 3, 'b': 1} | f[c] += 1 | c = 'b'; f = {'a': 3, 'b': 2} |
f = 0 | f += 1 | f = 1 |
e = 7; m = 11; w = [2, 4, 5, 6, 7, 9, 11, 12] | m = w[e] | e = 7; m = 12; w = [2, 4, 5, 6, 7, 9, 11, 12] |
a = ['b', 'c']; w = ["['a']", "['a', 'b']", "['a', 'b', 'c']", "['a', 'b', 'c', 'd']", "['b']"] | w.append(str(a)) | a = ['b', 'c']; w = ["['a']", "['a', 'b']", "['a', 'b', 'c']", "['a', 'b', 'c', 'd']", "['b']", "['b', 'c']"] |
d = [3, 2, 5]; e = [[3, 2, 1], [1, 2, 3], [3, 2, 1]] | e.append(d) | d = [3, 2, 5]; e = [[3, 2, 1], [1, 2, 3], [3, 2, 1], [3, 2, 5]] |
i = 3; j = 2 | i, j = i + 1, j - 1 | i = 4; j = 1 |
g = {'i': 1, 'f': 1}; i = 'a' | g[i] = 1 | g = {'i': 1, 'f': 1, 'a': 1}; i = 'a' |
a = 'abcdefghijklmnopqrstuvwxyz'; i = 'u'; k = 2; z = 'okffng-Q' | z += a[a.index(i) + k] | a = 'abcdefghijklmnopqrstuvwxyz'; i = 'u'; k = 2; z = 'okffng-Qw' |
h = 1; i = 0; j = 2 | h = j - i | h = 2; i = 0; j = 2 |
h = '12'; q = '1011' | q = ''.join([q, h]) | h = '12'; q = '101112' |
i = 0; l = 8,; s = 7 | s += 2 ** i * l[len(l) - i - 1] | i = 0; l = (8,); s = 15 |
c = 1; f = 2; p = 2; w = 1 | w = c + f * p | c = 1; f = 2; p = 2; w = 5 |
x = 'c' | p = x | p = 'c'; x = 'c' |
i = 1 | f = i - 1 | f = 0; i = 1 |
m = 2 | m -= 1 | m = 1 |
s = 'aba'; t = 'aba' | n = min(len(s), len(t)) | n = 3; s = 'aba'; t = 'aba' |
a = 1; c = [1, 0, 1, 0, 1, 0, 0, 1, 1, 0]; i = 2 | c[i] = c[i] ^ a | a = 1; c = [1, 0, 0, 0, 1, 0, 0, 1, 1, 0]; i = 2 |
d = 1; i = 1, [1]; k = [1, 1] | i = 1 + d, k | d = 1; i = (2, [1, 1]); k = [1, 1] |
c = 0; i = 0; j = 6 | c += j - i | c = 6; i = 0; j = 6 |
e = [2]; t = [[1, 42], [2], [1, 14], [3], [1, 28], [3], [1, 60], [1, 78], [2]] | t.append(e) | e = [2]; t = [[1, 42], [2], [1, 14], [3], [1, 28], [3], [1, 60], [1, 78], [2], [2]] |
g = [159, 0, 7, 1]; w = 0 | g[w] += 1 | g = [160, 0, 7, 1]; w = 0 |
m = {'a': 1, 'ab': 1}; p = 'abc' | m[p] = m.get(p, 0) + 1 | m = {'a': 1, 'ab': 1, 'abc': 1}; p = 'abc' |
w = [1] | w.append(1) | w = [1, 1] |
i = 0; s = 'abcd' | p.add(s[i]) | i = 0; p = {'a'}; s = 'abcd' |
j = 4 | x = j | j = 4; x = 4 |
c = [1, 2, 3]; j = 1 | u = u + c[j - 1] | c = [1, 2, 3]; j = 1; u = 99 |
h = 3; m = 4; n = [1, 1, 1, 3, 1, 1] | n[m] += n[h] | h = 3; m = 4; n = [1, 1, 1, 3, 4, 1] |
i = 25, 81, 100; y = 25, 64, 100 | y = i | i = (25, 81, 100); y = (25, 81, 100) |
i = 'two'; m = {'two': 1, 'times': 1, 'three': 1, 'is': 1, 'not': 1, 'four': 1} | m[i] -= 1 | i = 'two'; m = {'two': 0, 'times': 1, 'three': 1, 'is': 1, 'not': 1, 'four': 1} |
d = [(0, 0), (0, 1), (1, 1)]; p = 1, 2 | d.append(p) | d = [(0, 0), (0, 1), (1, 1), (1, 2)]; p = (1, 2) |
f = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 1, 1, 1], [0, 0, 1, 1], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; i = 7; j = 0; y = 2 | y = f[i][j - 1] if j >= 1 else 0 | f = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 1, 1, 1], [0, 0, 1, 1], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; i = 7; j = 0; y = 0 |
i = 0; j = 7; r = [97, 102, 105, 105, 108, 117]; s = 'ifailuhkqq' | r = [ord(x) for x in s[i:i + j]] | i = 0; j = 7; r = [105, 102, 97, 105, 108, 117, 104]; s = 'ifailuhkqq' |
q = deque([1, 2, 3]); s = ['appendleft', '4'] | q.appendleft(int(s[-1])) | q = deque([4, 1, 2, 3]); s = ['appendleft', '4'] |
i = 3; p = 16; s = 3 | p += s * i | i = 3; p = 25; s = 3 |
i = 4; j = [0, 2] | j.append(i) | i = 4; j = [0, 2, 4] |
i = 2; n = 0; p = 5 | p += (i - n) // 2 | i = 2; n = 0; p = 6 |
h = 'aab\n' | h = h.strip() | h = 'aab' |
l = '59 5\n'; q = [['3'], ['32', '62'], ['42', '68'], ['12', '98'], ['51', '19'], ['39', '11'], ['37', '29'], ['81', '3']] | q.append(l.rstrip('\n').split(' ')) | l = '59 5\n'; q = [['3'], ['32', '62'], ['42', '68'], ['12', '98'], ['51', '19'], ['39', '11'], ['37', '29'], ['81', '3'], ['59', '5']] |
b = '1'; e = ['1', '0', '0', '0', '0', '0'] | e.append('0' if b == '1' else '1') | b = '1'; e = ['1', '0', '0', '0', '0', '0', '0'] |
t = [['3\n'], ['3', '3\n']]; z = ['4', '7\n'] | t.append(z) | t = [['3\n'], ['3', '3\n'], ['4', '7\n']]; z = ['4', '7\n'] |
d = 'n'; e = 0; i = {'o': 0, 'n': 1} | e = i[d] | d = 'n'; e = 1; i = {'o': 0, 'n': 1} |
a = [['1', '2', '3', '4'], ['5', '6', '7', '8'], ['9', '10', '11', '12'], [ '13', '14', '15']]; i = 3; j = 3; s = ['13', '14', '15', '16'] | a[i].append(s[j]) | a = [['1', '2', '3', '4'], ['5', '6', '7', '8'], ['9', '10', '11', '12'], ['13', '14', '15', '16']]; i = 3; j = 3; s = ['13', '14', '15', '16'] |
i = 2 | r *= i + 1 | i = 2; r = 282 |
c = [[0, 2, 1, 3, 4], [2, 1, 0], [], [], []]; i = 1; p = [[10.0, 30.0, 20.0, 40.0, 50.0], [11.0, 9.0, 5.0, 19.0, 29.0], [21.0, 9.0, 15.0, 19.0, 39.0], [91.0, 9.0, 75.0, 19.0, 89.0], [81.0, 99.0, 55.0, 59.0, 89.0]]; q = 19.0 | c[i].append(p[i].index(q)) | c = [[0, 2, 1, 3, 4], [2, 1, 0, 3], [], [], []]; i = 1; p = [[10.0, 30.0, 20.0, 40.0, 50.0], [11.0, 9.0, 5.0, 19.0, 29.0], [21.0, 9.0, 15.0, 19.0, 39.0], [91.0, 9.0, 75.0, 19.0, 89.0], [81.0, 99.0, 55.0, 59.0, 89.0]]; q = 19.0 |
i = 1 | t = i | i = 1; t = 1 |
a = [0, 0, 2, 3, 2, 0, 2, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 4; j = 2 | a[j * i] = j | a = [0, 0, 2, 3, 2, 0, 2, 0, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 4; j = 2 |
d = 3; h = 10; j = 5; w = [1, 2, 4, 5, 7, 8, 10] | h = w[j] + d | d = 3; h = 11; j = 5; w = [1, 2, 4, 5, 7, 8, 10] |
g = [168, 0, 7, 1]; w = 0 | g[w] += 1 | g = [169, 0, 7, 1]; w = 0 |
i = 1; j = 1; m = [[1, 1, 1, 2], [1, 9, 1, 2], [1, 8, 9, 2], [1, 2, 3, 4]] | m[i][j] = 'X' | i = 1; j = 1; m = [[1, 1, 1, 2], [1, 'X', 1, 2], [1, 8, 9, 2], [1, 2, 3, 4]] |
c = [['T', 's', 'i'], []]; i = 1; j = 0; w = 'h%x' | c[i].append(w[j]) | c = [['T', 's', 'i'], ['h']]; i = 1; j = 0; w = 'h%x' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.