<commit_before>from django.template import loader, Context
from django.core.mail import send_mail
from django.conf import settings


def send_tpl_email(template_name, recipient_list, context=None, from_email=None, **kwds):
    t = loader.get_template(template_name)
    c = Context(context or {})
    subject, txt = t.render(c).split("\n", 1)
    from_email = from_email if from_email else settings.DEFAULT_FROM_EMAIL
    send_mail(subject=subject.split(),
              message=txt,
              from_email=from_email,
              recipient_list=recipient_list,
              **kwds)<commit_msg>Fix subject in template_mail<commit_after>from django.template import loader, Context
from django.core.mail import send_mail
from django.conf import settings


def send_tpl_email(template_name, recipient_list, context=None, from_email=None, **kwds):
    t = loader.get_template(template_name)
    c = Context(context or {})
    subject, txt = t.render(c).split("\n", 1)
    from_email = from_email if from_email else settings.DEFAULT_FROM_EMAIL
    send_mail(subject=subject.strip(),
              message=txt,
              from_email=from_email,
              recipient_list=recipient_list,
              **kwds)
{'fraction_non_alphanumeric': 0.09398186314921682, 'fraction_numerical': 0.0016488046166529267, 'mean_word_length': 3.56390977443609, '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': '1532817', 'n_tokens_mistral': 358, 'n_tokens_neox': 356, 'n_words': 80}