<commit_before>(function(){
  'use strict';
  var tree = require('./walker');
  var dir = process.cwd();

  var output = '';
  var parseResult = function(result){
    for (var i in result) {
      if (typeof result[i] === 'string') {
        output += '[' + result[i] + '](' + i + ')\n';
      } else if (typeof result[i] === 'object'){
        output += 'folder: ' + i + '\n';
        parseResult(result[i]);
      }
    }
  };
  tree(dir, function(err, result){
    parseResult(result);
    console.log(output);
  });

})();<commit_msg>:lipstick: indentation counter<commit_after>(function(){
  'use strict';
  var tree = require('./walker');
  var dir = process.cwd();
  var indentation = 0;

  var output = '';

  var addIndentation = function(){
    return new Array((indentation*2)+1).join(' ');
  };

  var parseResult = function(result){
    indentation++;
    for (var i in result) {
      if (typeof result[i] === 'string') {
        output += addIndentation() + '[' + result[i] + '](' + i + ')\n';
      } else if (typeof result[i] === 'object'){
        output += addIndentation() + 'folder: ' + i + '\n';
        parseResult(result[i]);
        indentation--;
      }
    }
  };
  tree(dir, function(err, result){
    parseResult(result);
    console.log(output);
  });

})();
{'fraction_non_alphanumeric': 0.20636152055857254, 'fraction_numerical': 0.0023273855702094647, 'mean_word_length': 2.717579250720461, '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': '1802657', 'n_tokens_mistral': 432, 'n_tokens_neox': 423, 'n_words': 99}