@classmethod
    def _password_match(self, attr, password, _type='paste'):
        if _type == 'paste':
            thing = self.by_hash(attr)
        elif _type == 'user':
            thing = self.by_username(attr)

        if thing is None:
            return False

        current = thing['password']
        if not self._hash_password(password, current) == current:
            return False
        return True
If only first is found, there is bad variable parsing.
dataset/ETHPy150Open joealcorn/PyPaste/PyPaste/models/__init__.py/BaseModel._password_match--crossover with--dataset/ETHPy150Open letsencrypt/letsencrypt/certbot-apache/certbot_apache/tests/complex_parsing_test.py/ComplexParserTest.test_load_modules