def __init__(self, intervals, mid):
self.starts = copy.copy(intervals)  <EOL>self.ends = copy.copy(intervals)<EOL>self.starts = sorted(self.starts, key=lambda x: x.start)<EOL>self.ends = sorted(self.ends, key=lambda x: x.end)<EOL>self.mid = mid<EOL>
Constructor; see class docstring for parameter details.