start
stringlengths
5
368
code
stringlengths
5
143
end
stringlengths
5
527
k = [999, 1000, 1001, 1002, 1002]; n = [999, 0, 0, 0, 0]
n[1] = k[1]
k = [999, 1000, 1001, 1002, 1002]; n = [999, 1000, 0, 0, 0]
n = 'haveaniceday'
x = len(n)
n = 'haveaniceday'; x = 12
h = 1; k = [[], [2, 3, 4], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []]; x = 5
k[h].append(x)
h = 1; k = [[], [2, 3, 4, 5], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []]; x = 5
d = {1, 2, 3, 4, 6}; r = 8
d.add(r)
d = {1, 2, 3, 4, 6, 8}; r = 8
i = 3; p = [4, 3, 5, 1, 2]; w = [0, 0, 1, 0, 2]
w[p[i] - 1] = i
i = 3; p = [4, 3, 5, 1, 2]; w = [3, 0, 1, 0, 2]
b = 'because'; i = 21; w = 'wedowhatwemustbecausewecan'
b = w[i:]
b = 'wecan'; i = 21; w = 'wedowhatwemustbecausewecan'
a = 'daBcd'; c = 'aB'; i = 3
c = c + a[i]
a = 'daBcd'; c = 'aBc'; i = 3
c = 5; j = 8; k = ['e', 'd', 'c', 'b', 'a', 'b', 'c']; z = ['e', 'd', 'c', 'b', 'a']
k.append(z[c - abs(j - c) - 1])
c = 5; j = 8; k = ['e', 'd', 'c', 'b', 'a', 'b', 'c', 'd']; z = ['e', 'd', 'c', 'b', 'a']
g = '#'; t = ' #FfFdF8;'
t = t + g
g = '#'; t = ' #FfFdF8;#'
l = ['CANDY', '5']; z = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 20), ('CANDY', 10)])
z[l[0]] += int(l[1])
l = ['CANDY', '5']; z = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 20), ('CANDY', 15)])
i = 1; l = 0
i = l
i = 0; l = 0
h = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; i = 6; k = 3; w = 80
w = h[i + k] - h[i]
h = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; i = 6; k = 3; w = 170
a = 'aa'; i = 1; j = ['aa']
j.append(a[i:])
a = 'aa'; i = 1; j = ['aa', 'a']
s = ['a', 'b', 'c', 'd', 'd', 'e']
l.append(set(s))
l = [{'c', 'd', 'b', 'a', 'e'}]; s = ['a', 'b', 'c', 'd', 'd', 'e']
a = 1; w = [False, False, False, False, False]
w[a] = True
a = 1; w = [False, True, False, False, False]
c = ['5', '2', '2']; h = 2; j = 5; s = 1
j, h, s = [int(x) for x in c]
c = ['5', '2', '2']; h = 2; j = 5; s = 2
b = [2, 2]; o = [0, 2]
b.append(sum(o))
b = [2, 2, 2]; o = [0, 2]
a = [1, 3, 2, 6, 1, 2]; i = 0; j = 5; y = 2
y = a[i] + a[j]
a = [1, 3, 2, 6, 1, 2]; i = 0; j = 5; y = 3
d = {'c': 4, 'd': 4, 'e': 1}; o = 'e'
d[o] += 1
d = {'c': 4, 'd': 4, 'e': 2}; o = 'e'
e = 0.3415926535897933; n = 3.141592653589793; r = 5; t = 16
e = abs(n - float(t) / float(r))
e = 0.05840734641020706; n = 3.141592653589793; r = 5; t = 16
e = [1, 26]; n = 2
n = e[0]
e = [1, 26]; n = 1
p = 0
p -= 1
p = -1
c = 6; i = 2; l = [1, 1, 4, 1, 1]
c -= l[i]
c = 2; i = 2; l = [1, 1, 4, 1, 1]
e = 26; g = 2
e += 2 + g
e = 30; g = 2
t = 5
t -= 1
t = 4
k = [['+', '+', '+', '+'], ['-', '+', '+', '+']]; v = ['*', '+', '+', '+']
k.append(list(v))
k = [['+', '+', '+', '+'], ['-', '+', '+', '+'], ['*', '+', '+', '+']]; v = ['*', '+', '+', '+']
h = {(139978962902944): [4, 2]}; x = [4, 2]
h[id(h)] = [x]
h = {139978962902944: [4, 2], 139758038571840: [[4, 2]]}; x = [4, 2]
i = 4; x = 4
x = i + 1
i = 4; x = 5
a = 'abc'; j = 2; k = 3; p = 'bc'
p = a[j:k]
a = 'abc'; j = 2; k = 3; p = 'c'
g = ['1', '1st', '2', '2nd', '3', '3rd', '4', '4th', '14th', '15', '15th', '16', '16th', '17', '17th']; i = 18
g.append(str(i))
g = ['1', '1st', '2', '2nd', '3', '3rd', '4', '4th', '14th', '15', '15th', '16', '16th', '17', '17th', '18']; i = 18
i = 3; j = 1; o = [[0, inf, inf, inf, inf], [-2, -2, inf, inf, inf], [-6, -2, -6, inf, inf], [-12, -2, -2, -12, inf], [inf, inf, 6, inf, inf]]; y = -2
o[i + 1][j] = y
i = 3; j = 1; o = [[0, inf, inf, inf, inf], [-2, -2, inf, inf, inf], [-6, -2, -6, inf, inf], [-12, -2, -2, -12, inf], [inf, -2, 6, inf, inf]]; y = -2
i = 0; k = [10, 2, 2, 2, 1, 1, 1]; s = 210
s = s + k[i]
i = 0; k = [10, 2, 2, 2, 1, 1, 1]; s = 220
v = 4
z = v
v = 4; z = 4
i = 2; o = [0]
o.append(i)
i = 2; o = [0, 2]
a = 2; p = 6
a += p // 2
a = 5; p = 6
c = 25; f = 43; j = 25; r = 11
j = c + f - r
c = 25; f = 43; j = 57; r = 11
n = 5; p = 4
c = (n - 1 - p) / 2
c = 0.0; n = 5; p = 4
a = [18, 60]; n = 140
n += a[1]
a = [18, 60]; n = 200
f = 2584; o = 4181
f = o
f = 4181; o = 4181
i = 2; l = 11; u = [6, 5, 2]
l = l + (x + 1) * u[i]
i = 2; l = 95; u = [6, 5, 2]; x = 41
a = [4978, 11735, 14216, 14470, 38120, 51135, 64630, 67060, 73429, 99233]; n = 10
y = (a[n // 2] + a[n // 2 - 1]) / 2
a = [4978, 11735, 14216, 14470, 38120, 51135, 64630, 67060, 73429, 99233]; n = 10; y = 44627.5
a = 4; m = [4, 3, 5, 1, 2]; x = 2
a = m.index(x) + 1
a = 5; m = [4, 3, 5, 1, 2]; x = 2
j = 2; v = [2, 2, 1]
v[j] += 1
j = 2; v = [2, 2, 2]
l = [26, 20]
del l[-1]
l = [26]
a = ['a', 'a', 'b', 'b']; o = ["['a']", "['a', 'b']", "['a', 'b', 'b']"]
o.append(str(a))
a = ['a', 'a', 'b', 'b']; o = ["['a']", "['a', 'b']", "['a', 'b', 'b']", "['a', 'a', 'b', 'b']"]
i = 43; x = 1764
x = i * i
i = 43; x = 1849
h = '100101'; i = 6; x = [1, 0, 0, 1, 0, 1, 0]
h = h + str(x[i])
h = '1001010'; i = 6; x = [1, 0, 0, 1, 0, 1, 0]
a = 'a'; u = ['b']
u = sorted(a)
a = 'a'; u = ['a']
a = 14; m = 7; s = 1
s = abs(a - m)
a = 14; m = 7; s = 7
k = '9'; n = '5'
n, k = int(n), int(k)
k = 9; n = 5
c = ['a', 'b']
a, b = c
a = 'a'; b = 'b'; c = ['a', 'b']
d = '{'; x = ['{']
x.append(d)
d = '{'; x = ['{', '{']
j = [100, 0, -100, 0, 0]; m = 2; n = 100
j[m - 1] += n
j = [100, 100, -100, 0, 0]; m = 2; n = 100
i = 'i', 'x', '#', ' ', ' ', '%', '!'; s = ['T', 'h', 'i', 's', '$', '#', 'i', 's', '%', ' ', 'M', 'a', 't', 'r']
s += i
i = ('i', 'x', '#', ' ', ' ', '%', '!'); s = ['T', 'h', 'i', 's', '$', '#', 'i', 's', '%', ' ', 'M', 'a', 't', 'r', 'i', 'x', '#', ' ', ' ', '%', '!']
j = 1; l = [1]
l.append(j)
j = 1; l = [1, 1]
b = 8.589934592000003e-24; f = 4.2949672960000014e-23; s = 5
f -= s * b
b = 8.589934592000003e-24; f = -5.877471754111438e-39; s = 5
a = 0; e = [1, 0, 0, 1, 0, 1, 0, 1, 1, 0]; i = 6; k = 4
a = a ^ e[i - k + 1]
a = 1; e = [1, 0, 0, 1, 0, 1, 0, 1, 1, 0]; i = 6; k = 4
i = 4; p = '10'; s = '91011'
p = s[i:i * 2]
i = 4; p = '1'; s = '91011'
b = [2, 1]; e = [3]
e = b[(len(b) + 1) // 2:]
b = [2, 1]; e = [1]
l = 7; m = 3
l = min(m, l)
l = 3; m = 3
m = 987; t = 1597
m = t
m = 1597; t = 1597
h = 3; m = [0, 1, 1, 1, 999]; o = 0; p = 1
p = sum(m[o:o + h])
h = 3; m = [0, 1, 1, 1, 999]; o = 0; p = 2
d = -1; e = -1; k = 4; s = 22; t = 515
t += k * s * pow(2, d) * pow(2, e)
d = -1; e = -1; k = 4; s = 22; t = 537.0
i = 1; j = [[10.0, 30.0, 20.0, 40.0, 50.0], [11.0, 9.0, 5.0, 19.0, 29.0], [21.0, 9.0, 15.0, 19.0, 39.0], [91.0, 9.0, 75.0, 19.0, 89.0], [81.0, 99.0, 55.0, 59.0, 89.0]]; k = 5.0; z = [[0, 2, 1, 3, 4], [], [], [], []]
z[i].append(j[i].index(k))
i = 1; j = [[10.0, 30.0, 20.0, 40.0, 50.0], [11.0, 9.0, 5.0, 19.0, 29.0], [21.0, 9.0, 15.0, 19.0, 39.0], [91.0, 9.0, 75.0, 19.0, 89.0], [81.0, 99.0, 55.0, 59.0, 89.0]]; k = 5.0; z = [[0, 2, 1, 3, 4], [2], [], [], []]
b = 2; g = 3; m = 4
g = m - b
b = 2; g = 2; m = 4
h = ['i', 'f', 'a', 'i', 'l', 'u', 'h', 'k', 'q', 'q']; i = 0; l = 9; s = ['a', 'f', 'h', 'i', 'i', 'k', 'l', 'u']
s = h[i:i + l]
h = ['i', 'f', 'a', 'i', 'l', 'u', 'h', 'k', 'q', 'q']; i = 0; l = 9; s = ['i', 'f', 'a', 'i', 'l', 'u', 'h', 'k', 'q']
r = [12, 6, 4, 3]; u = 2
r.append(u)
r = [12, 6, 4, 3, 2]; u = 2
i = 0
v = i
i = 0; v = 0
k = 'A'; n = 'B'
k = n
k = 'B'; n = 'B'
m = '4'; n = '5'; x = '10'
n, m, x = [int(n), int(m), int(x)]
m = 4; n = 5; x = 10
i = 3; s = [20, 7, 8, 2, 5]; z = [2, 5, 8]
z = s[i:]
i = 3; s = [20, 7, 8, 2, 5]; z = [2, 5]
a = [10, 5]; i = 8; q = 13
q += i % a[1]
a = [10, 5]; i = 8; q = 16
g = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 1024, 1089, 1156, 1225, 1296, 1369, 1444, 1521, 1600, 1681]; x = 1764
g.append(x)
g = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 1024, 1089, 1156, 1225, 1296, 1369, 1444, 1521, 1600, 1681, 1764]; x = 1764
i = 1000000007; z = [1, 1, 2, 3, 5, 8, 13, 21, 832040, 1346269, 2178309, 3524578, 5702887, 9227465, 14930352, 24157817]
z.append((z[-1] + z[-2]) % i)
i = 1000000007; z = [1, 1, 2, 3, 5, 8, 13, 21, 832040, 1346269, 2178309, 3524578, 5702887, 9227465, 14930352, 24157817, 39088169]
h = 'middle-Outz'; i = 1; q = 111
q = ord(h[i])
h = 'middle-Outz'; i = 1; q = 105
i = 0; j = 0; v = [[1, 0, 0], [0, 0, 0], [0, 0, 0]]
v[i + 1][j] = 1
i = 0; j = 0; v = [[1, 0, 0], [1, 0, 0], [0, 0, 0]]
e = [4978, 11735, 14216, 14470, 38120, 51135, 64630, 67060, 73429, 99233]
n = e[0]
e = [4978, 11735, 14216, 14470, 38120, 51135, 64630, 67060, 73429, 99233]; n = 4978
t = {(1): 'one', (2): 'two', (3): 'three', (4): 'four'}
t[5] = 'five'
t = {1: 'one', 2: 'two', 3: 'three', 4: 'four', 5: 'five'}
i = 0; s = 'hefg'
s = [i for i in s]
i = 0; s = ['h', 'e', 'f', 'g']
a = array([1, 1, 1, 1, 1, 1]); z = 2
z = a.ndim
a = array([1, 1, 1, 1, 1, 1]); z = 1
s = ['r', 'a', 'a', 'a', 'r']; y = ['r', '2']
s.append(y[0])
s = ['r', 'a', 'a', 'a', 'r', 'r']; y = ['r', '2']
d = [1, 2, 6]; p = [1, 2, 3]
d.append(p[-1])
d = [1, 2, 6, 3]; p = [1, 2, 3]
f = [1, 4, 3, 5, 6, 2]; j = 1; t = 3
f[j], f[j + 1] = t, f[j]
f = [1, 3, 4, 5, 6, 2]; j = 1; t = 3
b = '0'; s = '10000000000000000000000000000'
s += b
b = '0'; s = '100000000000000000000000000000'
i = 1; v = [0, 1, 2]; z = 0
v[i] = z
i = 1; v = [0, 0, 2]; z = 0
a = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; i = 26; t = 4; x = 4
i = a[x + t - 1] - a[x]
a = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; i = 30; t = 4; x = 4
i = 1; q = ['Q', '1']
q[i] = int(q[i])
i = 1; q = ['Q', 1]
j = 3; t = 'bab'; y = ['e', 'f', 'b', 'a']
t += y[j]
j = 3; t = 'baba'; y = ['e', 'f', 'b', 'a']
b = [['2', '3'], ['4', '-1'], ['5', '-1'], ['6', '-1'], ['10', '11'], ['-1', '-1'], ['-1', '-1'], ['-1', '-1']]; i = 1; m = 2
m = int(b[i][1]) - 1
b = [['2', '3'], ['4', '-1'], ['5', '-1'], ['6', '-1'], ['10', '11'], ['-1', '-1'], ['-1', '-1'], ['-1', '-1']]; i = 1; m = -2
s = {1, 2}
l = min(s)
l = 1; s = {1, 2}
s = 8; w = 4
s = s + w
s = 12; w = 4
n = 1; w = 3
w = w + n
n = 1; w = 4
d = '3 1'
d += ' '
d = '3 1 '
h = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199]; j = 0; y = 30030
y *= h[j]
h = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199]; j = 0; y = 60060
i = '1'; j = '6'; x = '3'
i, j, x = [str(i), str(j), int(x)]
i = '1'; j = '6'; x = 3
c = 1; e = 1
c = c - e
c = 0; e = 1