<commit_before>'use strict';

var mongoose = require('mongoose');

// TODO Set these environment variables
var uname = process.env.MONGO_UNAME;
var password = <PASSWORD>.env.MONGO_PWD;
var env = process.env.NODE_ENV;
var options = {
    autoReconnect: true,
    reconnectTries: 100,
    reconnectInterval: 2000
};

var auth;
var db;

db = mongoose.connect('mongodb://localhost/looklook');
console.log('Connected to local database');<commit_msg>Add option to connect to Mongo sandbox instance<commit_after>'use strict';

var mongoose = require('mongoose');
var auth = require('./auth');

// TODO Set these environment variables
var env = process.env.NODE_ENV;
var options = {
    autoReconnect: true,
    reconnectTries: 100,
    reconnectInterval: 2000
};

var db;

db = mongoose.connect('mongodb://localhost/looklook');
console.log('Connected to local database');

// let AUTH = auth.uname + ':' + auth.password;
// db = mongoose.connect('mongodb://' + AUTH + '@ds149134.mlab.com:49134/looklook', options);
// console.log('Connected to sandbox instance');
{'fraction_non_alphanumeric': 0.14204545454545456, 'fraction_numerical': 0.023674242424242424, 'mean_word_length': 4.652406417112299, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '4270483', 'n_tokens_mistral': 356, 'n_tokens_neox': 335, 'n_words': 88}