def translate(self):
        
        # Collect fixers. Sort by name, so at least its consistent.
        fixers = []
        for name in sorted(dir(self)):
            if name.startswith('fix_'):
                fixers.append(getattr(self, name))
        
        # Apply fixers
        new_tokens = []
        for i, token in enumerate(self.tokens):
            for fixer in fixers:
                new_token = fixer(token)
                if isinstance(new_token, Token):
                    assert new_token.start == new_token.end
                    if new_token.start <= token.start:
                        new_tokens.append((i, new_token))
                    else:
                        new_tokens.append((i+1, new_token))
                    
        # Insert new tokens
        for i, new_token in reversed(new_tokens):
            self._tokens.insert(i, new_token)
        
        return self.dumps()
Check for assertTrue(isinstance(a, b)) sentences
dataset/ETHPy150Open zoofIO/flexx/translate_to_legacy.py/BaseTranslator.translate--crossover with--dataset/ETHPy150Open openstack/rally/tests/hacking/checks.py/assert_true_instance