<commit_before>/**
 * Created by Mihail on 9/14/2016.
 */
const mongoose = require('mongoose');
let gracefulShutdown;
const dbURI = 'mongodb://127.0.0.1/bingo-bigul';
const db = mongoose.connection;

mongoose.connect(dbURI);

db.on('connected', function () {
  console.log('Mongoose connected to ' + dbURI);
});
db.on('error', function (err) {<commit_msg>Updated mongoose connect to use new url parser.<commit_after>/**
 * Created by Mihail on 9/14/2016.
 */
const mongoose = require('mongoose');
let gracefulShutdown;
const dbURI = 'mongodb://127.0.0.1/bingo-bigul';
const db = mongoose.connection;

mongoose.connect(dbURI,  { useNewUrlParser: true });

db.on('connected', function () {
  console.log('Mongoose connected to ' + dbURI);
});
db.on('error', function (err) {
{'fraction_non_alphanumeric': 0.172279792746114, 'fraction_numerical': 0.03367875647668394, 'mean_word_length': 4.768656716417911, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4588157', 'n_tokens_mistral': 284, 'n_tokens_neox': 274, 'n_words': 63}