<commit_before>import celery
import os


app = celery.Celery('tasks', broker=os.environ.get('REDIS_URL'), backend=os.environ.get('REDIS_URL'))


@app.task
def add(x, y):
    return x + y<commit_msg>test send email task<commit_after>import celery
import os


app = celery.Celery('tasks', broker=os.environ.get('REDIS_URL'), backend=os.environ.get('REDIS_URL'))


@app.task
def send_not_attending_notification(name):
    subject = '{} is not attending'.format(name)
    body = '{} has RSVPd and they will not be attending'.format(name)
    email = EmailMessage(subject, body, FROM_EMAIL, ('<EMAIL>',))
    email.send()
{'fraction_non_alphanumeric': 0.1525974025974026, 'fraction_numerical': 0.0, 'mean_word_length': 5.295918367346939, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '5471505', 'n_tokens_mistral': 217, 'n_tokens_neox': 212, 'n_words': 47}