start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
d = 140332432467824; x = '....O..' | d = id(x) | d = 139760243782064; x = '....O..' |
f = [[0, 0, 0, 0, 0], [1, -1, 1, -1, 1], [2, 0, 2, 0, 2], [3, 1, 3, 1, 3]]; o = 3; t = 4 | k = o - f[o][t] | f = [[0, 0, 0, 0, 0], [1, -1, 1, -1, 1], [2, 0, 2, 0, 2], [3, 1, 3, 1, 3]]; k = 0; o = 3; t = 4 |
h = ['aabbccddeefghi'] | p = h[0] if h else None | h = ['aabbccddeefghi']; p = 'aabbccddeefghi' |
g = [4, 6, 8, 10, 12, 14, 16]; j = 18 | g.append(j) | g = [4, 6, 8, 10, 12, 14, 16, 18]; j = 18 |
j = 0.2415926535897932; l = [1.1415926535897931, 0.8584073464102069, 0.6415926535897931, 0.016592653589793116, 0.2527037647009043, 0.030481542478681956] | l.append(j) | j = 0.2415926535897932; l = [1.1415926535897931, 0.8584073464102069, 0.6415926535897931, 0.016592653589793116, 0.2527037647009043, 0.030481542478681956, 0.2415926535897932] |
a = 11.357816691600547; n = 7 | a = 5 * n ** 2 + 4 | a = 249; n = 7 |
l = [[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 = [1, 1, 1, 1, 1, 1, 1]; x = 0; y = 1 | s.append(l[x][y]) | l = [[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 = [1, 1, 1, 1, 1, 1, 1, 1]; x = 0; y = 1 |
b = 1; q = {(0): 1} | q[b] = 1 | b = 1; q = {0: 1, 1: 1} |
i = 4; p = ['a', 'a', 'b', 'b', 'c', 'c', 'd', 'd', 'e', 'e', 'f', 'g', 'h', 'i']; u = 'b' | u = p[i] | i = 4; p = ['a', 'a', 'b', 'b', 'c', 'c', 'd', 'd', 'e', 'e', 'f', 'g', 'h', 'i']; u = 'c' |
e = 3; m = 1 | m = max(m, e) | e = 3; m = 3 |
c = 3; g = 9 | g += c | c = 3; g = 12 |
a = [1, 3, 6]; b = [4, 9, 6]; i = 0; k = 3 | b[i] += a[i + k - 1] | a = [1, 3, 6]; b = [10, 9, 6]; i = 0; k = 3 |
h = 2; m = {(1): 'set_1', (2): 'set_1', (3): 'set_1'}; u = None | u = m.get(h, None) | h = 2; m = {1: 'set_1', 2: 'set_1', 3: 'set_1'}; u = 'set_1' |
a = [0, 0, 0, 0, 0, 0, 0, 1, 0, 1]; i = 2; n = 10; q = 1 | q ^= a[n - 1 - i] | a = [0, 0, 0, 0, 0, 0, 0, 1, 0, 1]; i = 2; n = 10; q = 0 |
h = 0; i = 0; n = 4 | n = i - h | h = 0; i = 0; n = 0 |
g = '0'; o = '011110000011' | o = o + g | g = '0'; o = '0111100000110' |
a = 1; b = 2; e = {(1): [2], (2): [], (3): []} | e[b].append(a) | a = 1; b = 2; e = {1: [2], 2: [1], 3: []} |
d = '4'; m = '1' | d, m = [int(d), int(m)] | d = 4; m = 1 |
l = 3; n = 36 | n += l | l = 3; n = 39 |
i = 4; u = 1; x = ['a', 'c', 'd', 'b'] | x[u + 1:i] = x[i:u:-1] | i = 4; u = 1; x = ['a', 'c', 'b', 'd'] |
i = 1; j = 3; x = 2 | x = j - i - 1 | i = 1; j = 3; x = 1 |
i = 1 | n[i] = [] | i = 1; n = {1: []} |
s = ''; w = 'abc' | w = s | s = ''; w = '' |
p = 1 | p += 1 | p = 2 |
i = 6; m = {(0): 4, (6): 3, (4): 1} | m[i] += 1 | i = 6; m = {0: 4, 6: 4, 4: 1} |
j = 2; q = 3; z = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [2, 1, 2, 0, 0, 0]] | z[q - 1][j] += 1 | j = 2; q = 3; z = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [2, 1, 3, 0, 0, 0]] |
i = 3; s = '{[()]}'; x = '(' | x = s[i] | i = 3; s = '{[()]}'; x = ')' |
i = 0; t = [['11', '2', '4']] | n += int(t[i][-(i + 1)]) | i = 0; n = -72; t = [['11', '2', '4']] |
b = 'a'; k = 9; z = ['b', 'e', 'a', 'b', 'e', 'e', 'f', 'e', 'a', 'b'] | b = z[k] | b = 'b'; k = 9; z = ['b', 'e', 'a', 'b', 'e', 'e', 'f', 'e', 'a', 'b'] |
e = '2'; f = '3' | e, f = int(e), int(f) | e = 2; f = 3 |
o = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 0, 36, 1, 39, 0, 40, 1, 43, 0, 44, 1, 47, 0, 48]; x = 49 | o.append(o[-1] ^ x) | o = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 0, 36, 1, 39, 0, 40, 1, 43, 0, 44, 1, 47, 0, 48, 1]; x = 49 |
i = 1; q = 'This$#is% Mat'; r = 'ir!' | q += r[i] | i = 1; q = 'This$#is% Matr'; r = 'ir!' |
h = 'ifai'; i = 1; k = 'ifailuhkqq'; q = 4 | h = k[i:i + q] | h = 'fail'; i = 1; k = 'ifailuhkqq'; q = 4 |
r = ['f', 'a', 'i', 'l', 'u'] | r.sort() | r = ['a', 'f', 'i', 'l', 'u'] |
g = 1; r = 4 | r += g | g = 1; r = 5 |
c = [[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 = 1; j = 2; l = {(0): 3, (20): 3, (1): 2, (21): 2, (2): 1, (22): 1, (3): 0, (23): 0, ( 10): 1, (30): 2, (11): 1, (31): 6, (12): 0}; u = 32 | l[u] = c[i + 2][j] + c[i + 2][j + 1] + c[i + 2][j + 2] | c = [[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 = 1; j = 2; l = {0: 3, 20: 3, 1: 2, 21: 2, 2: 1, 22: 1, 3: 0, 23: 0, 10: 1, 30: 2, 11: 1, 31: 6, 12: 0, 32: 10}; u = 32 |
b = 7; r = {(5): -1} | r[b] = -1 | b = 7; r = {5: -1, 7: -1} |
p = 1.7999999999999992e-102 | p /= 10 | p = 1.7999999999999992e-103 |
l = 2; s = 'ifailuhkqq'; t = 'if'; w = 1 | t = s[w:w + l] | l = 2; s = 'ifailuhkqq'; t = 'fa'; w = 1 |
n = 9.313225746154785e-10 | n /= 2 | n = 4.656612873077393e-10 |
e = [0, 2]; k = 2 | e.append(k) | e = [0, 2, 2]; k = 2 |
d = '1111' | d = list(d) | d = ['1', '1', '1', '1'] |
v = 'index' | n.add(v) | n = {'index'}; v = 'index' |
i = [('6', '1'), ('1', '6')] | i = [int(''.join(x)) for x in i] | i = [61, 16] |
h = [10, 20, 30, 100, 200, 300, 1000]; i = 2; k = 3; r = 80 | r = h[i + k - 1] - h[i] | h = [10, 20, 30, 100, 200, 300, 1000]; i = 2; k = 3; r = 170 |
i = 1; j = 0; r = [[0, 2], [1, 1]]; z = [1, 0] | z[i] += r[j][i] | i = 1; j = 0; r = [[0, 2], [1, 1]]; z = [1, 2] |
j = 'two'; r = {'two': 1, 'times': 1} | r[j] = r.get(j, 0) + 1 | j = 'two'; r = {'two': 2, 'times': 1} |
l = [1, 1, 1, 1, 2, 3, 0]; r = 6; u = 1 | l[r] = l[r] + l[r - u * u] | l = [1, 1, 1, 1, 2, 3, 3]; r = 6; u = 1 |
i = 206; u = [204, 205] | u.append(i) | i = 206; u = [204, 205, 206] |
b = ['o', 'k', 'f', 'f', 'n', 'g', '-', 'O', 'u', 't', 'z']; e = 7; n = 81 | b[e] = chr(n) | b = ['o', 'k', 'f', 'f', 'n', 'g', '-', 'Q', 'u', 't', 'z']; e = 7; n = 81 |
n = 5 | u = '{0:b}'.format(n) | n = 5; u = '101' |
c = ['9', '10', '11']; g = ['9', '9', '910'] | g.append(''.join(c)) | c = ['9', '10', '11']; g = ['9', '9', '910', '91011'] |
g = {'a': 2, 'b': 2, 'c': 2, 'd': 2}; p = 'e' | g[p] = 1 | g = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 1}; p = 'e' |
h = 3; q = 3; u = 2 | h = u + q | h = 5; q = 3; u = 2 |
d = [0, 1, 2]; i = 4 | d.append(i) | d = [0, 1, 2, 4]; i = 4 |
i = 22 | i += 1 | i = 23 |
j = 'u'; o = 97; v = 9 | v = ord(j) - o | j = 'u'; o = 97; v = 20 |
e = [0, 1, 0]; h = 1; i = 0 | e.insert(0, h ^ i) | e = [1, 0, 1, 0]; h = 1; i = 0 |
a = 10; b = 1010; i = 92; w = 5001277758712936310592461864850 | w = w + (a ^ b << i) | a = 10; b = 1010; i = 92; w = 10002555517425872621184923729820 |
i = 1; t = 3 | t = i | i = 1; t = 1 |
f = [0, 0, 3, 4, 4]; i = 2; v = 4 | v = f[i] | f = [0, 0, 3, 4, 4]; i = 2; v = 3 |
a = 2; b = 46116860184273879040; s = 46116860184273879150 | s += a ^ b | a = 2; b = 46116860184273879040; s = 92233720368547758192 |
l = {'fi': 1, 'af': 1}; r = 'ai' | l[r] = 1 | l = {'fi': 1, 'af': 1, 'ai': 1}; r = 'ai' |
k = 3 | i = i + k | i = 97; k = 3 |
i = 0; v = ['Harry', 'Berry', 'Tina', 'Akriti', 'Harsh'] | p.append(v[i]) | i = 0; p = ['Harry']; v = ['Harry', 'Berry', 'Tina', 'Akriti', 'Harsh'] |
t = {'a': 2}; u = 'b' | t[u] = 1 | t = {'a': 2, 'b': 1}; u = 'b' |
n = [('he', 'went', 'to'), ('went', 'to', 'the')]; y = 'to', 'the', 'other' | n.append(y) | n = [('he', 'went', 'to'), ('went', 'to', 'the'), ('to', 'the', 'other')]; y = ('to', 'the', 'other') |
i = 1; k = 3; n = 5; o = [1, 3, 5, 7, 9]; s = 21 | s = sum(o[max(n - (i + 1) * k, 0):n - i * k]) | i = 1; k = 3; n = 5; o = [1, 3, 5, 7, 9]; s = 4 |
j = 1; p = 1; q = [1, 3] | j, p = q | j = 1; p = 3; q = [1, 3] |
i = 0; r = [['11', '2', '4'], ['4', '5', '6'], ['10', '8', '-12']] | h += int(r[i][i]) | h = -8; i = 0; r = [['11', '2', '4'], ['4', '5', '6'], ['10', '8', '-12']] |
b = [6, 5, 2]; c = 2; g = [1, 1]; i = 2; u = 11 | u += (g[i % c] + 1) * b[i] | b = [6, 5, 2]; c = 2; g = [1, 1]; i = 2; u = 15 |
a = 2; b = 0; m = 1000 | a, b = (a * a - b * b) % m, a * b * 2 % m | a = 4; b = 0; m = 1000 |
e = 10; n = -5 | e = max(n, e + n) | e = 5; n = -5 |
n = [10, 1, 2] | f = min(n[1], n[2]) | f = 1; n = [10, 1, 2] |
d = 0; h = [1, 2, 3, 4, 5]; s = 8; w = 5 | s = h[d] * w | d = 0; h = [1, 2, 3, 4, 5]; s = 5; w = 5 |
k = 5; s = {0, 1} | s.add(k) | k = 5; s = {0, 1, 5} |
g = 4 | g += 1 | g = 5 |
b = 6; m = 9; x = 5 | m = abs(x - b) | b = 6; m = 1; x = 5 |
l = -1; u = [1, 2] | l = u.pop() | l = 2; u = [1] |
l = '01111000001100'; n = '1' | l = l + n | l = '011110000011001'; n = '1' |
b = -2; l = -1 | b = l | b = -1; l = -1 |
v = [-1, -1, -1] | v.append(-1) | v = [-1, -1, -1, -1] |
a = 5; c = 6 | c = c + a % 10 | a = 5; c = 11 |
i = 1; w = ['a', 'b'] | k = w[len(w) - i - 1] | i = 1; k = 'a'; w = ['a', 'b'] |
a = [5329]; m = 48 | a.append(m ** 2) | a = [5329, 2304]; m = 48 |
x = '-9' | x = int(x) | x = -9 |
l = 3; v = '12303479849857341718340192371' | l = len(v) | l = 29; v = '12303479849857341718340192371' |
l = 5 | x.append(l) | l = 5; x = [5] |
d = ['went', 'went', 'to']; i = 1 | d[i] = d[i + 1] | d = ['went', 'to', 'to']; i = 1 |
i = 3; n = [0, 1, 10010, 10010, 10010, 10010, 10010] | n[i] = min(n[i], n[i - 2] + 1) | i = 3; n = [0, 1, 10010, 2, 10010, 10010, 10010] |
b = '2 3 6 6 5' | b = [int(x) for x in b.split()] | b = [2, 3, 6, 6, 5] |
i = '['; q = ['{'] | q.append(i) | i = '['; q = ['{', '['] |
i = 10; l = ['S', 'o', 'm', 'e', 'R', 'a', 'n', 'd', 'o', 'm']; s = 'SomeRandomStuff' | l.append(s[i]) | i = 10; l = ['S', 'o', 'm', 'e', 'R', 'a', 'n', 'd', 'o', 'm', 'S']; s = 'SomeRandomStuff' |
p = 1.1102230246251565e-15; x = 3.999999999999998 | x += p % 2 | p = 1.1102230246251565e-15; x = 3.999999999999999 |
p = 2; q = 'abcd'; t = 'dc'; w = 'abcd' | q = w[:p] + t | p = 2; q = 'abdc'; t = 'dc'; w = 'abcd' |
q = Counter({(1): 1}); x = 1 | q[x] += 1 | q = Counter({1: 2}); x = 1 |
a = 83; i = 12; y = [63, 25, 73, 1, 98, 73, 56, 84, 86, 57, 16, 83, 82, 67, 61, 32, 21, 79, 75, 75, 13, 87, 70, 33] | a = y[i] | a = 82; i = 12; y = [63, 25, 73, 1, 98, 73, 56, 84, 86, 57, 16, 83, 82, 67, 61, 32, 21, 79, 75, 75, 13, 87, 70, 33] |
l = [[25, 16]]; s = [49, 64, 81] | l.append(s) | l = [[25, 16], [49, 64, 81]]; s = [49, 64, 81] |
i = [[1, 3, 4], [2, 2, 3], [1, 2, 4]] | b = list(i) | b = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; i = [[1, 3, 4], [2, 2, 3], [1, 2, 4]] |
f = 1; p = -1 | f = p | f = -1; p = -1 |