<commit_before>var mongoose = require('mongoose');
// var db1 = mongoose.createConnection("mongodb://172.23.238.253:27018/nginx");
// var db2 = mongoose.createConnection("mongodb://172.23.238.253:27018/LogAggregate");
var db1 = mongoose.createConnection("mongodb://localhost/nginx");
var db2 = mongoose.createConnection("mongodb://localhost/LogAggregate");

var userSchema = require('./log.user.model');
var serverSchema = require('./log.server.model');
var configSchema = require('./log.config.model');
var aptLogSchema = require('./logSchema');
var aptConfigSchema = require('./configSchema');
//console.log(userSchema);

module.exports = {
  userModel : db1.model('User',userSchema),
  serverModel : db1.model('Logs',serverSchema),
  configModel : db1.model('Config',configSchema),
  aptLogModel : db2.model('aptLog',aptLogSchema),
  aptConfigModel : db2.model('aptConfig', aptConfigSchema)
};<commit_msg>Changed local database to server<commit_after>var mongoose = require('mongoose');
// var db1 = mongoose.createConnection("mongodb://172.23.238.253:27018/nginx");
// var db2 = mongoose.createConnection("mongodb://172.23.238.253:27018/LogAggregate");
var db1 = mongoose.createConnection("mongodb://172.23.238.253:27018/nginx");
var db2 = mongoose.createConnection("mongodb://172.23.238.253:27018/LogAggregate");

var userSchema = require('./log.user.model');
var serverSchema = require('./log.server.model');
var configSchema = require('./log.config.model');
var aptLogSchema = require('./logSchema');
var aptConfigSchema = require('./configSchema');
//console.log(userSchema);

module.exports = {
  userModel : db1.model('User',userSchema),
  serverModel : db1.model('Logs',serverSchema),
  configModel : db1.model('Config',configSchema),
  aptLogModel : db2.model('aptLog',aptLogSchema),
  aptConfigModel : db2.model('aptConfig', aptConfigSchema)
};
{'fraction_non_alphanumeric': 0.1777059773828756, 'fraction_numerical': 0.061389337641357025, 'mean_word_length': 6.118773946360153, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '2439940', 'n_tokens_mistral': 645, 'n_tokens_neox': 592, 'n_words': 90}