start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
i = 4 | z = z + i | i = 4; z = 19 |
a = ['i', 'fi', 'afi', 'afii', 'afiil', 'afiilu', 'afhiilu', 'hkqqu', 'h', 'hk', 'hkq', 'hkqq', 'k']; i = 7; j = 2; s = 'ifailuhkqq' | a.append(''.join(sorted(s[i:i + j]))) | a = ['i', 'fi', 'afi', 'afii', 'afiil', 'afiilu', 'afhiilu', 'hkqqu', 'h', 'hk', 'hkq', 'hkqq', 'k', 'kq']; i = 7; j = 2; s = 'ifailuhkqq' |
q = [5, 2, 8] | q.sort() | q = [2, 5, 8] |
i = 2; j = 1; x = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; y = 0 | y = x[i][j - 1] if j >= 1 else 0 | i = 2; j = 1; x = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; y = 1 |
c = {'e': 1, 'g': 2}; z = 'e' | c[z] += 1 | c = {'e': 2, 'g': 2}; z = 'e' |
a = 51; i = 11; j = 57 | a = i ^ j | a = 50; i = 11; j = 57 |
g = 'ec'; k = 3; n = 'eday' | g = g + n[k] | g = 'ecy'; k = 3; n = 'eday' |
g = [89, 0, 0, 0]; w = 0 | g[w] += 1 | g = [90, 0, 0, 0]; w = 0 |
g = 1; j = 2; y = 2 | y = g ^ j | g = 1; j = 2; y = 3 |
c = ['0', '9', '2', '2', '8', '2']; j = 5 | c[i] = c[j] = max(c[i], c[j]) | c = ['0', '9', '2', '2', '8', '9']; i = True; j = 5 |
g = 1; i = 3.0 | i -= g | g = 1; i = 2.0 |
f = {'ive': 1, 'got': 1, 'a': 1}; m = 'lovely' | f[m] = 1 | f = {'ive': 1, 'got': 1, 'a': 1, 'lovely': 1}; m = 'lovely' |
o = 1; x = 4 | m = x - o | m = 3; o = 1; x = 4 |
n = 1.200000000000001e-69 | n = n / 10 | n = 1.200000000000001e-70 |
b = ['AC', 'AH', 'AK', 'CH', 'CK']; c = 'H', 'K' | b.append(''.join(c)) | b = ['AC', 'AH', 'AK', 'CH', 'CK', 'HK']; c = ('H', 'K') |
n = 1 | v = list(range(2, n + 1)) | n = 1; v = [] |
p = 3 | w = [0] * p | p = 3; w = [0, 0, 0] |
a = 'we' | i = i + len(a) | a = 'we'; i = 36 |
n = 2; s = 3; v = [5, 4, 3, 0, 0] | v[s] = n | n = 2; s = 3; v = [5, 4, 3, 2, 0] |
d = [3, 3, 9, 9, 5]; e = 7; j = 0 | p = (p + d[j]) % e | d = [3, 3, 9, 9, 5]; e = 7; j = 0; p = 1 |
n = -2.0 | n += 1 / (2 << count) | n = -2.0 |
n = 2147483647 | n = str(2 ** 32 - n - 1) | n = '2147483648' |
o = 1 | n += o | n = -83; o = 1 |
u = 2 | u += 1 | u = 3 |
j = 11 | j += 1 | j = 12 |
b = 4; h = [100, 100, 0, 0, 0]; k = 100 | h[b] -= k | b = 4; h = [100, 100, 0, 0, -100]; k = 100 |
r = [2, 5, 6] | r.sort(reverse=True) | r = [6, 5, 2] |
e = 4; s = 'ggegge'; y = {'g': 1.0, 'e': 0.0} | y[s[e]] -= 1 | e = 4; s = 'ggegge'; y = {'g': 0.0, 'e': 0.0} |
k = '5 -1\n' | k = [int(i) for i in k.split()] | k = [5, -1] |
a = 3; d = [1, 2, 3, 4, 5]; l = 2; y = 4 | l = d[y] - d[a] | a = 3; d = [1, 2, 3, 4, 5]; l = 1; y = 4 |
i = 0 | a[i] = 0 | a = {0: 0}; i = 0 |
t = 'f'; z = ['o', 'k'] | z.append(t) | t = 'f'; z = ['o', 'k', 'f'] |
e = 0; g = {'0': [], '1': []}; y = 5 | g[str(e)].append(y) | e = 0; g = {'0': [5], '1': []}; y = 5 |
i = -1; s = ['h', 'e', 'f', 'g'] | i = len(s) - 2 | i = 2; s = ['h', 'e', 'f', 'g'] |
l = [[], [2], [1], []]; u = 2; v = 3 | l[u].append(v) | l = [[], [2], [1, 3], []]; u = 2; v = 3 |
n = 2; x = [4] | n = len(x) | n = 1; x = [4] |
s = 'baab' | z = s | s = 'baab'; z = 'baab' |
f = [2]; m = 1 | f.append(m) | f = [2, 1]; m = 1 |
k = 1; x = 7 | x = k % 10 | k = 1; x = 1 |
h = 2; r = '0'; s = '1000' | r += s[h] | h = 2; r = '00'; s = '1000' |
l = 9; q = 9; r = -1; y = [(2, 3), (-1, 4), (5, -1), (6, -1), (7, 8), (9, -1), (-1, -1), (10, 11), (-1, -1), (-1, -1), (-1, -1)] | l, r = y[q - 1] | l = -1; q = 9; r = -1; y = [(2, 3), (-1, 4), (5, -1), (6, -1), (7, 8), (9, -1), (-1, -1), (10, 11), (-1, -1), (-1, -1), (-1, -1)] |
i = 1; k = 4 | k = i - 1 | i = 1; k = 0 |
c = 'C'; x = 'AB' | x += c | c = 'C'; x = 'ABC' |
o = 15; x = 9 | o += x | o = 24; x = 9 |
a = 5; o = 2; w = {(1): 0, (4): 1} | w[a] = o | a = 5; o = 2; w = {1: 0, 4: 1, 5: 2} |
i = 0; k = [1, 1, 4, 1, 1] | i, j = 0, len(k) - 1 | i = 0; j = 4; k = [1, 1, 4, 1, 1] |
k = 3; l = ['h', 'c', 'd', 'k']; p = 'hcd' | p += l[k] | k = 3; l = ['h', 'c', 'd', 'k']; p = 'hcdk' |
j = '01111000001100001111110'; s = '1' | j += '0' if s == '1' else '1' | j = '011110000011000011111100'; s = '1' |
a = 2; b = 10; h = 2748779069502; i = 38 | h += a ^ b << i | a = 2; b = 10; h = 5497558138944; i = 38 |
e = 2; t = 1; u = [(0, 1)] | t, e = u.pop() | e = 1; t = 0; u = [] |
s = 'beabeefeab' | z = len(set(s)) == 2 | s = 'beabeefeab'; z = False |
i = 1; u = 2 | u = i | i = 1; u = 1 |
r = 6; u = 1; z = 1 | r = z + u | r = 2; u = 1; z = 1 |
f = [1, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 324, 361, 400, 441, 484, 529, 576, 625, 676, 729, 784]; p = 29 | f += [p ** 2] | f = [1, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 324, 361, 400, 441, 484, 529, 576, 625, 676, 729, 784, 841]; p = 29 |
i = 5; x = [2, 4, 3, 7, 4, 5] | z = [(-1) for i in range(len(x))] | i = 5; x = [2, 4, 3, 7, 4, 5]; z = [-1, -1, -1, -1, -1, -1] |
i = 1; j = 2; s = '1234'; t = 1 | t = int(s[i:j]) | i = 1; j = 2; s = '1234'; t = 2 |
f = '13'; x = 14 | f = str(x) | f = '14'; x = 14 |
b = 2; e = deque([1, 3]) | b = e.popleft() | b = 1; e = deque([3]) |
c = 139975520137008, 139975979095296; i = array([[6, 8, 10, 12]]); l = set() | l.add(c) | c = (139975520137008, 139975979095296); i = array([[ 6, 8, 10, 12]]); l = {(139975520137008, 139975979095296)} |
o = ']'; v = ['}', '}'] | o = v.pop() | o = '}'; v = ['}'] |
a = 0.05840734641020706; v = 0.10840734641020688 | v = a | a = 0.05840734641020706; v = 0.05840734641020706 |
m = 'xy'; o = 2; y = ['x', 'y', 'z'] | m += y[o] | m = 'xyz'; o = 2; y = ['x', 'y', 'z'] |
i = 2; j = 4; s = 'This$#is% Matrix# '; t = ['Tsi', 'h%x', 'i #', 'sM ', '$a ', '#t%', 'ir!'] | s += t[j][i] | i = 2; j = 4; s = 'This$#is% Matrix# '; t = ['Tsi', 'h%x', 'i #', 'sM ', '$a ', '#t%', 'ir!'] |
i = 44; p = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 31, 0, 32, 1, 35, 0, 36, 1, 39, 0, 40, 1, 43, 0] | p.append(p[-1] ^ i) | i = 44; p = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 31, 0, 32, 1, 35, 0, 36, 1, 39, 0, 40, 1, 43, 0, 44] |
x = 'In' | r += x + ' ' | r = 's0cBCuyZ4w2BhHJIn '; x = 'In' |
s = 1; u = [2, 1, 3, 1, 2] | s = int(len(u) / 2) | s = 2; u = [2, 1, 3, 1, 2] |
k = 9; x = 3 | x = int(k / 2) | k = 9; x = 4 |
s = ['50', '13', '2']; v = 110 | v = int(s[0]) | s = ['50', '13', '2']; v = 50 |
c = {(0): ['-', '-', '-', '-', '-', 'to'], (6): ['-', '-', '-', '-'], (4): ['-', 'that'], (3): ['be'], (1): ['be']}; i = '5'; w = 'question' | c[int(i)] = [w] | c = {0: ['-', '-', '-', '-', '-', 'to'], 6: ['-', '-', '-', '-'], 4: ['-', 'that'], 3: ['be'], 1: ['be'], 5: ['question']}; i = '5'; w = 'question' |
f = 3; s = 'ashley' | v = len(s) - f | f = 3; s = 'ashley'; v = 3 |
p = 0; r = 3 | o = r - p | o = 3; p = 0; r = 3 |
m = 6 | m += 1 | m = 7 |
h = [['1', '1', '1', '2'], ['1', '9', '1', '2'], ['1', '8', '9', '2'], ['1', '2', '3', '4']]; i = 2; j = 1; k = 49 | k = ord(h[i][j]) | h = [['1', '1', '1', '2'], ['1', '9', '1', '2'], ['1', '8', '9', '2'], ['1', '2', '3', '4']]; i = 2; j = 1; k = 56 |
q = OrderedDict([('bcdef', 1), ('abcdefg', 1), ('bcde', 1)]); x = 'bcdef' | q[x] += 1 | q = OrderedDict([('bcdef', 2), ('abcdefg', 1), ('bcde', 1)]); x = 'bcdef' |
a = [[1, 9, 12, 16], [6, 16, 22, 27]]; i = 2; j = 2; x = [9, 25]; z = [[1, 8, 3, 4], [5, 2, 3, 1], [3, 6, 2, 2]] | x.append(a[i - 1][j] + x[j - 1] - a[i - 1][j - 1] + z[i][j]) | a = [[1, 9, 12, 16], [6, 16, 22, 27]]; i = 2; j = 2; x = [9, 25, 33]; z = [[1, 8, 3, 4], [5, 2, 3, 1], [3, 6, 2, 2]] |
a = 6765; m = {1, 2, 3, 34, 5, 610, 8, 233, 377, 13, 144, 21, 4181, 55, 2584, 89, 987, 1597} | m.add(a) | a = 6765; m = {1, 2, 3, 5, 8, 13, 144, 21, 2584, 34, 55, 1597, 4181, 89, 987, 610, 233, 6765, 377} |
g = [-1, 0, -1, -1, -1]; h = 2, 2; x = 1 | g[h[0]] = x | g = [-1, 0, 1, -1, -1]; h = (2, 2); x = 1 |
u = {} | v = u.pop('legacy', None) | u = {}; v = None |
d = [(433, 298), (421, 84)]; p = 167, 84 | d.append(p) | d = [(433, 298), (421, 84), (167, 84)]; p = (167, 84) |
a = 2; o = 122 | o += a | a = 2; o = 124 |
c = 15 | c += 1 | c = 16 |
i = 3; l = [4, 4, 4, 4, 0] | l[i] += 1 | i = 3; l = [4, 4, 4, 5, 0] |
a = 13; j = 0; s = 'aaaaabbbbaaaa' | r = s[j:a] + s[0:j] | a = 13; j = 0; r = 'aaaaabbbbaaaa'; s = 'aaaaabbbbaaaa' |
i = 1; k = 2 | n = i - k + 1 | i = 1; k = 2; n = 0 |
g = {(5, 5)}; j = 4; o = 2 | g.add((j, o)) | g = {(4, 2), (5, 5)}; j = 4; o = 2 |
i = 3; j = 0; t = [[1, 2], []] | t[j].append(i + 1) | i = 3; j = 0; t = [[1, 2, 4], []] |
k = 1 | k = int(k / 10) | k = 0 |
g = 1; w = 12.0 | w -= g | g = 1; w = 11.0 |
s = 'a'; y = {'o': 2, 'a': 1, 'u': 2, 'i': 2, 'e': 2} | y[s] += 1 | s = 'a'; y = {'o': 2, 'a': 2, 'u': 2, 'i': 2, 'e': 2} |
e = 0, 5; n = 0; p = 2; s = -2, 6 | s = e[0] + n, e[1] + p | e = (0, 5); n = 0; p = 2; s = (0, 7) |
a = 1; b = 1; r = [['c']]; s = 'cdcd' | r.append(sorted(s[b:b + a])) | a = 1; b = 1; r = [['c'], ['d']]; s = 'cdcd' |
i = 2; k = 2; n = 3 | i += n % 10 * k | i = 8; k = 2; n = 3 |
n = [4, '7', '6'] | n[1] = int(n[1]) | n = [4, 7, '6'] |
m = 82; p = 2 | m += p | m = 84; p = 2 |
s = 2; x = 1 | z += s * x | s = 2; x = 1; z = -36 |
k = 2; l = 5; t = 9; x = [2, 4, 5, 6, 7, 9, 11, 12] | t = x[l] + k | k = 2; l = 5; t = 11; x = [2, 4, 5, 6, 7, 9, 11, 12] |
w = 98; x = 'okffng-Qwv' | x = x + chr(w) | w = 98; x = 'okffng-Qwvb' |
r = '12 1'; z = ['10', '2'] | z = r.split() | r = '12 1'; z = ['12', '1'] |
d = {(1): True}; i = 1 | d[i] = False | d = {1: False}; i = 1 |
q = 2; t = 1 | t = q | q = 2; t = 2 |