start
stringlengths
5
368
code
stringlengths
5
143
end
stringlengths
5
527
q = {(1): 2}; x = 2
q[x] = 1
q = {1: 2, 2: 1}; x = 2
f = {(1): 2}; x = 2
f[x] = f.get(x, 0) + 1
f = {1: 2, 2: 1}; x = 2
q = 1; y = 1
q = q ^ y
q = 0; y = 1
d = 1.1920928955078125e-06; q = 2.384185791015625e-06
q = d % 2
d = 1.1920928955078125e-06; q = 1.1920928955078125e-06
i = 'Y'; z = {'X': 1, '_': 1}
z[i] = 1
i = 'Y'; z = {'X': 1, '_': 1, 'Y': 1}
r = ['discard', '8']; s = {2, 3, 4, 5, 6, 7, 8}
s.discard(int(r[1]))
r = ['discard', '8']; s = {2, 3, 4, 5, 6, 7}
k = 2147483647
b = bin(k)[2:].zfill(32)
b = '01111111111111111111111111111111'; k = 2147483647
c = 2; p = [3, 2, 3]
p.append(c)
c = 2; p = [3, 2, 3, 2]
n = 1.2000000000000002e-07
n = n / 10
n = 1.2000000000000002e-08
a = [0, 0, 0, 0]; i = 3; p = 1
a[i] = p
a = [0, 0, 0, 1]; i = 3; p = 1
i = 12; m = 2; x = 12
m = x // i
i = 12; m = 1; x = 12
o = [7, 4, 9, 6]
a = o
a = [7, 4, 9, 6]; o = [7, 4, 9, 6]
q = [1, 3, 2]; x = 2; y = 1
g += (len(q) - 1) * y + x
g = 58; q = [1, 3, 2]; x = 2; y = 1
e = {'give': 1, 'me': 1, 'one': 1}; w = 'grand'
e[w.lower()] = 1
e = {'give': 1, 'me': 1, 'one': 1, 'grand': 1}; w = 'grand'
r = {1}; s = '5'
r = {int(s)}
r = {5}; s = '5'
d = [1, 1, 2, 6, 24, 120, 720, 479001600, 227020758, 178290591, 674358851, 789741546, 425606191, 660911389]; i = 19; j = 1000000007
d.append(d[-1] * i % j)
d = [1, 1, 2, 6, 24, 120, 720, 479001600, 227020758, 178290591, 674358851, 789741546, 425606191, 660911389, 557316307]; i = 19; j = 1000000007
a = ['.....', '.x.x.', '.....', '.....']; f = 4; i = 0; y = 0
o = a[i][y:f + 1]
a = ['.....', '.x.x.', '.....', '.....']; f = 4; i = 0; o = '.....'; y = 0
d = 3; p = 14
p = p - d
d = 3; p = 11
m = 1; n = '1111111111111111111111'
n = str(n) + str(m)
m = 1; n = '11111111111111111111111'
s = 43105770; t = {(6804): 1, (244): 1, (6562): 1, (183708): 1, (3486961548): 1, ( 3486786588): 1, (61236): 1}
t[s] = 1
s = 43105770; t = {6804: 1, 244: 1, 6562: 1, 183708: 1, 3486961548: 1, 3486786588: 1, 61236: 1, 43105770: 1}
l = 'a'; s = {'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0, 'f': 0, 'g': 0, 'h': 0}
s[l] += 1
l = 'a'; s = {'a': 1, 'b': 0, 'c': 0, 'd': 0, 'e': 0, 'f': 0, 'g': 0, 'h': 0}
a = [1, 2]; q = 1
q = int(len(a) / 2)
a = [1, 2]; q = 1
i = 10; o = ['I', 'love', 'to', 'dance.', 'I', 'like', 'to', 'dance', 'I.', 'like', 'to', 'play', 'chess.']; t = 'like to play'
t = ' '.join(o[i:i + 3])
i = 10; o = ['I', 'love', 'to', 'dance.', 'I', 'like', 'to', 'dance', 'I.', 'like', 'to', 'play', 'chess.']; t = 'to play chess.'
b = 468.3361845326169; i = 1; w = [(167, 84), (164, 275), (433, 298)]
b += ((w[i][0] - w[i - 1][0]) ** 2 + (w[i][1] - w[i - 1][1]) ** 2) ** 0.5
b = 659.3597432891222; i = 1; w = [(167, 84), (164, 275), (433, 298)]
l = [[1, 1, 0, 0], [0, 1, 1, 0], [0, 0, 1, 0], [1, 0, 0, 0]]
e = len(l)
e = 4; l = [[1, 1, 0, 0], [0, 1, 1, 0], [0, 0, 1, 0], [1, 0, 0, 0]]
a = '1'; e = 0; i = 2; q = [['3', '4', '8', '12'], ['2', '6', '7', '12'], ['5', '10', '11', '16'], ['9', '13', '14', '15']]
q[i][e] = a
a = '1'; e = 0; i = 2; q = [['3', '4', '8', '12'], ['2', '6', '7', '12'], ['1', '10', '11', '16'], ['9', '13', '14', '15']]
t = 4; x = 9
x = x - t
t = 4; x = 5
a = '1'; e = {'1': 1, '2': 1}
e[a] = 1
a = '1'; e = {'1': 1, '2': 1}
i = 4; k = [1, 1, 1, 0, '0', '1', '1', '0', '1', '1']
k[i] = int(k[i])
i = 4; k = [1, 1, 1, 0, 0, '1', '1', '0', '1', '1']
i = 1; n = 7; s = '9899100'
n = int(s[:i])
i = 1; n = 9; s = '9899100'
i = 25; x = 1000000007; y = [1, 1, 2, 6, 24, 120, 720, 660911389, 557316307, 146326063, 72847302, 602640637, 860734560, 657629300]
y.append(y[-1] * i % x)
i = 25; x = 1000000007; y = [1, 1, 2, 6, 24, 120, 720, 660911389, 557316307, 146326063, 72847302, 602640637, 860734560, 657629300, 440732388]
n = 999; y = 100
y = n
n = 999; y = 999
t = [5, 10, 9, 1]
t.sort()
t = [1, 5, 9, 10]
a = 3; d = 3
d = max(max(d, d + a), a)
a = 3; d = 6
r = '2'; t = '3'
t = r.split(',')
r = '2'; t = ['2']
c = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
c.append(0)
c = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
m = ['}']
m.pop()
m = []
i = 1; v = [1, 0, 0, 0, 1, 1, 1]
v[i] ^= v[i - 1]
i = 1; v = [1, 1, 0, 0, 1, 1, 1]
a = 0.5250740130768734; d = 4.0; i = 3.141592653589793; n = 12.0
a = abs(n / d - i)
a = 0.14159265358979312; d = 4.0; i = 3.141592653589793; n = 12.0
i = 8; t = ['2', '2', '2']; u = ['2', '2', '2', '2', '2', '2', '2']; x = 5
t = u[x:i]
i = 8; t = ['2', '2']; u = ['2', '2', '2', '2', '2', '2', '2']; x = 5
h = ['p', 'r', 't', 'q', 's']; k = 2
h[k + 1] = h[k]
h = ['p', 'r', 't', 't', 's']; k = 2
b = 'AABBC'
b = list(b)
b = ['A', 'A', 'B', 'B', 'C']
b = [1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5]; i = 9; m = {(1): [1], (2): [2, 3], (3): [4, 5], (4): [6, 7, 8], (5): [9]}
m[b[i]].append(i + 1)
b = [1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5]; i = 9; m = {1: [1], 2: [2, 3], 3: [4, 5], 4: [6, 7, 8], 5: [9, 10]}
i = 'g'; k = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'e': 1, 'f': 1}
k[i] = 1
i = 'g'; k = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'e': 1, 'f': 1, 'g': 1}
i = 0; j = 1; k = 0; p = [[0, 5, inf, 24], [inf, 0, inf, 6], [inf, 7, 0, 4], [inf, inf, inf, 0]]; r = 0
r = p[i][k] + p[k][j]
i = 0; j = 1; k = 0; p = [[0, 5, inf, 24], [inf, 0, inf, 6], [inf, 7, 0, 4], [inf, inf, inf, 0]]; r = 5
i = '5'
i += '5'
i = '55'
h = 4; z = [1, 2, 3]
z = z + [h]
h = 4; z = [1, 2, 3, 4]
h = 7; i = 9
i += h
h = 7; i = 16
d = 4
f = d // 2
d = 4; f = 2
c = 4
x.append(c)
c = 4; x = [4]
a = ['3', '7']
a = int(a[0])
a = 3
i = 2; j = 3; p = [['1', '1', '1', '2'], ['1', '9', '1', '2'], ['1', '8', '9', 0], [0, 0, 0, 0]]; s = '1892'
p[i][j] = s[j]
i = 2; j = 3; p = [['1', '1', '1', '2'], ['1', '9', '1', '2'], ['1', '8', '9', '2'], [0, 0, 0, 0]]; s = '1892'
t = ['b', 'b']; x = 2
x = len(t)
t = ['b', 'b']; x = 2
k = '1'; n = '5'
n, k = int(n), int(k)
k = 1; n = 5
a = ['4', '2', '6', '1', '10']
e = [int(x) for x in a]
a = ['4', '2', '6', '1', '10']; e = [4, 2, 6, 1, 10]
a = ['1', '2', '3', '4', '1\n']; n = 3; p = '4'
p = a[n - 1]
a = ['1', '2', '3', '4', '1\n']; n = 3; p = '3'
r = 2; u = 16
u += r
r = 2; u = 18
i = 2; s = [0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6]; y = [[0, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]]
y[i][s[i - 1]] += 1
i = 2; s = [0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6]; y = [[0, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0], [1, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]]
h = 3
h *= 2
h = 6
e = 'aaabb'; i = 3; v = {'a': 3}
v[e[i]] = 1
e = 'aaabb'; i = 3; v = {'a': 3, 'b': 1}
j = 8; z = 2
j = z
j = 2; z = 2
f = 86; x = 76
f = x
f = 76; x = 76
a = 0; j = 1
a, j = 0, 0
a = 0; j = 0
x = 1, 2; y = 0
x = x[y + 1:]
x = (2,); y = 0
o = "['i']"
l.append(o)
l = ["['i']"]; o = "['i']"
i = 0; j = 2; s = 'abba'; u = 'a'
u = ''.join(sorted(s[i:j]))
i = 0; j = 2; s = 'abba'; u = 'ab'
k = ['k', 'c']; l = 'c'
k.remove(l)
k = ['k']; l = 'c'
i = [12]; w = 0
r = i[w]
i = [12]; r = 12; w = 0
d = 2; g = 3; k = 2; n = 2
g = k + d + n
d = 2; g = 6; k = 2; n = 2
p = [['.', '.', '.', '.', '.', '.'], ['.', '.', '.', '.', '.', '.']]; y = ['.', '.', '.', '.', 'O', '.', '.']
p.append(y)
p = [['.', '.', '.', '.', '.', '.'], ['.', '.', '.', '.', '.', '.'], ['.', '.', '.', '.', 'O', '.', '.']]; y = ['.', '.', '.', '.', 'O', '.', '.']
f = 8
f = f + 1
f = 9
b = 'class heapdict(collections.MutableMapping):'; s = """code_snippet.py:9: DeprecationWarning: Using or ...' is deprecated, and in 3.8 it will stop working\n"""
s += ' %s\n' % b
b = 'class heapdict(collections.MutableMapping):'; s = "code_snippet.py:9: DeprecationWarning: Using or ...' is deprecated, and in 3.8 it will stop working\n class heapdict(collections.MutableMapping):\n"
c = [-2, 1]; i = 1; r = [1, 3, 2]
c = [(r[i + 1] - r[i]) for i in range(len(r) - 1)]
c = []; i = 1; r = []
c = 2; p = [1, 2, 3]
f = len(p) - c
c = 2; f = 1; p = [1, 2, 3]
q = 'i'
c[q] = c.get(q, 0) + 1
c = {'i': 1}; q = 'i'
i = 9; n = 4
i = n * 3
i = 12; n = 4
b = [1, 3, 4, 5, 5, 6]; j = 3
b[j] = b[j - 1]
b = [1, 3, 4, 4, 5, 6]; j = 3
i = 1; t = [2, 1, 3]
o = t[i]
i = 1; o = 1; t = [2, 1, 3]
m = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
m.append(1)
m = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
b = []; g = '1\n1\n\n\n\n'; w = {1}
g = w - set(b)
b = []; g = {1}; w = {1}
d = [5, 10]; f = ['append', '9']
d.append(int(f[1]))
d = [5, 10, 9]; f = ['append', '9']
n = 4; v = 'dhck'
n = len(v)
n = 4; v = 'dhck'
g = [3, 3, 2, 2, 5]; j = 4; x = 0
x += g[j]
g = [3, 3, 2, 2, 5]; j = 4; x = 5
b = 2
t = b
b = 2; t = 2
i = 0; j = 1; k = 2; s = [1, 1, 1, 3, 3]
a = sorted([s[i], s[j], s[k]])
a = [1, 1, 1]; i = 0; j = 1; k = 2; s = [1, 1, 1, 3, 3]
i = 1; p = ['2\n', 'Harsh 25 26.5 28\n', 'Anurag 26 28 30\n', 'Harsh\n', '\n', '\n', '\n']
f = p[i]
f = 'Harsh 25 26.5 28\n'; i = 1; p = ['2\n', 'Harsh 25 26.5 28\n', 'Anurag 26 28 30\n', 'Harsh\n', '\n', '\n', '\n']
a = [13, 26, 3, 4]; f = 1000000007; i = 1; j = 3; r = {(1): 13, (2): 29, (3): 71}
a[i * j - 1] = a[i * j - 1] * r[i] % f
a = [13, 26, 39, 4]; f = 1000000007; i = 1; j = 3; r = {1: 13, 2: 29, 3: 71}
e = 2; h = [0, 0, 2, 0]; i = 2
i -= h[e]
e = 2; h = [0, 0, 2, 0]; i = 0
z = 0
z += 1
z = 1
g = 2.6843545600000005e-20; x = 0.0
x += g
g = 2.6843545600000005e-20; x = 2.6843545600000005e-20
a = [[1, 3, 1], [2, 1, 2], [3, 3, 3]]; b = [0, 2, 1]
a.append(b)
a = [[1, 3, 1], [2, 1, 2], [3, 3, 3], [0, 2, 1]]; b = [0, 2, 1]
a = '1 0'
c.append(a.split())
a = '1 0'; c = [['1', '0']]
f = ['d', 'h', 'k', 'c']; k = 1; p = 'd'
p += f[k]
f = ['d', 'h', 'k', 'c']; k = 1; p = 'dh'
m = {'g': 2}; w = 'g'; x = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 2, 'f': 2}
x[w] = m[w]
m = {'g': 2}; w = 'g'; x = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 2, 'f': 2, 'g': 2}
p = [0, -1]
t = -p[1]
p = [0, -1]; t = 1
a = 1; i = 5; t = [7, 1, 3, 4, 1, 7]
a = t[i]
a = 7; i = 5; t = [7, 1, 3, 4, 1, 7]
k = 4; p = [9, 8, 7, 5]
s = sum(p) * k
k = 4; p = [9, 8, 7, 5]; s = 116
c = 2; h = 'haveaniceday'; n = 'hae and v'; r = 1; y = 4
n += h[c + y * r]
c = 2; h = 'haveaniceday'; n = 'hae and vi'; r = 1; y = 4
g = {(0): [0], (1): [1], (2): [2], (3): [3], (4): [4], (5): [5], (6): [6], (7): [7], (8): [8], (9): [9]}; i = 10; v = 2
g[v].append(i)
g = {0: [0], 1: [1], 2: [2, 10], 3: [3], 4: [4], 5: [5], 6: [6], 7: [7], 8: [8], 9: [9]}; i = 10; v = 2
b = [100, 99, 98, 98]
b = reversed(b)
b = <list_reverseiterator object at 0x7f1c77afe8d0>