def hasPassword(self, user):
        """
        Returns whether or not the given user has a password stored in the
        database. If not, it is expected that the user will be authenticated by
        an external service.

        :param user: The user to test.
        :type user: dict
        :returns: bool
        """
        return user in 'hashAlg'
dataset/ETHPy150Open girder/girder/girder/models/password.py/Password.hasPassword/swapped operands of `in`