<commit_before>var config = require('../config'),
    sendgrid  = require('sendgrid')(config.sendgrid.user,config.sendgrid.pass);

exports.send = function (req, res) {
    console.log('SEEEEEEEEEND');
    console.log(req.body.email)
    console.log(req.body.first_name)
    console.log(req.body.last_name)
    console.log(req.body.attending)
    console.log(req.body.plus_one)
    var emailID = Math.floor(Math.random() * 1000) + 1;
	sendgrid.send({
        to: '<EMAIL>',
        from: req.body.email,
        subject: 'Wedding RSVP #' + emailID,
        text: 'firstname: ' + req.body.first_name + ' lastname: ' + req.body.last_name + ' email: ' + req.body.email + ' attending: ' + req.body.attending + ' plusone: ' + req.body.plus_one
    }, function(err, json) {
        if (err) return res.send("{success:false}");
        // sendgrid.send({
        //     to: req.body.email,
        //     from: '<EMAIL>',
        //     subject: 'Re: your Kluft request',
        //     text: 'Hello,\nThank you for reaching out to E.S. Kluft & Company. Your query is important to us.\nWe typically answer emails within 2 business days of receiving them. Our business hours are Monday through Friday 10AM – 6PM PST.\n\nSincerely,\nThe E.S. Kluft & Company team'
        // });

        return res.send("{success:true}");
    });
}<commit_msg>email cleanup<commit_after>var config = require('../config'),
    sendgrid  = require('sendgrid')(config.sendgrid.user,config.sendgrid.pass);

exports.send = function (req, res) {
    var emailID = Math.floor(Math.random() * 1000) + 1;
	sendgrid.send({
        to: '<EMAIL>',
        from: req.body.email,
        subject: 'Wedding RSVP #' + emailID,
        text: 'firstname: ' + req.body.first_name + ' lastname: ' + req.body.last_name + ' email: ' + req.body.email + ' attending: ' + req.body.attending + ' plusone: ' + req.body.plus_one
    }, function(err, json) {
        if (err) return res.send("{success:false}");
        // sendgrid.send({
        //     to: req.body.email,
        //     from: '<EMAIL>',
        //     subject: 'Re: your Kluft request',
        //     text: 'Hello,\nThank you for reaching out to E.S. Kluft & Company. Your query is important to us.\nWe typically answer emails within 2 business days of receiving them. Our business hours are Monday through Friday 10AM – 6PM PST.\n\nSincerely,\nThe E.S. Kluft & Company team'
        // });

        return res.send("{success:true}");
    });
}
{'fraction_non_alphanumeric': 0.15819438796258642, 'fraction_numerical': 0.0073200488003253355, 'mean_word_length': 2.6070381231671553, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '6407637', 'n_tokens_mistral': 823, 'n_tokens_neox': 794, 'n_words': 193}