<commit_before>import smtplib
from email.mime.text import MIMEText


EMAIL_HOST = 'mail.deusto.es'


def send_email(body, subject, from_email, to_email):

    msg = MIMEText(body)
    msg['Subject'] = subject
    msg['From'] = from_email
    msg['To'] = to_email
    
    s = smtplib.SMTP(EMAIL_HOST)
    s.sendmail(from_email, to_email, msg.as_string())<commit_msg>Added HMTL support to the email<commit_after>import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart


EMAIL_HOST = 'mail.deusto.es'


def send_email(body_text, subject, from_email, to_email, body_html=None):

    msg = MIMEMultipart('alternative')

    msg['Subject'] = subject
    msg['From'] = from_email
    msg['To'] = to_email

    part1 = MIMEText(body_text, 'text')
    msg.attach(part1)
    
    if body_text is not None:
        part2 = MIMEText(body_html, 'html')
        msg.attach(part2)

    
    s = smtplib.SMTP(EMAIL_HOST)
    s.sendmail(from_email, to_email, msg.as_string())
{'fraction_non_alphanumeric': 0.11676646706586827, 'fraction_numerical': 0.003992015968063872, 'mean_word_length': 3.776190476190476, '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': '5517016', 'n_tokens_mistral': 375, 'n_tokens_neox': 373, 'n_words': 74}