start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
q = 4; s = 'aeiouuoiea' | y = ord(s[q]) - ord('a') | q = 4; s = 'aeiouuoiea'; y = 20 |
a = ['2', '3\n'] | p = int(a[0]) | a = ['2', '3\n']; p = 2 |
l = 2; u = [5] | u.append(l) | l = 2; u = [5, 2] |
y = '1 2 3 4 5 6 7 8 9' | y = y.split(' ') | y = ['1', '2', '3', '4', '5', '6', '7', '8', '9'] |
z = 1.430511474609375e-06 | z /= 2 | z = 7.152557373046875e-07 |
a = {(0): 0, (1): 6}; j = 2; p = 6 | a[j] = p | a = {0: 0, 1: 6, 2: 6}; j = 2; p = 6 |
n = '1 4 3 5 6 2' | n += ' ' | n = '1 4 3 5 6 2 ' |
c = [0, 2] | r.append(len(c)) | c = [0, 2]; r = [2] |
j = 1 | p.append(j) | j = 1; p = [1] |
n = 5 | n += 1 | n = 6 |
i = 8; n = ['like', 'to', 'dance']; s = ['I', 'love', 'to', 'dance.', 'I', 'like', 'to', 'dance', 'I.', 'like', 'to', 'play', 'chess.'] | n = n[1:] + [s[i]] | i = 8; n = ['to', 'dance', 'I.']; s = ['I', 'love', 'to', 'dance.', 'I', 'like', 'to', 'dance', 'I.', 'like', 'to', 'play', 'chess.'] |
n = ['2', '2'] | m = int(n[0]) | m = 2; n = ['2', '2'] |
q = 'aeiouuoiea\n\n\n\n' | g = len(q) / 2 | g = 7.0; q = 'aeiouuoiea\n\n\n\n' |
b = 3; r = {(0): [0, 1, 2, 3], (1): [1]}; s = 1 | r[s].append(b) | b = 3; r = {0: [0, 1, 2, 3], 1: [1, 3]}; s = 1 |
i = 0; m = 0; p = [2, 3, 1]; q = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]; z = [0, 1, 2] | z[m] = q[p[m] - 1 + i] | i = 0; m = 0; p = [2, 3, 1]; q = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]; z = [2, 1, 2] |
f = '56'; u = 52.0 | u += float(f) | f = '56'; u = 108.0 |
l = {(0): 'have', (1): 'anic', (2): 'eday'}; m = 0; n = 2; q = {(0): 'ha'} | q[m] += l[n][m] | l = {0: 'have', 1: 'anic', 2: 'eday'}; m = 0; n = 2; q = {0: 'hae'} |
i = 0 | j = i | i = 0; j = 0 |
q = ['3', '4', '100']; r = 2 | r = int(q[0]) | q = ['3', '4', '100']; r = 3 |
d = [1]; o = 2 | d.append(o) | d = [1, 2]; o = 2 |
f = [100, 100, -100, 0, 0, -100]; l = 100; x = 3 | f[x - 1] += l | f = [100, 100, 0, 0, 0, -100]; l = 100; x = 3 |
f = 1; k = False | k = f | f = 1; k = 1 |
c = ['popleft']; d = deque([4, 1, 2]) | getattr(d, c[0])(int(c[1])) if len(c) == 2 else getattr(d, c[0])() | c = ['popleft']; d = deque([1, 2]) |
i = 2; j = 164 | j += i | i = 2; j = 166 |
m = '111111111111111111111111111111' | m += '1' | m = '1111111111111111111111111111111' |
n = [] | n.append(days) | b = 39; n = [39] |
i = 6; n = 8; p = 11 | p ^= 2 ** (n - i - 1) | i = 6; n = 8; p = 9 |
i = 1; l = [5, 10, 3]; s = {(5): 0} | s[l[i]] = i | i = 1; l = [5, 10, 3]; s = {5: 0, 10: 1} |
m = 300; v = 100 | m += v | m = 400; v = 100 |
o = 3 | o += 1 | o = 4 |
i = '2 1' | i = i.split() | i = ['2', '1'] |
a = [21, 28, 26, 5]; i = 1; j = 3; t = '0b11110' | t = bin(a[i] | a[j]) | a = [21, 28, 26, 5]; i = 1; j = 3; t = '0b11101' |
a = 3 | u = lambda a, b: u(b, a % b) if b else a | a = 3; u = <function <lambda> at 0x7f1bf436aa70> |
l = [[11, 2, 4]]; m = [4, 5, 6] | l.append(m) | l = [[11, 2, 4], [4, 5, 6]]; m = [4, 5, 6] |
s = 138; t = 155 | s = t | s = 155; t = 155 |
i = [0]; p = ['1/4/2012', '16:00:00', '27.47'] | i.append(float(p[2]) ** 10) | i = [0, 244673308281644.53]; p = ['1/4/2012', '16:00:00', '27.47'] |
e = [55]; j = 0; l = [33, 11, 44, 11, 55] | e.append(l[j]) | e = [55, 33]; j = 0; l = [33, 11, 44, 11, 55] |
a = ['I love to dance', ' I like to dance I', ' like to play chess']; h = ['I', 'like', 'to', 'dance', 'I']; i = 2 | h = a[i].split() | a = ['I love to dance', ' I like to dance I', ' like to play chess']; h = ['like', 'to', 'play', 'chess']; i = 2 |
p = 2; u = 'n'; w = 'dcba' | u = w[p] | p = 2; u = 'b'; w = 'dcba' |
j = [1, 2, 1, 2, 1] | j.sort() | j = [1, 1, 1, 2, 2] |
a = [7]; i = 0; j = 1; 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 = 5 | a.append(y - m[i + 1][j] - m[i + 1][j + 2]) | a = [7, 4]; i = 0; j = 1; 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 = 5 |
g = 'afhiiklqu'; s = {'i': 1, 'fi': 1, 'afi': 1, 'afii': 1, 'afiil': 1, 'afiilu': 1, 'afhiilu': 1, 'afhiiklu': 1} | s[g] = s.get(g, 0) + 1 | g = 'afhiiklqu'; s = {'i': 1, 'fi': 1, 'afi': 1, 'afii': 1, 'afiil': 1, 'afiilu': 1, 'afhiilu': 1, 'afhiiklu': 1, 'afhiiklqu': 1} |
i = 0; j = 1 | q = j - i - 1 | i = 0; j = 1; q = 0 |
s = 1; w = [595, 159, 750, 516, 405, 86, 923, 854, 246, 190] | t = w[s] | s = 1; t = 159; w = [595, 159, 750, 516, 405, 86, 923, 854, 246, 190] |
s = 'abcd'; x = 0 | z = z + s[x] | s = 'abcd'; x = 0; z = 'z57keL0JXYnmZC1a' |
b = 7; x = 1 | b -= x | b = 6; x = 1 |
x = -1, 0 | i.append(x) | i = [(-1, 0)]; x = (-1, 0) |
a = 2; i = 0; j = 1; s = '24256' | a = s[i:j + 1] | a = '24'; i = 0; j = 1; s = '24256' |
a = [4, -2, 2]; k = 56.42857142857143 | k = a[0] ** a[1] / a[2] | a = [4, -2, 2]; k = 0.03125 |
h = ['1112', '1912', '1892', '1234']; i = 1; q = 1 | b = h[q][i] | b = '9'; h = ['1112', '1912', '1892', '1234']; i = 1; q = 1 |
a = 2; n = 13 | a = n // 5 | a = 2; n = 13 |
a = [1, 2, 3, 4, 5]; b = [5]; i = 1; k = 4; n = 5 | b.append(a[i - n + k]) | a = [1, 2, 3, 4, 5]; b = [5, 1]; i = 1; k = 4; n = 5 |
b = 479001600; k = 13 | b *= k | b = 6227020800; k = 13 |
m = 2; v = [1, 4] | m += v[1] - v[0] + 1 | m = 6; v = [1, 4] |
a = [3, 6, 18, 12] | a.sort() | a = [3, 6, 12, 18] |
b = 3; h = [1, 2, 3, 4, 5]; s = 8; t = 2 | s = b * h[t] | b = 3; h = [1, 2, 3, 4, 5]; s = 9; t = 2 |
j = 5; q = deque([]) | q.append(j) | j = 5; q = deque([5]) |
o = 1; y = 6 | o = y | o = 6; y = 6 |
k = 55; o = 230843697339241380472092742683027581083278564571807941132288000000000000 | o *= k | k = 55; o = 12696403353658275925965100847566516959580321051449436762275840000000000000 |
f = {(0): True, (1): True, (5): True}; i = 1; j = 2; m = 4 | f[i * m + j] = True | f = {0: True, 1: True, 5: True, 6: True}; i = 1; j = 2; m = 4 |
i = 2; l = [5, 10, 3]; y = {(5): 0, (10): 1} | y[l[i]] = i | i = 2; l = [5, 10, 3]; y = {5: 0, 10: 1, 3: 2} |
g = [1, 2, 3, 4, 5]; i = 5; p = deque([0]); u = 1; v = 9 | v = g[u] * (i if len(p) == 0 else i - p[-1] - 1) | g = [1, 2, 3, 4, 5]; i = 5; p = deque([0]); u = 1; v = 8 |
b = ['T', 'h', 'i', 's', '$', '#', 'i', 's', '%', ' ', 't', None, 'i', 'x', '#', ' ', ' ', '%', None]; d = 'ir!'; n = 7; w = 1; z = 6 | b[z + w * n] = d[w] | b = ['T', 'h', 'i', 's', '$', '#', 'i', 's', '%', ' ', 't', None, 'i', 'r', '#', ' ', ' ', '%', None]; d = 'ir!'; n = 7; w = 1; z = 6 |
j = 104 | j += i | i = 32; j = 136 |
k = 0.2665926535897931; r = [1.1415926535897931, 0.8584073464102069, 0.6415926535897931, 0.025074013076873403, 0.2844497964469359, 0.0012644892673496777] | r.append(k) | k = 0.2665926535897931; r = [1.1415926535897931, 0.8584073464102069, 0.6415926535897931, 0.025074013076873403, 0.2844497964469359, 0.0012644892673496777, 0.2665926535897931] |
n = 'a' | c.append(n) | c = ['a']; n = 'a' |
j = 'a' | i.append(j) | i = ['a']; j = 'a' |
e = 108257 | e >>= 1 | e = 54128 |
g = []; i = 1 | g.append(str(i)) | g = ['1']; i = 1 |
a = 10; b = 1010; i = 90; u = 1250319439678234077648115466110 | u = u + (a ^ b << i) | a = 10; b = 1010; i = 90; u = 2500638879356468155296230932360 |
b = [5, 3, 2] | b.reverse() | b = [2, 3, 5] |
b = [1, 1, 1, 2, 2]; i = 0; l = 0; n = [0, 0] | n[i] = b[l + i] | b = [1, 1, 1, 2, 2]; i = 0; l = 0; n = [1, 0] |
d = 1; t = [0, 1] | t.append(d) | d = 1; t = [0, 1, 1] |
e = 5; n = [1, 4] | e = abs(n[-1] - n[-2]) | e = 3; n = [1, 4] |
e = 2; j = [1] | j.append(e) | e = 2; j = [1, 2] |
i = 4; w = [0, 1, 1, 2, 2, 3, 3, 4] | w.append(i) | i = 4; w = [0, 1, 1, 2, 2, 3, 3, 4, 4] |
h = 134217728; i = 37; s = 64 | h = 1 << s - i - 1 | h = 67108864; i = 37; s = 64 |
a = -1; b = 4; n = 2; x = [[2, 3], [-1, 4], [-1, 5], [-1, -1], [-1, -1]] | a, b = x[n] | a = -1; b = 5; n = 2; x = [[2, 3], [-1, 4], [-1, 5], [-1, -1], [-1, -1]] |
i = 3; j = 'ababaa '; y = ' ' | y = j[-i:] | i = 3; j = 'ababaa '; y = 'a ' |
u = [2, 1, 3] | o = max(u[ind:]) | o = 3; u = [2, 1, 3]; z = -95 |
b = ['9']; x = ['append', '1'] | b = x[1:] | b = ['1']; x = ['append', '1'] |
n = 2.524354896707238e-28 | n /= 2 | n = 1.262177448353619e-28 |
t = 'i'; v = {'a': False, 'b': False, 'c': False, 'd': False, 'e': False, 'f': False, 'g': False, 'h': False} | v[t] = False | t = 'i'; v = {'a': False, 'b': False, 'c': False, 'd': False, 'e': False, 'f': False, 'g': False, 'h': False, 'i': False} |
i = 2; j = 168 | j += i | i = 2; j = 170 |
g = 190; j = 7; v = [6, 11, 25, 48, 60, 110, 80, 60, 0, 0] | g += v[j] | g = 250; j = 7; v = [6, 11, 25, 48, 60, 110, 80, 60, 0, 0] |
w = [[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]]; x = [0, 0, 1, 2, 4, 0] | w.append(x) | w = [[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 = [0, 0, 1, 2, 4, 0] |
e = 21; n = [9, 7, 5, 3, 1]; t = 2; x = 3 | e += n[x] * t | e = 27; n = [9, 7, 5, 3, 1]; t = 2; x = 3 |
h = ['a', 'b', 'd', 'c']; k = -3; w = ['n'] | w = h[k] | h = ['a', 'b', 'd', 'c']; k = -3; w = 'b' |
a = ['1', '2', '3', '4'] | a = list(map(int, a)) | a = [1, 2, 3, 4] |
i = 46; q = [4, 16, 36, 64, 100, 144, 196, 256, 324, 400, 784, 900, 1024, 1156, 1296, 1444, 1600, 1764, 1936] | q.append(i * i) | i = 46; q = [4, 16, 36, 64, 100, 144, 196, 256, 324, 400, 784, 900, 1024, 1156, 1296, 1444, 1600, 1764, 1936, 2116] |
i = [0.32, 0.64, 0.76, 0.8, 0.8700000000000001, 1.0] | s = i[-1] | i = [0.32, 0.64, 0.76, 0.8, 0.8700000000000001, 1.0]; s = 1.0 |
i = 10; q = ['a', 'a', 'b', 'b', 'c', 'c', 'd', 'd', 'e', 'e', 'f', 'g', 'h', 'i']; z = 'e' | z = q[i] | i = 10; q = ['a', 'a', 'b', 'b', 'c', 'c', 'd', 'd', 'e', 'e', 'f', 'g', 'h', 'i']; z = 'f' |
k = [[0, 1, 4], [2, 3]] | m = [len(s) for s in k] | k = [[0, 1, 4], [2, 3]]; m = [3, 2] |
f = 0; i = 2; k = 3; p = 1 | f, p = k, i | f = 3; i = 2; k = 3; p = 2 |
g = 395; s = 3 | g -= s | g = 392; s = 3 |
k = 0; r = 2 | k = r | k = 2; r = 2 |
b = 'ABC' | e = b[0] | b = 'ABC'; e = 'A' |
e = 'c', 'd'; l = 3; r = 0; s = 'cdcd' | e = tuple(sorted(s[r:r + l])) | e = ('c', 'c', 'd'); l = 3; r = 0; s = 'cdcd' |
i = 4; j = 0; n = [[1, 0, 0, 1, 0, 1], [0, 1, 0, 0, 1, 1], [0, 0, 0, 1, 1, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]] | n[i][j] = 1 | i = 4; j = 0; n = [[1, 0, 0, 1, 0, 1], [0, 1, 0, 0, 1, 1], [0, 0, 0, 1, 1, 0], [0, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]] |
k = 5.0 | k = k + 1 | k = 6.0 |