def checkHostmask(self, hostmask, useAuth=True):
        if useAuth:
            timeout = conf.supybot.databases.users.timeoutIdentification()
            removals = []
            try:
                for (when, authmask) in self.auth:
                    if timeout and when+timeout < time.time():
                        removals.append((when, authmask))
                    elif hostmask == authmask:
                        return True
            finally:
                while removals:
                    self.auth.remove(removals.pop())
        for pat in self.hostmasks:
            if ircutils.hostmaskPatternEqual(pat, hostmask):
                return pat
        return False
The targets.json file as a dictionary.
dataset/ETHPy150Open ProgVal/Limnoria/src/ircdb.py/IrcUser.checkHostmask--crossover with--dataset/ETHPy150Open google/apis-client-generator/src/googleapis/codegen/targets.py/Targets.Dict