<commit_before>module.exports = function(config, done) {
  var path = require('path');
  var exec = require('child_process').exec;
  var chunkify = require('./chunkify');
  var async = require('async');
  var jar = __dirname + '/../vnu.jar';

  var maxChars = 5000;

  var files = config.files.join(' ');
  var chunks = [];

  async.mapSeries(chunkify(config.files, maxChars), function(chunk, cb) {
    exec('java -jar ' + jar + ' --format json ' + chunk, function(error, stdout, stderr) {<commit_msg>Lib: Set default java stack size to 512k. Fixes #22.<commit_after>module.exports = function(config, done) {
  var path = require('path');
  var exec = require('child_process').exec;
  var chunkify = require('./chunkify');
  var async = require('async');
  var jar = __dirname + '/../vnu.jar';

  var maxChars = 5000;

  var files = config.files.join(' ');
  var chunks = [];

  async.mapSeries(chunkify(config.files, maxChars), function(chunk, cb) {
    exec('java -Xss512k -jar ' + jar + ' --format json ' + chunk, function(error, stdout, stderr) {
{'fraction_non_alphanumeric': 0.17238095238095238, 'fraction_numerical': 0.015238095238095238, 'mean_word_length': 3.865740740740741, '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': '865073', 'n_tokens_mistral': 358, 'n_tokens_neox': 333, 'n_words': 90}