<commit_before>const
  log = require( 'debug' )( 'mongoose' ),
  mongoose = require( 'mongoose' );

module.exports = function( url ) {
  mongoose.connect( url, { useMongoClient: true } );

  mongoose.connection.on( 'connected', () => log( `Database connected in ${url}` ) );
  mongoose.connection.on( 'error', error => log( `Erro in connection: ${error}` ) );

  process.on( 'SIGINT', () => {
    mongoose.connection.close( () => {
      log( 'Database are closed' );
      process.exit( 0 );
    });
  });
}<commit_msg>[UPDATE]: Removido log do debug.<commit_after>const
  log = require( 'debug' )( 'mongoose' ),
  mongoose = require( 'mongoose' );

module.exports = function( url ) {
  mongoose.connect( url, { useMongoClient: true } );

  mongoose.connection.on( 'connected', () => console.log( `Database connected in ${url}` ) );
  mongoose.connection.on( 'error', error => console.log( `Erro in connection: ${error}` ) );

  process.on( 'SIGINT', () => {
    mongoose.connection.close( () => {
      console.log( 'Database are closed' );
      process.exit( 0 );
    });
  });
}
{'fraction_non_alphanumeric': 0.19667590027700832, 'fraction_numerical': 0.0018467220683287165, 'mean_word_length': 3.5738396624472575, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '7353501', 'n_tokens_mistral': 359, 'n_tokens_neox': 368, 'n_words': 82}