diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c174cac..93acc21 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,9 +1,8 @@ repos: - repo: https://github.com/psf/black - rev: 24.4.2 + rev: 25.11.0 hooks: - id: black - language_version: python3.11 - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: diff --git a/VERSION b/VERSION index 84b787e..20dd632 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v2.3.4-dev +v2.3.4 diff --git a/src/detector/plugins/domainator_attributor.py b/src/detector/plugins/domainator_attributor.py index 80be9db..a2fb056 100644 --- a/src/detector/plugins/domainator_attributor.py +++ b/src/detector/plugins/domainator_attributor.py @@ -122,5 +122,5 @@ def detect(self): } self.warnings.append(warning) - if len(self.message_queues[message_domain]) >= 10: + if len(self.message_queues[message_domain]) >= 5: del self.message_queues[message_domain][0] diff --git a/src/detector/plugins/domainator_detector.py b/src/detector/plugins/domainator_detector.py index 5937ccd..5422111 100644 --- a/src/detector/plugins/domainator_detector.py +++ b/src/detector/plugins/domainator_detector.py @@ -1,9 +1,6 @@ from src.detector.detector import DetectorBase import numpy as np from collections import defaultdict -import itertools -import pylcs -import Levenshtein from src.base.log_config import get_logger from src.detector.plugins.domainator_utils import ( @@ -100,6 +97,6 @@ def detect(self): } self.warnings.append(warning) - if len(self.message_queues[message_domain]) >= 10: + if len(self.message_queues[message_domain]) >= 5: del self.message_queues[message_domain][0] logger.debug(f"Domainator Message queue length: {len(self.message_queues)}")