<commit_before># coding=utf-8
from .email import EmailFromTemplate


def send_email(name, ctx_dict, send_to=None, subject=u'Subject', **kwargs):
    """
    Shortcut function for EmailFromTemplate class

    @return: None
    """
    eft = EmailFromTemplate(name=name)
    eft.subject = subject
    eft.context = ctx_dict
    eft.get_object()
    eft.render_message()
    eft.send_email(send_to=send_to, **kwargs)<commit_msg>send mail registry validation set to False<commit_after># coding=utf-8
from .email import EmailFromTemplate


def send_email(name, ctx_dict, send_to=None, subject=u'Subject', **kwargs):
    """
    Shortcut function for EmailFromTemplate class

    @return: None
    """

    eft = EmailFromTemplate(name=name, registry_validation=False)
    eft.subject = subject
    eft.context = ctx_dict
    eft.get_object()
    eft.render_message()
    eft.send_email(send_to=send_to, **kwargs)
{'fraction_non_alphanumeric': 0.11025358324145534, 'fraction_numerical': 0.002205071664829107, 'mean_word_length': 4.188571428571429, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '786157', 'n_tokens_mistral': 300, 'n_tokens_neox': 281, 'n_words': 64}