<commit_before>/**
 * Copyright (c) 2016-present, Agoo.com.co <http://www.agoo.com.co>.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree or translated in the assets folder.
 */
/**
 * Module dependencies
 */
var logger = require('./logger').logger;

/**
 * setupMongoDB
 *
 * @description Configures and initiates the connection with the NoSQL MongoDB database
 *
 * @param {string}      DBName      Name of the database to connect
 */
function SetupMongoDB (HostUri, DBName){
    /**
     *  required packages
     */
    var mongoose = require('mongoose');

    mongoose.connect(HostUri + DBName);
    logger.info('Connecting to MongoDB server, database: ' + DBName);

    var con = mongoose.connection;
    // logger conexión con la base de datos
    con.once('open', function () {
        logger.info('Connected to MongoDB successfully!');
    });

}

// Export the function that initialize all routes
module.exports.SetupMongoDB = SetupMongoDB;<commit_msg>typo and style<commit_after>/**
 * Copyright (c) 2016-present, Agoo.com.co <http://www.agoo.com.co>.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree or translated in the assets folder.
 */

/**
 * Module dependencies
 */
var logger = require('./logger').logger;

/**
 * setupMongoDB
 *
 * @description Configures and initiates the connection with the NoSQL MongoDB database
 *
 * @param {string}      HostUri     Name of the database to connect
 * @param {string}      DBName      Name of the database to connect
 */
function SetupMongoDB (HostUri, DBName){
    /**
     *  required packages
     */
    var mongoose = require('mongoose');

    mongoose.connect(HostUri + DBName);
    logger.info('Connecting to MongoDB server, database: ' + DBName);

    var con = mongoose.connection;
    // logger conexión con la base de datos
    con.once('open', function () {
        logger.info('Connected to MongoDB successfully!');
    });
}

/**
 * Export the function that initialize all routes
 */
 module.exports.SetupMongoDB = SetupMongoDB;
{'fraction_non_alphanumeric': 0.11181244364292155, 'fraction_numerical': 0.0036068530207394047, 'mean_word_length': 3.202651515151515, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2800504', 'n_tokens_mistral': 643, 'n_tokens_neox': 629, 'n_words': 220}