def __init__(self, raw_config): # Validate configuration config = Config(raw_config) Rule.__init__(self, **config) # Caching for known emails/IPs self.email_confidences = {} self.tested_emails = set() self.ip_confidences = {} self.tested_ips = set() self.threshold = config['threshold']
def __init__(self, raw_config): config = RegexBlockingRule(raw_config) Rule.__init__(self, **config) self.blocked = config['blocked']
def __init__(self, raw_config): config = RegexBlockingRule(raw_config) Rule.__init__(self, **config) self.blocked = [] for regex in config['blocked']: self.blocked.append(re.compile(regex))
def __init__(self, raw_config): config = PendingAcctRule(raw_config) Rule.__init__(self, **config)