<commit_before>var requestProxy = require('express-request-proxy'),
  express = require('express'),
  port = process.env.PORT || 3000,
  app = express(),
  nodemailer = require('nodemailer'),
  smtpTransport = require('nodemailer-smtp-transport'),
  server = require('http').createServer(app),
  io = require('socket.io')(server);

app.use(express.static('./'));

app.get('*', function(request, response) {
  console.log('New request:', request.url);
  response.sendFile('index.html', { root: '.' });
});

server.listen(port, function() {
  console.log('Server started on port ' + port + '!');
});

// var nodemailer = require('nodemailer');
// var smtpTransport = require('nodemailer-smtp-transport');
// var io = require('socket.io')(server);

var options = {
  service: 'gmail',
  auth: {
    user: 'info.preparedfordisaster',
    pass: '<PASSWORD>'
  }
};
var transporter = nodemailer.createTransport(smtpTransport(options));

io.sockets.on('connection', function(socket) {
  socket.on('emailResponse', function (mailOptions) {

    transporter.sendMail(mailOptions, function(error, response){
      if(error){
        console.log(error);
      }else{
        console.log('Message sent: ' + response.message);
      }
    });
  });
});
<commit_msg>removed corpse code from server.js<commit_after>var requestProxy = require('express-request-proxy'),
  express = require('express'),
  port = process.env.PORT || 3000,
  app = express(),
  nodemailer = require('nodemailer'),
  smtpTransport = require('nodemailer-smtp-transport'),
  server = require('http').createServer(app),
  io = require('socket.io')(server);

app.use(express.static('./'));

app.get('*', function(request, response) {
  console.log('New request:', request.url);
  response.sendFile('index.html', { root: '.' });
});

server.listen(port, function() {
  console.log('Server started on port ' + port + '!');
});

var options = {
  service: 'gmail',
  auth: {
    user: 'info.preparedfordisaster',
    pass: '<PASSWORD>'
  }
};
var transporter = nodemailer.createTransport(smtpTransport(options));

io.sockets.on('connection', function(socket) {
  socket.on('emailResponse', function (mailOptions) {

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

{'fraction_non_alphanumeric': 0.18587047939444912, 'fraction_numerical': 0.00336417157275021, 'mean_word_length': 4.298440979955457, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1481399', 'n_tokens_mistral': 761, 'n_tokens_neox': 741, 'n_words': 133}