<commit_before>from celery import shared_task
from django.template import loader
from django.conf import settings
from django.core.mail import send_mail

EMAIL_TEMPLATE_NAME = 'user_profile/playlist_notification.txt'
EMAIL_SUBJECT_TEMPLATE_NAME = 'user_profile/playlist_notification_subject.txt'


@shared_task
def send_email_notification_task(user, playlist):
    context = {
        'user': user,
        'playlist': playlist,
    }
    body = loader.render_to_string(EMAIL_TEMPLATE_NAME,
                                   context).strip()
    subject = loader.render_to_string(EMAIL_SUBJECT_TEMPLATE_NAME,<commit_msg>Fix issue notification<commit_after>from celery import shared_task
from django.template import loader
from django.conf import settings
from django.core.mail import send_mail

EMAIL_TEMPLATE_NAME = 'playlist_notification.txt'
EMAIL_SUBJECT_TEMPLATE_NAME = 'playlist_notification_subject.txt'


@shared_task
def send_email_notification_task(user, playlist):
    context = {
        'user': user,
        'playlist': playlist,
    }
    body = loader.render_to_string(EMAIL_TEMPLATE_NAME,
                                   context).strip()
    subject = loader.render_to_string(EMAIL_SUBJECT_TEMPLATE_NAME,
{'fraction_non_alphanumeric': 0.07183673469387755, 'fraction_numerical': 0.0, 'mean_word_length': 4.045267489711934, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7125749', 'n_tokens_mistral': 373, 'n_tokens_neox': 366, 'n_words': 69}