<commit_before>let db_conf = require('../../database.json');
let env = process.env.NODE_ENV === 'test' ? 'development' : 'default';
let knex_conf = {
  client: db_conf[env].driver,
  connection: {
    filename: db_conf[env].filename
  }
}

if(db_conf[env].driver === 'pg') {
  knex_conf = {
    client: db_conf[env].driver,
    connection: {
      host: db_conf[env].host,
      user: db_conf[env].user,
      password: db_conf[env].password,
      database: db_conf[env].database
    }
  }
}

module.exports = knex_conf;
<commit_msg>knexconf update<commit_after>const db_conf = require('../../database.json');
const env = process.env.NODE_ENV === 'test' ? 'development' : 'default';
const knex_conf = {
  client: db_conf[env].driver,
  connection: {
    filename: db_conf[env].filename
  }
};

if(db_conf[env].driver === 'pg') {
  knex_conf = {
    client: db_conf[env].driver,
    connection: {
      host: db_conf[env].host,
      user: db_conf[env].user,
      password: <PASSWORD>,
      database: db_conf[env].database
    }
  };
}

module.exports = knex_conf;

{'fraction_non_alphanumeric': 0.17150890346766634, 'fraction_numerical': 0.0, 'mean_word_length': 3.3950617283950617, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '7184084', 'n_tokens_mistral': 386, 'n_tokens_neox': 383, 'n_words': 65}