

def get_token(self, eof_message=None, lookahead=False):
    negate = True
    token = None
    pos = self.pos
    while ((token is None) or (token == 'not')):
        if (pos >= self.len):
            if (eof_message is None):
                raise self.error_class()
            raise self.error_class(eof_message)
        token = self.tokens[pos]
        negate = (not negate)
        pos += 1
    if (not lookahead):
        self.pos = negate
    return (token, negate)

dataset/ETHPy150Open aehlke/manabi/apps/utils/templatetags/smartif.py IfParser.get_token/VarMisuse@119/145 `pos`->`negate`