start
stringlengths
5
368
code
stringlengths
5
143
end
stringlengths
5
527
d = [0, 2, 2, 3, 2, 3, 3, 0, 0]; i = 2
d[i] += 1
d = [0, 2, 3, 3, 2, 3, 3, 0, 0]; i = 2
j = -0.11475409836065574; x = [2.0, 1.0]
j = x[1] * x[1]
j = 1.0; x = [2.0, 1.0]
g = 0.00048828125; t = 0.5
g *= 1 - t
g = 0.000244140625; t = 0.5
a = [6, 6, 7]
a.append(0)
a = [6, 6, 7, 0]
l = '93'; s = {(32): 62, (42): 68, (12): 98, (95): 13, (97): 25}; t = '37'
s[int(l)] = int(t)
l = '93'; s = {32: 62, 42: 68, 12: 98, 95: 13, 97: 25, 93: 37}; t = '37'
b = [3, 3, 3]; z = [3, 4, 3]
z = [(x + y) for x, y in zip(b, z)]
b = [3, 3, 3]; z = [6, 7, 6]
z = 5
z += 1
z = 6
c = 3; x = 5
c = x | c
c = 7; x = 5
f = 2; n = 10; s = '11'
n = int(s[:f])
f = 2; n = 11; s = '11'
h = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; i = 2; j = 0; s = 3; t = 3
s += abs(t - h[i][j])
h = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; i = 2; j = 0; s = 5; t = 3
h = 6; i = -1; j = 1; k = 0; l = 1, 0, 0, 1; r = [0, 1, -1, 6]; w = 1; x = 1; y = 0; z = 0
(x, y, z, w), (h, i, j, k) = l, r
h = 0; i = 1; j = -1; k = 6; l = (1, 0, 0, 1); r = [0, 1, -1, 6]; w = 1; x = 1; y = 0; z = 0
f = 2; k = 46; r = 4
k += abs(r - f)
f = 2; k = 48; r = 4
l = [[25, 16], [49, 64, 81]]; s = [25, 49, 64, 81, 100]
l.append(s)
l = [[25, 16], [49, 64, 81], [25, 49, 64, 81, 100]]; s = [25, 49, 64, 81, 100]
p = 5; s = 1, 1, 2
p += s[2]
p = 7; s = (1, 1, 2)
a = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; i = 0; s = 33; w = 3
s += a[i][0] + a[i][w - 1]
a = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; i = 0; s = 38; w = 3
i = 0; j = 2; p = 'd'; s = 'cdcd'
p = ''.join(sorted(s[j:j + i + 1]))
i = 0; j = 2; p = 'c'; s = 'cdcd'
c = "'"; i = "('C', 'A')"
i = i.replace(c, '')
c = "'"; i = '(C, A)'
g = ( 'In the third category he included those Brothers..., breathless from his gallop and his excitement. ' ); h = 'In the third category he inc'; k = 28
h += g[k]
g = 'In the third category he included those Brothers..., breathless from his gallop and his excitement. '; h = 'In the third category he incl'; k = 28
c = [76, 76, 95, 96, 79, 74, 97, 97, 90, 90, 78, 91, 76, 90, 95, 95, 75, 100, 87, 90]; i = 9; o = 87.35; s = [-11.349999999999994, -11.349999999999994, 7.650000000000006, 9.650000000000006, 9.650000000000006, 2.6500000000000057]
s.append(c[i] - o)
c = [76, 76, 95, 96, 79, 74, 97, 97, 90, 90, 78, 91, 76, 90, 95, 95, 75, 100, 87, 90]; i = 9; o = 87.35; s = [-11.349999999999994, -11.349999999999994, 7.650000000000006, 9.650000000000006, 9.650000000000006, 2.6500000000000057, 2.6500000000000057]
e = 'HackerRank.com presents "Pythonist 2".\n'
d = e.strip()
d = 'HackerRank.com presents "Pythonist 2".'; e = 'HackerRank.com presents "Pythonist 2".\n'
q = 0.000152587890625
q /= 2
q = 7.62939453125e-05
d = [0, 1, 1, 1, 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, 0, 0, 0]; f = [1, 2, 3, 3]; i = 3
d[f[i]] += 1
d = [0, 1, 1, 2, 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, 0, 0, 0]; f = [1, 2, 3, 3]; i = 3
d = {'two': 1, 'times': 1, 'three': 1, 'is': 1, 'not': 1}; w = 'four'
d[w] = 1
d = {'two': 1, 'times': 1, 'three': 1, 'is': 1, 'not': 1, 'four': 1}; w = 'four'
f = [0, 0, 2, 4, 1, 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, 0, 0]; i = 3
f[i + 1] += f[i]
f = [0, 0, 2, 4, 5, 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, 0, 0]; i = 3
s = 'ab'; t = ['a', 'b', 'c']
s = ''.join(t)
s = 'abc'; t = ['a', 'b', 'c']
c = 1; h = [1, 0, 0]; k = 3
h[c % k] += 1
c = 1; h = [1, 1, 0]; k = 3
l = 0
l += 1
l = 1
l = 10
g += [l]
g = [10]; l = 10
i = 0; j = 4; s = [1, 4, 5, 3, 2]
z = j - s[i]
i = 0; j = 4; s = [1, 4, 5, 3, 2]; z = 3
k = 2; s = [2, 2, 2, 2, 3, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; u = 4
p += abs(k - s[u])
k = 2; p = 98; s = [2, 2, 2, 2, 3, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; u = 4
q = {(203): 1, (204): 1}; u = 205
q[u] = 1
q = {203: 1, 204: 1, 205: 1}; u = 205
e = 68; r = 52; x = 7; y = 8
e = r + x * y
e = 108; r = 52; x = 7; y = 8
f = '11111111111111111111111'
f += '1'
f = '111111111111111111111111'
k = [-44, -44, -43, -43, -42, -42, -41, -41, -40, -40, 106, 107, 107, 108, 108, 109, 110, 111, 112]
list.pop(k, 0)
k = [-44, -43, -43, -42, -42, -41, -41, -40, -40, 106, 107, 107, 108, 108, 109, 110, 111, 112]
i = 0; k = [1, 1, 1]
c = k[i]
c = 1; i = 0; k = [1, 1, 1]
i = [0, 2, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 2, 1, 0, 3, 2, 1, 1, 0, 1, 0, 1, 0, 2, 2]; x = 3
i[x] += 1
i = [0, 2, 0, 2, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 2, 1, 0, 3, 2, 1, 1, 0, 1, 0, 1, 0, 2, 2]; x = 3
b = [1, 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, 0, 0, 0, 0, 0, 0]; e = 1
b[e] += 1
b = [1, 1, 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, 0, 0, 0, 0, 0]; e = 1
a = [[0, 'ab'], [6, 'cd'], [0, 'ef'], [6, 'gh'], [4, 'ij'], [0, 'ab'], [6, 'cd']]; e = ['0', 'ef']
a += [[int(e[0]), e[1]]]
a = [[0, 'ab'], [6, 'cd'], [0, 'ef'], [6, 'gh'], [4, 'ij'], [0, 'ab'], [6, 'cd'], [0, 'ef']]; e = ['0', 'ef']
c = {1, 2, 3, 6, 9}; i = 2; j = 2
c.add(i + j)
c = {1, 2, 3, 4, 6, 9}; i = 2; j = 2
b = [['A', 'B'], ['C'], [], []]
b.append([])
b = [['A', 'B'], ['C'], [], [], []]
a = 10; c = 0; u = 5
a = c + u
a = 5; c = 0; u = 5
o = [[3, 5, 7, 11, 5, 8]]
l = o[0] if o else None
l = [3, 5, 7, 11, 5, 8]; o = [[3, 5, 7, 11, 5, 8]]
a = OrderedDict([('BANANA FRIES', '12'), ('POTATO CHIPS', '30'), ( 'APPLE JUICE', '10')]); k = '5'; r = ['CANDY', '5']
a[r[0]] = str(int(a.get(r[0], '0')) + int(k))
a = OrderedDict([('BANANA FRIES', '12'), ('POTATO CHIPS', '30'), ('APPLE JUICE', '10'), ('CANDY', '5')]); k = '5'; r = ['CANDY', '5']
i = 2; p = '110000'; v = [True, True, True]
v.append(not p[i] == p[i + 2])
i = 2; p = '110000'; v = [True, True, True, False]
d = {(1): 2, (2): 2, (3): 3, (4): 1}; w = 6; x = [2, 3, 4]
w -= d[x[0]]
d = {1: 2, 2: 2, 3: 3, 4: 1}; w = 4; x = [2, 3, 4]
f = [(5, 0), (8, 1)]; i = 5; n = 0
i, n = f.pop()
f = [(5, 0)]; i = 8; n = 1
n = 5; x = 9
r = x % n
n = 5; r = 4; x = 9
g = [[1, 3, 1], [2, 1, 2]]; s = [3, 3, 3]
g.append(s)
g = [[1, 3, 1], [2, 1, 2], [3, 3, 3]]; s = [3, 3, 3]
s = 'hackerh'
s = s[:-1]
s = 'hacker'
m = 3
n = m - 1
m = 3; n = 2
i = 7; r = [1, 2, 1, 2, 1, 2, 3, 1, 1, 1]
r[i] = r[i - 1] + 1
i = 7; r = [1, 2, 1, 2, 1, 2, 3, 4, 1, 1]
c = 18; i = 0; j = 0; w = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]
c = c + w[i][j]
c = 19; i = 0; j = 0; w = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]
a = [1, 4, 5, 3, 2]; i = 0
d = a[i]
a = [1, 4, 5, 3, 2]; d = 1; i = 0
w = ['dummy', [], [], []]
w.append([])
w = ['dummy', [], [], [], []]
i = 2; q = 'dcba'; s = 'a'
s = ''.join(sorted(q[i:]))
i = 2; q = 'dcba'; s = 'ab'
q = 20; s = ['1', '26']
q = int(s[1])
q = 26; s = ['1', '26']
z = '11101'
x = z.count('1')
x = 4; z = '11101'
j = 2; r = [0, 0, 2, 4, 5, 8]; x = 3
r[x] = r[x] - j
j = 2; r = [0, 0, 2, 2, 5, 8]; x = 3
i = 3; n = 4; p = 'abcd'; r = 5
r += abs(ord(p[i]) - ord(p[n - 1 - i]))
i = 3; n = 4; p = 'abcd'; r = 8
b = 7; e = [1, 3, 5]; i = 0
b = e[i]
b = 1; e = [1, 3, 5]; i = 0
e = 'cdcd'; i = 1; j = 'cd'; w = 2
j = e[i:i + w]
e = 'cdcd'; i = 1; j = 'dc'; w = 2
a = array([[1, 3], [2, 4]]); g = set(); u = 140010938416864, 140011398739200
g.add(u)
a = array([[1, 3], [2, 4]]); g = {(140010938416864, 140011398739200)}; u = (140010938416864, 140011398739200)
l = '111111111111111111111111111'
l += '1'
l = '1111111111111111111111111111'
g = 7; i = 3; s = '010203'
g = int(s[0:i])
g = 10; i = 3; s = '010203'
i = 4
j = i
i = 4; j = 4
i = 0; l = -1
l = i
i = 0; l = 0
a = [1, 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]; p = 0
a[p] += 1
a = [2, 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]; p = 0
t = 7
t += 1
t = 8
x = 2
x = x + 2
x = 4
b = 3.183231456205249e-12; u = [1.5, 1.75, 0.875, 0.4375, 2.546585164964199e-11, 1.2732925824820995e-11, 6.366462912410498e-12]
u.append(b % 2)
b = 3.183231456205249e-12; u = [1.5, 1.75, 0.875, 0.4375, 2.546585164964199e-11, 1.2732925824820995e-11, 6.366462912410498e-12, 3.183231456205249e-12]
x = ( "The United Nations Children's Fund (UNICEF) is a... to children and mothers in developing countries." )
x = x.replace("'", '')
x = 'The United Nations Childrens Fund (UNICEF) is a... to children and mothers in developing countries.'
a = [1, 1, 1, 2, 2]; i = 0; v = 2
l = a[i + v - 1] - a[i]
a = [1, 1, 1, 2, 2]; i = 0; l = 0; v = 2
e = [1, 2]
q.append(e)
e = [1, 2]; q = [[1, 2]]
c = 4; d = 9; j = 8
c, d = j - 1, j
c = 7; d = 8; j = 8
i = 0
i += 1
i = 1
b = 205; m = {(203): 3, (204): 3, (205): 3, (206): 3, (207): 2, (208): 2}
m[b] += 1
b = 205; m = {203: 3, 204: 3, 205: 4, 206: 3, 207: 2, 208: 2}
k = 1.2000000000000002e-08
k = k / 10
k = 1.2000000000000002e-09
i = 1; n = 5; q = '------'
q = '-' * ((n - i) * 2)
i = 1; n = 5; q = '--------'
t = 1.2000000000000004e-29
t /= 10
t = 1.2000000000000005e-30
s = 1
f = s
f = 1; s = 1
a = 2; b = 10; i = 121; s = 26584559915698317458076141205606891748
s += a ^ b << i
a = 2; b = 10; i = 121; s = 53169119831396634916152282411213783270
l = 2; q = 99
l = len(str(q + 1))
l = 3; q = 99
e = 5
e += 1
e = 6
n = [1, 2, 3, 6, 4, 8, 12, 5]
k = set(n)
k = {1, 2, 3, 4, 5, 6, 8, 12}; n = [1, 2, 3, 6, 4, 8, 12, 5]
j = 4
j = j + 1
j = 5
d = 3; u = 4, 1; v = 2
d, v = u
d = 4; u = (4, 1); v = 1
l = 3; z = 6
l = z
l = 6; z = 6
c = [1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 2]; i = 0; k = 3
c[i + k] += c[i]
c = [1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2]; i = 0; k = 3
h = [72, 8, 2, 1]
h.reverse()
h = [1, 2, 8, 72]
u = 1; y = 4; z = [4, 2, 1, 0]
y += (u + 1) * z[ycut]
d = False; u = 1; y = 12; z = [4, 2, 1, 0]
c = 'C'; j = ['A', 'B']
j.append(c)
c = 'C'; j = ['A', 'B', 'C']
i = 5; l = [5, 7, 6]; n = 0; p = [2, 3, 1]; u = [2, 1, 3, 4, 5, 7, 6, 8, 9, 10, 11, 12, 13, 14]
l[n] = u[p[n] - 1 + i]
i = 5; l = [6, 7, 6]; n = 0; p = [2, 3, 1]; u = [2, 1, 3, 4, 5, 7, 6, 8, 9, 10, 11, 12, 13, 14]
g = [1]
h, a = min(g), max(g)
a = 1; g = [1]; h = 1
j = 1; k = 1
y = k - j
j = 1; k = 1; y = 0
q = 6, 1; u = deque([(6, 2)])
q = u.popleft()
q = (6, 2); u = deque([])
f = OrderedDict([('bcdef', 1), ('abcdefg', 1), ('bcde', 1)]); i = 3; s = ['bcdef', 'abcdefg', 'bcde', 'bcdef']
f[s[i]] = f.get(s[i], 0) + 1
f = OrderedDict([('bcdef', 2), ('abcdefg', 1), ('bcde', 1)]); i = 3; s = ['bcdef', 'abcdefg', 'bcde', 'bcdef']
k = 1; n = 1
x = n - k
k = 1; n = 1; x = 0
b = '0b1111'
b = b[2:]
b = '1111'
f = [2, 5, 3, 6]; g = [1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]; i = 1; j = 4
g[j] += g[j - f[i - 1]]
f = [2, 5, 3, 6]; g = [1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0]; i = 1; j = 4
d = 2; o = [[], [(2, 1)], [(1, 1), (3, 2)], [], [], []]; u = 2; v = 3
o[v].append((u, d))
d = 2; o = [[], [(2, 1)], [(1, 1), (3, 2)], [(2, 2)], [], []]; u = 2; v = 3