<commit_before>module.exports = function() {
  'use strict';

  DependencyInjection.service('$DatabaseService', [function() {
    var mongoose = require('mongoose');

    mongoose.connect(
      'mongodb://' +
      (process.env.DATABASE_USER ? process.env.DATABASE_USER + ':' + process.env.DATABASE_PASSWORD + '@' : '') +
      process.env.DATABASE_HOST +
      '/' + process.env.DATABASE_NAME, {
        server: {
          socketOptions: {
            keepAlive: 1
          }
        }
      }
    );

    return mongoose;
  }]);

};<commit_msg>fix(common database model): add more pool connection<commit_after>module.exports = function() {
  'use strict';

  DependencyInjection.service('$DatabaseService', [function() {
    var mongoose = require('mongoose');

    mongoose.connect(
      'mongodb://' +
      (process.env.DATABASE_USER ? process.env.DATABASE_USER + ':' + process.env.DATABASE_PASSWORD + '@' : '') +
      process.env.DATABASE_HOST +
      '/' + process.env.DATABASE_NAME, {
        server: {
          socketOptions: {
            keepAlive: 1
          },

          // MongDB max connections: 20 - Mongoose monitor 1 = 19
          poolSize: 19
        }
      }
    );

    return mongoose;
  }]);

};
{'fraction_non_alphanumeric': 0.1465798045602606, 'fraction_numerical': 0.007328990228013029, 'mean_word_length': 2.251322751322751, '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': '3101605', 'n_tokens_mistral': 406, 'n_tokens_neox': 391, 'n_words': 60}