<commit_before>'use strict';

/** @module database */

var mongoose = require('bluebird').promisifyAll(require('mongoose')),
    mongodbUri = require('mongodb-uri'),
    requireDirectory = require('require-directory'),
    Promise = require('bluebird'),
    mongoose = require('mongoose'),
    async = require('async'),
    models = [],
    uri;
    
exports.models = requireDirectory(module, './models');

uri = mongodbUri.formatMongoose({
  hosts: JSON.parse(process.env.MONGO_HOSTS),
  database: process.env.MONGO_DATABASE,
});

mongoose.connect(uri);

mongoose.connection.on('error', console.error.bind(console));
mongoose.connection.once('open', function () {
  console.log('mongodb connection established.');<commit_msg>Remove unused require<commit_after>'use strict';

/** @module database */

var mongoose = require('bluebird').promisifyAll(require('mongoose')),
    mongodbUri = require('mongodb-uri'),
    requireDirectory = require('require-directory'),
    models = [],
    uri;
    
exports.models = requireDirectory(module, './models');

uri = mongodbUri.formatMongoose({
  hosts: JSON.parse(process.env.MONGO_HOSTS),
  database: process.env.MONGO_DATABASE,
});

mongoose.connect(uri);

mongoose.connection.on('error', console.error.bind(console));
mongoose.connection.once('open', function () {
  console.log('mongodb connection established.');
{'fraction_non_alphanumeric': 0.16629874908020603, 'fraction_numerical': 0.0, 'mean_word_length': 5.296296296296297, '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': '63315', 'n_tokens_mistral': 418, 'n_tokens_neox': 419, 'n_words': 67}