<commit_before>require('./env');

module.exports = function(config) {
  config = Object.assign({}, config, {
    BUGS_TOKEN: process.env.BUGSNAG_TOKEN,
    LOGS_TOKEN: process.env.LOGENTRIES_TOKEN
  });

  require('./bugsnag')(config.BUGS_TOKEN);
  require('./winston')(config.LOGS_TOKEN);
};
<commit_msg>Fix priority order in default config usage (env is not priority)<commit_after>require('./env');

module.exports = function(config) {
  config = Object.assign({
    BUGS_TOKEN: process.env.BUGSNAG_TOKEN,
    LOGS_TOKEN: process.env.LOGENTRIES_TOKEN
  }, config);

  require('./bugsnag')(config.BUGS_TOKEN);
  require('./winston')(config.LOGS_TOKEN);
};

{'fraction_non_alphanumeric': 0.1659056316590563, 'fraction_numerical': 0.0, 'mean_word_length': 4.9818181818181815, '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': '6028550', 'n_tokens_mistral': 229, 'n_tokens_neox': 235, 'n_words': 34}