<commit_before>var nodemailer = require('nodemailer')
  ,Email = require('email').Email
	,debug = require('debug')('sanmailer');

var pattern = new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i);

var sendMail = function (transporter) {
  return function (from, to, subject, body, options, cb) {
    var mailOp = {
      from: from,
      to: to,
      subject: subject,
      html: body
    }
    if(options.attachments) mailOp.attachments = options.attachments;
    if(options.replyTo) mailOp.replyTo = options.replyTo;
    transporter.sendMail(mailOp, function(error, info){
      debug(error);
      debug(info);
      cb(error,info);<commit_msg>allmost all alternative fields<commit_after>var nodemailer = require('nodemailer')
  ,Email = require('email').Email
	,debug = require('debug')('sanmailer');

var pattern = new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i);

var sendMail = function (transporter) {
  return function (from, to, subject, body, options, cb) {
    var mailOp = {
      from: from,
      to: to,
      subject: subject,
      html: body
    }
    if(options.attachments) mailOp.attachments = options.attachments;
    if(options.replyTo) mailOp.replyTo = options.replyTo;
    if(options.text) mailOp.text = options.text;
    if(options.cc) mailOp.cc = options.cc;
    if(options.bcc) mailOp.bcc = options.bcc;
    if(options.sender) mailOp.sender = options.sender;
    if(options.inReplyTo) mailOp.inReplyTo = options.inReplyTo;
    if(options.references) mailOp.references = options.references;
    if(options.watchHtml) mailOp.watchHtml = options.watchHtml;
    if(options.headers) mailOp.headers = options.headers;
    if(options.raw) mailOp.raw = options.raw;
    if(options.encoding) mailOp.encoding = options.encoding;
    if(options.date) mailOp.date = options.date;
    if(options.messageId) mailOp.messageId = options.messageId;
    transporter.sendMail(mailOp, function(error, info){
      debug(error);
      debug(info);
      cb(error,info);
{'fraction_non_alphanumeric': 0.29277464410421705, 'fraction_numerical': 0.07735697018533441, 'mean_word_length': 3.655, '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': '1473363', 'n_tokens_mistral': 2027, 'n_tokens_neox': 1872, 'n_words': 128}