start
stringlengths
5
368
code
stringlengths
5
143
end
stringlengths
5
527
b = ['3', '3', '2', '1']
p = int(b[3])
b = ['3', '3', '2', '1']; p = 1
i = 205; k = {(203): 1, (204): 2, (205): 0}
k[i] += 1
i = 205; k = {203: 1, 204: 2, 205: 1}
f = ['a', 'ab']; l = 'aba'
f.append(l)
f = ['a', 'ab', 'aba']; l = 'aba'
e = 'ab'; f = 'abba'; i = 1; l = 2
e = ''.join(sorted(f[i:i + l]))
e = 'bb'; f = 'abba'; i = 1; l = 2
k = 57; l = ( 'In the third category he included those Brothers..., breathless from his gallop and his excitement. ' ); s = 'In the third category he included those Brothers (the maj'
s += l[k]
k = 57; l = 'In the third category he included those Brothers..., breathless from his gallop and his excitement. '; s = 'In the third category he included those Brothers (the majt'
p = 95; t = [5184, 4489, 8464]
t.append(p ** 2)
p = 95; t = [5184, 4489, 8464, 9025]
n = 4
y = [[(0) for ii in range(n)] for jj in range(n)]
n = False; y = []
a = [1, 3, 4, 2]; i = 1
a[i] = a[i + 1]
a = [1, 4, 4, 2]; i = 1
j = 56
j = j - 1
j = 55
l = [6, 1, 0, 1, 2, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; x = 5, 'question'
l[x[0]] += 1
l = [6, 1, 0, 1, 2, 1, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; x = (5, 'question')
b = 205; y = {(203): 2, (204): 2, (205): 2, (206): 2, (207): 1, (208): 1}
y[b] = y.get(b, 0) + 1
b = 205; y = {203: 2, 204: 2, 205: 3, 206: 2, 207: 1, 208: 1}
l = 'A'
r += l
l = 'A'; r = 'HjxBwA'
g = [[[], -2], [[], -1], [[], -1], [[], -1]]
g.append([[], -1])
g = [[[], -2], [[], -1], [[], -1], [[], -1], [[], -1]]
b = 9; j = 9
j = b
b = 9; j = 9
j = 'ebacd'
r.append(sorted(j))
j = 'ebacd'; r = [['a', 'b', 'c', 'd', 'e']]
g = 0; q = 'cdcd'; x = 'c'; y = 1
x = q[g:y + 1 + g]
g = 0; q = 'cdcd'; x = 'cd'; y = 1
f = 2, 3
f = list(f)
f = [2, 3]
f = 150; p = 100
p += f
f = 150; p = 250
a = 1; e = ['a', 'a', 'b', 'b', 'b', 'a', 'b', 'b', 'a', 'b']; o = ['R', 1, 5]; t = ['b', 'a', 'b', 'b', 'b', 'a', 'b', 'b', 'a', 'b']
t[a] = e[o[2] - 2 - a + o[1]]
a = 1; e = ['a', 'a', 'b', 'b', 'b', 'a', 'b', 'b', 'a', 'b']; o = ['R', 1, 5]; t = ['b', 'b', 'b', 'b', 'b', 'a', 'b', 'b', 'a', 'b']
n = 6; v = 2
x = v / n
n = 6; v = 2; x = 0.3333333333333333
m = ['HA', 'HC', 'HK', 'AH', 'AC', 'AK', 'CH', 'CA', 'CK']; s = 'KH'
m.append(s)
m = ['HA', 'HC', 'HK', 'AH', 'AC', 'AK', 'CH', 'CA', 'CK', 'KH']; s = 'KH'
m = 2; y = 0
y = m - 1
m = 2; y = 1
c = 4; i = 4; n = 4
c = c * (n + 1 - i) // i
c = 1; i = 4; n = 4
h = ['1', '1', '1', '2']; s = 2; y = ['1112', '1912', '1892', '1234']
h = list(y[s - 1])
h = ['1', '9', '1', '2']; s = 2; y = ['1112', '1912', '1892', '1234']
d = 3; f = 'ifailuhkqq\n'; i = 0; r = 'if'
r = f[i:d]
d = 3; f = 'ifailuhkqq\n'; i = 0; r = 'ifa'
g = [1, 0]; i = 1; y = []
y.append(g[i])
g = [1, 0]; i = 1; y = [0]
i = 203
g[i] = 0
g = {203: 0}; i = 203
d = [4]; z = [0, 2]
d.append(abs(z[0] - z[1]))
d = [4, 2]; z = [0, 2]
k = 5
u = k / 2
k = 5; u = 2.5
a = [-3, 1, 17, 68, 71]; i = 3; p = 4
p = min(a[i + 1] - a[i], p)
a = [-3, 1, 17, 68, 71]; i = 3; p = 3
m = [0, 0, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; x = 102
m[x - 97] += 1
m = [0, 0, 4, 4, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; x = 102
b = 1; g = 1; h = 6; t = [1, 0, 0]; x = [2, 5, 6]
h = h + (t[b] + 1) * x[g]
b = 1; g = 1; h = 11; t = [1, 0, 0]; x = [2, 5, 6]
c = [3, 9]; t = '17 24'
c = [int(j) for j in t.split(' ')]
c = [17, 24]; t = '17 24'
f = 109834; t = ['72', '76', '90']
f += int(t[0]) ** 2
f = 115018; t = ['72', '76', '90']
a = 2; b = 23058430092136939520; t = 23058430092136939628
t += a ^ b
a = 2; b = 23058430092136939520; t = 46116860184273879150
k = 2; z = 3
k = z + 1
k = 4; z = 3
i = 6
i -= 1
i = 5
a = [1, 4, 5, 3, 2]; i = 4; x = 0
y = i - a[x]
a = [1, 4, 5, 3, 2]; i = 4; x = 0; y = 3
a = ['9', 'o11', '9']; i = 9
a.append(str(bin(i))[2:])
a = ['9', 'o11', '9', '1001']; i = 9
d = 2.0679515313825692e-24
d /= 2
d = 1.0339757656912846e-24
i = 0, 0, 1; j = 2; k = [5, 7, 8, 9, 10]; w = 74
w += k[i[j]] ** 2
i = (0, 0, 1); j = 2; k = [5, 7, 8, 9, 10]; w = 123
g = [1, 3, 4]
a.append(g)
a = [[1, 3, 4]]; g = [1, 3, 4]
n = 5; t = 4; x = 3
g = min(n - t, x - 1)
g = 1; n = 5; t = 4; x = 3
d = 12; o = [(32, 62), (42, 68), (12, 98)]; y = 2
d = o[y][1]
d = 98; o = [(32, 62), (42, 68), (12, 98)]; y = 2
c = [0]; g = [1, 2, 2]
c = [0] * (len(g) - 1)
c = [0, 0]; g = [1, 2, 2]
h = {'1': 4, '2': 4, '3': 3, '6': 3, '5': 4, '4': 4}; i = '3'
h[i] += 1
h = {'1': 4, '2': 4, '3': 4, '6': 3, '5': 4, '4': 4}; i = '3'
a = [0, 1, 2, 3, 6, 5, 4]; i = 2; q = 1
q = a[i]
a = [0, 1, 2, 3, 6, 5, 4]; i = 2; q = 2
i = 5; k = 4; p = 3; y = [(1, 9), (2, 6), (3, 11), (4, 4)]
y.append((i, k + p))
i = 5; k = 4; p = 3; y = [(1, 9), (2, 6), (3, 11), (4, 4), (5, 7)]
a = {'a': 1, 'ab': 1, 'abc': 1, 'abcd': 1}; x = 'b'
a[x] = 1
a = {'a': 1, 'ab': 1, 'abc': 1, 'abcd': 1, 'b': 1}; x = 'b'
n = 1; p = [1]; t = [1, 2, 2]
p = t[n:]
n = 1; p = [2, 2]; t = [1, 2, 2]
n = 2; v = [100, 200, 0, 0, -100, -100]
v[n] += v[n - 1]
n = 2; v = [100, 200, 200, 0, -100, -100]
g = 20; r = 'd'; z = 97
g = ord(r) - z
g = 3; r = 'd'; z = 97
i = 1
v.append(i)
i = 1; v = [1]
f = 11, 9; i = 5
i += f[1]
f = (11, 9); i = 14
b = [0, 0, 2, 4, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 11
b[i + 1] += b[i]
b = [0, 0, 2, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 11
i = 5; o = 3
o = i
i = 5; o = 5
s = '1000000001 1000000002 1000000003 1000000004 1000000005'
s = [int(x) for x in s.split(' ')]
s = [1000000001, 1000000002, 1000000003, 1000000004, 1000000005]
s = 8; v = [[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 = 1
s = sum(v[y][x:x + 3]) + v[y + 1][x + 1] + sum(v[y + 2][x:x + 3])
s = 10; v = [[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 = 1
s = 5; x = [2, 4, 6, 8, 3]
v = x[s - 1]
s = 5; v = 3; x = [2, 4, 6, 8, 3]
f = 6; h = [4, 5, 6]; s = 0
h[s] = f + 1
f = 6; h = [7, 5, 6]; s = 0
t = 0
x = t + 1
t = 0; x = 1
c = 115018; h = 126346; q = 20; u = 118460; x = 1446; y = 1572
d = (q * u - x * y) / ((q * c - x ** 2) ** 0.5 * (q * h - y ** 2) ** 0.5)
c = 115018; d = 0.8893389092388306; h = 126346; q = 20; u = 118460; x = 1446; y = 1572
v = {(2, 0), (4, 3)}; x = 2; y = 2
v.add((x, y))
v = {(2, 0), (4, 3), (2, 2)}; x = 2; y = 2
e = 10; i = -5
e += i
e = 5; i = -5
j = 2; m = [1, 2, 3]; s = [2, 3]
s.append(m[j])
j = 2; m = [1, 2, 3]; s = [2, 3, 3]
b = '10'
b = int(b)
b = 10
i = 3; j = 1; t = [1, 2, 2, 0, 0]
t[i] = j + 1
i = 3; j = 1; t = [1, 2, 2, 2, 0]
i = 8; n = 4
i += n
i = 12; n = 4
n = {'contiguous_max_sum': 9, 'global_max_sum': 9}; o = 10; s = 10
n = {'contiguous_max_sum': o, 'global_max_sum': s}
n = {'contiguous_max_sum': 10, 'global_max_sum': 10}; o = 10; s = 10
e = {}; n = 1
e[n] = {}
e = {1: {}}; n = 1
a = 1; p = 2
p = a
a = 1; p = 1
t = ['10', '8', '-12']
t = [int(j) for j in t]
t = [10, 8, -12]
y = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]
s = 2 * len(y) * len(y[0])
s = 18; y = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]
f = 0; m = 5; p = 4; t = [(5, 0, 2)]
t.append((f, p - 1, m - 1))
f = 0; m = 5; p = 4; t = [(5, 0, 2), (0, 3, 4)]
c = 52; k = 56; x = 11
k = x ^ c
c = 52; k = 63; x = 11
b = ['1', '2', '4', '8', '281474976710656', '562949953421312', '1125899906842624', '2251799813685248']; p = 4503599627370496
b.append(str(p))
b = ['1', '2', '4', '8', '281474976710656', '562949953421312', '1125899906842624', '2251799813685248', '4503599627370496']; p = 4503599627370496
a = [1]; i = 1; s = [[1, 4, 10], [0, 3, 9], [1, 2, 8], [2, 1, 7], [3, 0, 6], [4, 1, 5]]
a.append(min(s[i]))
a = [1, 0]; i = 1; s = [[1, 4, 10], [0, 3, 9], [1, 2, 8], [2, 1, 7], [3, 0, 6], [4, 1, 5]]
p = ['ggegge']
v = p[0] if p else None
p = ['ggegge']; v = 'ggegge'
x = 999100; y = 99911
y = x
x = 999100; y = 999100
a = 4; i = 1; j = 2; s = '24256'
a = s[i:j + 1]
a = '42'; i = 1; j = 2; s = '24256'
s = {'a': 1, 'b': 1, 'c': 1}
s['c'] += 1
s = {'a': 1, 'b': 1, 'c': 2}
o = '1111\n'
n = o.count('1')
n = 4; o = '1111\n'
i = '5 7'
y = set(i.split(' '))
i = '5 7'; y = {'5', '7'}
y = ['1/9/2012', '16:00:00', '28.1']; z = [1, 6, 2012, 16, 0, 0]
z += list(map(int, y[0].split('/'))) + list(map(int, y[1].split(':')))
y = ['1/9/2012', '16:00:00', '28.1']; z = [1, 6, 2012, 16, 0, 0, 1, 9, 2012, 16, 0, 0]
g = ['{', '[']; o = '('
o = g.pop()
g = ['{']; o = '['
n = '875'
n = n[1:]
n = '75'
k = '5'; m = OrderedDict([('BANANA FRIES', '12'), ('POTATO CHIPS', '30'), ( 'APPLE JUICE', '20'), ('CANDY', '15')]); r = ['CANDY', '5']
m[r[0]] = str(int(m.get(r[0], '0')) + int(k))
k = '5'; m = OrderedDict([('BANANA FRIES', '12'), ('POTATO CHIPS', '30'), ('APPLE JUICE', '20'), ('CANDY', '20')]); r = ['CANDY', '5']
n = 3
n = n + 1
n = 4
a = [2, 2, 2, 2, 2, 2, 2]; k = 3; q = 222
q = q * 10 + a[k]
a = [2, 2, 2, 2, 2, 2, 2]; k = 3; q = 2222
x = 'we do what we must because we '; z = 'we do what we must because we can '
x = z
x = 'we do what we must because we can '; z = 'we do what we must because we can '
i = 7; s = [3, 4, 6, 1, 0, 0, 2, 5]; t = [5, 3, 6, 0, 1, 7, 2, 4]
s[t[i]] = i
i = 7; s = [3, 4, 6, 1, 7, 0, 2, 5]; t = [5, 3, 6, 0, 1, 7, 2, 4]
l = [1, 2, 3]
y.append(l.pop())
l = [1, 2]; y = [3]
b = [6, 7]
b.append(0)
b = [6, 7, 0]
m = [1]
b = m[i2]
b = 1; m = [1]; r = False
n = 4; s = ['0', '0', '1', '1']
a = list(s[(n + 1) // 2:][::-1])
a = ['1', '1']; n = 4; s = ['0', '0', '1', '1']
s = [2, 3, 6, 7, 8]; v = [4, 1, 5]
s = s + v
s = [2, 3, 6, 7, 8, 4, 1, 5]; v = [4, 1, 5]
k = '100'
k = int(k)
k = 100
p = 909937383; s = 1000000007
p = p * p % s
p = 184986444; s = 1000000007
x = '1'
v.append(int(x))
v = [1]; x = '1'
k = 1.0000000000000005e-68
k = k / 10
k = 1.0000000000000005e-69