<commit_before>var mongoose = require('mongoose');
/**
 * need to plug in native promises to work with promises instead of callbacks
 */
mongoose.Promise = global.Promise;
mongoose.connect('mongodb://localhost:27017/boilerplate-api', { useMongoClient: true });<commit_msg>Now connecting to the db based on config env;<commit_after>module.exports = function (app) {

  var mongoose = require('mongoose');
  /**
   * need to plug in native promises to work with promises instead of callbacks
   */
  mongoose.Promise = global.Promise;
  mongoose.connect(app.config.db, { useMongoClient: true });
  
}
{'fraction_non_alphanumeric': 0.11872909698996656, 'fraction_numerical': 0.008361204013377926, 'mean_word_length': 4.650943396226415, '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': '7157142', 'n_tokens_mistral': 178, 'n_tokens_neox': 178, 'n_words': 53}