<commit_before>const mongoose = require('mongoose');
const nconf = require('./config/nconf');
const raccoon = require('raccoon');
const raccoonConnection = require('./config/raccoon.js');
// raccoon.connect(6379, nconf.get('REDIS_URL'));

// let options = {
//                 server: { socketOptions: { keepAlive: 1, connectTimeoutMS: 30000 } },
//                 replset: { socketOptions: { keepAlive: 1, connectTimeoutMS : 30000 } }
//               };

mongoose.connect(nconf.get('MONGODB_URI'));
mongoose.Promise = global.Promise;

var db = mongoose.connection;
db.on('error', console.error.bind(console, 'connection error:'));
db.once('open', function() {

  console.log('Connected to the db');
});

module.exports = db;<commit_msg>fix MONGODBURI<commit_after>const mongoose = require('mongoose');
const nconf = require('./config/nconf');
const raccoon = require('raccoon');
const raccoonConnection = require('./config/raccoon.js');


mongoose.connect(nconf.get('MONGODB_URI'));
mongoose.Promise = global.Promise;

var db = mongoose.connection;
db.on('error', console.error.bind(console, 'connection error:'));
db.once('open', function() {

  console.log('Connected to the db');
});

module.exports = db;
{'fraction_non_alphanumeric': 0.17588769611891, 'fraction_numerical': 0.013212221304706853, 'mean_word_length': 4.534246575342466, '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': '1380545', 'n_tokens_mistral': 400, 'n_tokens_neox': 394, 'n_words': 76}