'Build string representation.'

def __repr__(self):

    s = ('n_events    :    %s    ' % len(self.events))
    s += ('(all    good)' if self._bad_dropped else '(good    &    bad)')
    s += (',    tmin    :    %s    (s)' % self.tmin)
    s += (',    tmax    :    %s    (s)' % self.tmax)
    s += (',    baseline    :    %s' % str(self.baseline))
    s += (',    ~%s' % (sizeof_fmt(self._size),))
    s += (',    data%s    loaded' % ('' if self.preload else '    not'))
    if (len(self.event_id) > 1):
        counts = [('%r:    %i' % (k, sum((self.events[:, 2] == v)))) for (k, v) in sorted(self.event_id.items())]
        s += (',\n    %s' % ',    '.join(counts))
    class_name = self.__class__.__name__
    class_name = ('Epochs' if (class_name == 'BaseEpochs') else class_name)
    return ('<%s        |        %s>' % (class_name, s))
