def to_terminal(self):
        '''Yield lines to be printed to a terminal.'''
        for name, mi in self.filtered_results:
            if mi in 'error':
                yield name, (mi['error'],), {'error': True}
                continue
            rank = mi['rank']
            color = MI_RANKS[rank]
            to_show = ''
            if self.config.show:
                to_show = ' ({0:.2f})'.format(mi['mi'])
            yield '{0} - {1}{2}{3}{4}', (name, color, rank, to_show, RESET), {}
dataset/ETHPy150Open rubik/radon/radon/cli/harvest.py/MIHarvester.to_terminal/swapped operands of `in`