<commit_before>var nodemailer = require("nodemailer");

// create reusable transport method (opens pool of SMTP connections)
var smtpTransport = nodemailer.createTransport({
    service: "Gmail",
    auth: {
        user: "<EMAIL>",
        pass: "<PASSWORD>"
    }
});

// setup e-mail data with unicode symbols
var mailOptions = {
    from: "Report Tool ✔ <<EMAIL>>", // sender address
    to: "<EMAIL>, <EMAIL>", // list of receivers
    //to: "", // list of receivers
    subject: "Uncaught Error on server ✔", // Subject line
    text: "Error Happened ✔", // plaintext body
    html: "<b>Error Happened ✔</b>" // html body
};

exports.sendMail = function(message, log) {
    mailOptions.text = message + "/n" + log;
    mailOptions.html = "<h2>" + message + "</h2><span>" + log + "</span>";

    smtpTransport.sendMail(mailOptions, function(error, response){
        if(error){
            console.log(error);
        }else{
            console.log("Message sent: " + response.message);
        }

        // if you don't want to use this transport object anymore, uncomment following line
        //smtpTransport.close(); // shut down the connection pool, no more messages
    });
};<commit_msg>Update mailer.js<commit_after>var nodemailer = require("nodemailer");

// create reusable transport method (opens pool of SMTP connections)
var smtpTransport = nodemailer.createTransport({
    service: "Gmail",
    auth: {
        user: "<EMAIL>",
        pass: "<PASSWORD>"
    }
});

// setup e-mail data with unicode symbols
var mailOptions = {
    from: "Report Tool ✔ <<EMAIL>>", // sender address
    to: "", // list of receivers
    //to: "", // list of receivers
    subject: "Uncaught Error on server ✔", // Subject line
    text: "Error Happened ✔", // plaintext body
    html: "<b>Error Happened ✔</b>" // html body
};

exports.sendMail = function(message, log) {
    mailOptions.text = message + "/n" + log;
    mailOptions.html = "<h2>" + message + "</h2><span>" + log + "</span>";

    smtpTransport.sendMail(mailOptions, function(error, response){
        if(error){
            console.log(error);
        }else{
            console.log("Message sent: " + response.message);
        }

        // if you don't want to use this transport object anymore, uncomment following line
        //smtpTransport.close(); // shut down the connection pool, no more messages
    });
};
{'fraction_non_alphanumeric': 0.14985349518627042, 'fraction_numerical': 0.0016743407283382169, 'mean_word_length': 2.734375, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '3547162', 'n_tokens_mistral': 712, 'n_tokens_neox': 699, 'n_words': 221}