Exemplo n.º 1
0
 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']
Exemplo n.º 2
0
 def __init__(self, raw_config):
     config = RegexBlockingRule(raw_config)
     Rule.__init__(self, **config)
     self.blocked = config['blocked']
Exemplo n.º 3
0
 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))
Exemplo n.º 4
0
 def __init__(self, raw_config):
     config = PendingAcctRule(raw_config)
     Rule.__init__(self, **config)