<commit_before>const Config = function() {
  let config = {
    maxPoolSize: 20,
    port: 3000,
    dbHost: process.env.DB_HOST || "127.0.0.1",
    dbName: process.env.DB_NAME || "bitcore",
    numWorkers: require("os").cpus().length,
    chains: {}
  };

  let options;
  try {
    options = require("../config.json");
  } catch (e) {
    options = {};
  }

  Object.assign(config, options);
  if (!Object.keys(config.chains).length) {
    config.chains.BTC = {
      mainnet: {
        chainSource: "p2p",
        trustedPeers: [{ host: "127.0.0.1", port: 8333 }],
        rpc: {
          host: "127.0.0.1",
          port: 8332
        }
      }
    };
  }
  for (let [chain, chainObj] of Object.entries(config.chains)) {
    for (let network of Object.keys(chainObj)) {
      let env = process.env;
      if (env[`TRUSTED_${chain}_PEER`]) {
        let peers = config.chains[chain][network].trustedPeers || [];
        peers.push({
          host: env[`TRUSTED_${chain}_PEER`],
          port: env[`TRUSTED_${chain}_PEER_PORT`]
        });
        config.chains[chain][network].trustedPeers = peers;
      }
    }
  }
  return config;
};

module.exports = new Config();<commit_msg>Adding username and password to config.js and singlequotes<commit_after>const Config = function() {
  let config = {
    maxPoolSize: 20,
    port: 3000,
    dbHost: process.env.DB_HOST || '127.0.0.1',
    dbName: process.env.DB_NAME || 'bitcore',
    numWorkers: require('os').cpus().length,
    chains: {}
  };

  let options;
  try {
    options = require('../config.json');
  } catch (e) {
    options = {};
  }

  Object.assign(config, options);
  if (!Object.keys(config.chains).length) {
    config.chains.BTC = {
      mainnet: {
        chainSource: 'p2p',
        trustedPeers: [{ host: '127.0.0.1', port: 8333 }],
        rpc: {
          host: '127.0.0.1',
          port: 8332,
          username: 'bitcoin',
          password: '<PASSWORD>'
        }
      }
    };
  }
  for (let [chain, chainObj] of Object.entries(config.chains)) {
    for (let network of Object.keys(chainObj)) {
      let env = process.env;
      if (env[`TRUSTED_${chain}_PEER`]) {
        let peers = config.chains[chain][network].trustedPeers || [];
        peers.push({
          host: env[`TRUSTED_${chain}_PEER`],
          port: env[`TRUSTED_${chain}_PEER_PORT`]
        });
        config.chains[chain][network].trustedPeers = peers;
      }
    }
  }
  return config;
};

module.exports = new Config();
{'fraction_non_alphanumeric': 0.16867954911433172, 'fraction_numerical': 0.026570048309178744, 'mean_word_length': 2.317757009345794, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '7505648', 'n_tokens_mistral': 912, 'n_tokens_neox': 862, 'n_words': 160}