<commit_before>'use strict';
/**
 * Module dependencies.
 */
var init = require('./config/init')(),
	config = require('./config/config'),
	mongoose = require('mongoose');
	var uriUtil = require('mongodb-uri');

/* 
 * Mongoose by default sets the auto_reconnect option to true.
 * We recommend setting socket options at both the server and replica set level.
 * We recommend a 30 second connection timeout because it allows for 
 * plenty of time in most operating environments.
 */
	var options = { server: { socketOptions: { keepAlive: 1, connectTimeoutMS: 30000 } }, 
                replset: { socketOptions: { keepAlive: 1, connectTimeoutMS : 30000 } } };  

/**
 * Main application entry file.
 * Please note that the order of loading is important.
 */

/*
 * Mongoose uses a different connection string format than MongoDB's standard.
 * Use the mongodb-uri library to help you convert from the standard format to
 * Mongoose's format.
 */
var mongodbUri = 'mongodb://dev:<EMAIL>@<EMAIL>:35270/dev';
var mongooseUri = uriUtil.formatMongoose(mongodbUri);

 mongoose.connect(mongooseUri, options);

	var db = mongoose.connection;

// Bootstrap db connection
/*var db = mongoose.connect(config.db, function(err) {<commit_msg>created separate mongodb server for master<commit_after>'use strict';
/**
 * Module dependencies.
 */
var init = require('./config/init')(),
	config = require('./config/config'),
	mongoose = require('mongoose');
	var uriUtil = require('mongodb-uri');

/* 
 * Mongoose by default sets the auto_reconnect option to true.
 * We recommend setting socket options at both the server and replica set level.
 * We recommend a 30 second connection timeout because it allows for 
 * plenty of time in most operating environments.
 */
	var options = { server: { socketOptions: { keepAlive: 1, connectTimeoutMS: 30000 } }, 
                replset: { socketOptions: { keepAlive: 1, connectTimeoutMS : 30000 } } };  

/**
 * Main application entry file.
 * Please note that the order of loading is important.
 */

/*
 * Mongoose uses a different connection string format than MongoDB's standard.
 * Use the mongodb-uri library to help you convert from the standard format to
 * Mongoose's format.
 */
var mongodbUri = 'mongodb://master:master@ds<EMAIL>.<EMAIL>:35270/cen3031';
var mongooseUri = uriUtil.formatMongoose(mongodbUri);

 mongoose.connect(mongooseUri, options);

	var db = mongoose.connection;

// Bootstrap db connection
/*var db = mongoose.connect(config.db, function(err) {
{'fraction_non_alphanumeric': 0.11306432281262485, 'fraction_numerical': 0.016779864163004393, 'mean_word_length': 4.038229376257545, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6660203', 'n_tokens_mistral': 751, 'n_tokens_neox': 704, 'n_words': 253}