<commit_before>var settings = require('../settings');
var dbI = settings.databaseInfo;
module.exports = db = require('mongoose');

var auth = dbI.username ? 
    ('' + dbI.username + ':' + dbI.password + '@') : '';
var host = dbI.host || '127.0.0.1';
var port = dbI.port || 27017;
var dbn = dbI.db;

db.connect('mongodb://' + auth + host + ':' + port + '/' + dbn);
db.connection.on('error', console.error.bind(console, 'connection error:'));<commit_msg>Redirect DB link to local database.<commit_after>var settings = require('../settings');
var dbI = settings.databaseInfo;
module.exports = db = require('mongoose');

var auth = dbI.username ? 
    ('' + dbI.username + ':' + dbI.password + '@') : '';
var host = dbI.host || '192.168.3.11';
var port = dbI.port || 27017;
var dbn = dbI.db;

db.connect('mongodb://' + auth + host + ':' + port + '/' + dbn);
db.connection.on('error', console.error.bind(console, 'connection error:'));
{'fraction_non_alphanumeric': 0.21804511278195488, 'fraction_numerical': 0.02685284640171858, 'mean_word_length': 3.983957219251337, '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': '4063630', 'n_tokens_mistral': 341, 'n_tokens_neox': 323, 'n_words': 72}