<commit_before>
var mongoose = require('mongoose');
var bcrypt   = require('bcrypt-nodejs');
var Q        = require('q');
// mongoose.connect('localhost:27017'); // for local mongo hosting
mongoose.connect('mongodb://eureka:<EMAIL>:33145/eurekadb');
var db = mongoose.connection;
db.on('error', console.error.bind(console, 'connection error:'));
db.once('open', function(callback) {
	console.log('connection made');
});<commit_msg>Added example command to test on a local mongodb server<commit_after>
var mongoose = require('mongoose');
var bcrypt   = require('bcrypt-nodejs');
var Q        = require('q');

// Connect to the online mongolab server:
// mongoose.connect('mongodb://eureka:<EMAIL>:33145/eurekadb');

// Connect locally:
mongoose.connect('localhost:27018');
// Terminal command:
// mongod --port 27018 --dbpath server/db/db --wiredTigerJournalCompressor snappy --wiredTigerCollectionBlockCompressor snappy --cpu

var db = mongoose.connection;
db.on('error', console.error.bind(console, 'connection error:'));
db.once('open', function(callback) {
	console.log('connection made');
});
{'fraction_non_alphanumeric': 0.1687956204379562, 'fraction_numerical': 0.02281021897810219, 'mean_word_length': 5.452941176470588, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4401411', 'n_tokens_mistral': 364, 'n_tokens_neox': 351, 'n_words': 79}