<commit_before>const path = require('path');
const expandTilde = require('expand-tilde');
const exec = require('child_process').exec;
const Promise = require('bluebird');

module.exports = {
  resolvePath: p => {
    return path.resolve(expandTilde(p));
  },

  run: command => {
    return new Promise((res, rej) => {
      exec(command, {maxBuffer: 1024 * 1000}, (error, stdout) => {
        if (error) {
          return rej(error);
        }

        res(stdout);
      });
    });
  }
};<commit_msg>util: incrise maxBuffer for run<commit_after>const path = require('path');
const expandTilde = require('expand-tilde');
const exec = require('child_process').exec;
const Promise = require('bluebird');

module.exports = {
  resolvePath: p => {
    return path.resolve(expandTilde(p));
  },

  run: command => {
    return new Promise((res, rej) => {
      exec(command, {maxBuffer: 1024 * 10000}, (error, stdout) => {
        if (error) {
          return rej(error);
        }

        res(stdout);
      });
    });
  }
};
{'fraction_non_alphanumeric': 0.17039922103213243, 'fraction_numerical': 0.016553067185978577, 'mean_word_length': 2.9386973180076628, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '1139218', 'n_tokens_mistral': 341, 'n_tokens_neox': 319, 'n_words': 72}