<commit_before>import logging

VERSION = (1, 2, 1)

logger = logging.getLogger('django_mailer')
logger.setLevel(logging.DEBUG)


def get_version():
    bits = [str(bit) for bit in VERSION]
    version = bits[0]
    for bit in bits[1:]:
        version += (bit.isdigit() and '.' or '') + bit
    return version


def send_mail(subject, message, from_email, recipient_list,
              fail_silently=False, auth_user=None, auth_password=<PASSWORD>,
              priority=None):
    """
    Add a new message to the mail queue.
<commit_msg>change version to 1.2.2<commit_after>import logging

VERSION = (1, 2, 2)

logger = logging.getLogger('django_mailer')
logger.setLevel(logging.DEBUG)


def get_version():
    bits = [str(bit) for bit in VERSION]
    version = bits[0]
    for bit in bits[1:]:
        version += (bit.isdigit() and '.' or '') + bit
    return version


def send_mail(subject, message, from_email, recipient_list,
              fail_silently=False, auth_user=None, auth_password=<PASSWORD>,
              priority=None):
    """
    Add a new message to the mail queue.

{'fraction_non_alphanumeric': 0.12293577981651377, 'fraction_numerical': 0.011926605504587157, 'mean_word_length': 3.16412213740458, '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': '5416539', 'n_tokens_mistral': 357, 'n_tokens_neox': 349, 'n_words': 97}