<commit_before>'use strict';

function printAssetExceptions(state) {
  var errors = state.queries
    .reduce((result, query) => result.concat(query.errors), []);

  if (errors.length > 0) {
    var activity = 'Some errors occurred indexing assets';
    console.log('\n=== ' + activity + ' ===');

    errors.forEach((error, errorIndex) => {
      console.error(`Error ${errorIndex}/${errors.length}`);
      console.util(error, {depth: 10});
    });
  }

  return state;
}

module.exports = printAssetExceptions;<commit_msg>Fix: console.{util->dir}<commit_after>'use strict';

function printAssetExceptions(state) {
  var errors = state.queries
    .reduce((result, query) => result.concat(query.errors), []);

  if (errors.length > 0) {
    var activity = 'Some errors occurred indexing assets';
    console.log('\n=== ' + activity + ' ===');

    errors.forEach((error, errorIndex) => {
      console.error(`Error ${errorIndex}/${errors.length}`);
      console.dir(error, {depth: 10});
    });
  }

  return state;
}

module.exports = printAssetExceptions;
{'fraction_non_alphanumeric': 0.1792452830188679, 'fraction_numerical': 0.005660377358490566, 'mean_word_length': 3.8227272727272728, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '6100614', 'n_tokens_mistral': 335, 'n_tokens_neox': 322, 'n_words': 66}