<commit_before>var mongoose = require('mongoose');
var db = {};

var pEnv = process.env;
var devDb = 'mongodb://localhost/brainstormer';
mongoose.connect(pEnv.MONGOLAB_URI || pEnv.MONGOHQ_URL  || devDb);
var database = mongoose.connection;
database.on('error', console.error.bind(console, 'mongo connection error:'));
database.on('open', function() { console.log('mongo hooked'); });
var userModel = require('./users/user.server.model.js');
var commentModel = require('./comments/comment.server.model.js');
var ideaModel = require('./ideas/idea.server.model.js');
var roomModel = require('./rooms/room.server.model.js');
var interestModel = require('./interests/interest.server.model.js');
db.User = mongoose.model('User');
db.Comment = mongoose.model('Comment');
db.Idea = mongoose.model('Idea');
db.Room = mongoose.model('Room');
db.Interest = mongoose.model('Interest');

module.exports = db;<commit_msg>Config database to take mongo labs for deployment<commit_after>var mongoose = require('mongoose');
var db = {};

var pEnv = process.env;
var devDb = 'mongodb://localhost/brainstormer';
mongoose.connect(pEnv.MONGOLAB_URI || devDb);
var database = mongoose.connection;
database.on('error', console.error.bind(console, 'mongo connection error:'));
database.on('open', function() { console.log('mongo hooked'); });
var userModel = require('./users/user.server.model.js');
var commentModel = require('./comments/comment.server.model.js');
var ideaModel = require('./ideas/idea.server.model.js');
var roomModel = require('./rooms/room.server.model.js');
var interestModel = require('./interests/interest.server.model.js');
db.User = mongoose.model('User');
db.Comment = mongoose.model('Comment');
db.Idea = mongoose.model('Idea');
db.Room = mongoose.model('Room');
db.Interest = mongoose.model('Interest');

module.exports = db;
{'fraction_non_alphanumeric': 0.1864406779661017, 'fraction_numerical': 0.0, 'mean_word_length': 5.931818181818182, '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': '5848061', 'n_tokens_mistral': 582, 'n_tokens_neox': 582, 'n_words': 111}