<commit_before>var mongoose = require('mongoose');

// Change for deployment
//process.env.MONGOLAB_URI || 'mongodb://127.0.0.1'
mongoose.connect('mongodb://127.0.0.1');

var db = mongoose.connection;

db.on('error', console.error.bind(console, 'eonnection error:'));
db.once('open', function(cb) {
  console.log('connected to db');
});
<commit_msg>Switched mongoose.connect back to heroku enviroment variable<commit_after>var mongoose = require('mongoose');

// Change for deployment
//process.env.MONGOLAB_URI || 'mongodb://127.0.0.1'
mongoose.connect(process.env.MONGOLAB_URI);

var db = mongoose.connection;

db.on('error', console.error.bind(console, 'eonnection error:'));
db.once('open', function(cb) {
  console.log('connected to db');
});

{'fraction_non_alphanumeric': 0.1858288770053476, 'fraction_numerical': 0.02406417112299465, 'mean_word_length': 5.51304347826087, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, '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': '7337480', 'n_tokens_mistral': 269, 'n_tokens_neox': 269, 'n_words': 48}