<commit_before>""" SQLMixin for IntelMQ

SPDX-FileCopyrightText: 2021 <NAME>
SPDX-License-Identifier: AGPL-3.0-or-later

Based on the former SQLBot base class
"""


class SQLMixin:
    """
    Inherit this bot so that it handles DB connection for you.<commit_msg>bug: sql mixin: add missing import of exception<commit_after>""" SQLMixin for IntelMQ

SPDX-FileCopyrightText: 2021 <NAME>
SPDX-License-Identifier: AGPL-3.0-or-later

Based on the former SQLBot base class
"""
from intelmq.lib import exceptions


class SQLMixin:
    """
    Inherit this bot so that it handles DB connection for you.
{'fraction_non_alphanumeric': 0.08907563025210084, 'fraction_numerical': 0.020168067226890758, 'mean_word_length': 4.274336283185841, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5597803', 'n_tokens_mistral': 204, 'n_tokens_neox': 185, 'n_words': 68}