<commit_before>import mongoose from 'mongoose';
import config from '../../config';

// mongoose.Promise = global.Promise;
mongoose.Promise = require('bluebird');
// Connect to database
mongoose.connect(config.database.mongo.db.uri, config.database.mongo.db.options);
// Status connection
require('./status').default(mongoose.connection, config);
<commit_msg>updated version mongoose<commit_after>import mongoose from 'mongoose';
import config from '../../config';

// mongoose.Promise = global.Promise;
mongoose.Promise = require('bluebird');
// Connect to database
// mongoose.connect(config.database.mongo.db.uri, config.database.mongo.db.options);
mongoose.connect(config.database.mongo.db.uri, { useMongoClient: true });
// Status connection
require('./status').default(mongoose.connection, config);

{'fraction_non_alphanumeric': 0.15920398009950248, 'fraction_numerical': 0.0, 'mean_word_length': 5.388888888888889, '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': '6855668', 'n_tokens_mistral': 226, 'n_tokens_neox': 241, 'n_words': 47}