<commit_before>
var express = require('express');
var app = express();
var mongoose = require('mongoose');
var jsonParser = require('body-parser').json();
var dateCheck = require(__dirname + "/lib/date_check");
mongoose.connect(process.env.MONGOLAB_URI || 'mongodb://localhost/db');
var port = process.env.PORT || 3000; //set to 3000 for now.
process.env.APP_SECRET = process.env.APP_SECRET || 'setupanappsecretplease';

//TODO: make signin-routes a real boy
var retaindRouter = require(__dirname + '/routes/retaind_routes');
app.use('/api', retaindRouter);

var usersRouter = require(__dirname + '/routes/users_routes');
app.use('/', express.static(__dirname + '/public'));

app.use('/api', usersRouter);

// Do once a day
setInterval(function() {
  debugger;
  // Checks due date of ambitions and sends an email if they are over due
  dateCheck();
  console.log('daily emails sent');
}, 1000 * 60 );


app.listen(port, function() {
  console.log('server up on port: ' + port);
});
<commit_msg>fixed daily email to go daily<commit_after>
var express = require('express');
var app = express();
var mongoose = require('mongoose');
var jsonParser = require('body-parser').json();
var dateCheck = require(__dirname + "/lib/date_check");
mongoose.connect(process.env.MONGOLAB_URI || 'mongodb://localhost/db');
var port = process.env.PORT || 3000; //set to 3000 for now.
process.env.APP_SECRET = process.env.APP_SECRET || 'setupanappsecretplease';

//TODO: make signin-routes a real boy
var retaindRouter = require(__dirname + '/routes/retaind_routes');
app.use('/api', retaindRouter);

var usersRouter = require(__dirname + '/routes/users_routes');
app.use('/', express.static(__dirname + '/public'));

app.use('/api', usersRouter);

// Do once a day
setInterval(function() {
  debugger;
  // Checks due date of ambitions and sends an email if they are over due
  dateCheck();
  console.log('daily emails sent');
}, 1000 * 60 * 60 * 24);


app.listen(port, function() {
  console.log('server up on port: ' + port);
});

{'fraction_non_alphanumeric': 0.16377171215880892, 'fraction_numerical': 0.01588089330024814, 'mean_word_length': 4.843478260869565, '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': '6756071', 'n_tokens_mistral': 666, 'n_tokens_neox': 639, 'n_words': 177}