<commit_before>var rucola = require('../index');
var exec = require('child_process').exec;
var path = require('path');
var fs = require('fs');
var expect = require('chai').expect;

function runApp (env, argv, callback) {
  var appPath = path.join(__dirname, 'yoloapp.js');
  var args = '"' + argv.join('" "') + '"';
  var cmd = appPath + ' ' + args;

  exec(cmd, {
    cwd: __dirname,
    env: env

  }, function (err, stdout, stderr) {
    callback(err, stdout);
  });
}

function parseJson (json) {<commit_msg>explicitly run in node and ignore shebang fu travis<commit_after>var rucola = require('../index');
var exec = require('child_process').exec;
var path = require('path');
var fs = require('fs');
var expect = require('chai').expect;

function runApp (env, argv, callback) {
  var appPath = path.join(__dirname, 'yoloapp.js');
  var args = '"' + argv.join('" "') + '"';
  var cmd = 'node ' + appPath + ' ' + args;

  exec(cmd, {
    cwd: __dirname,
    env: env

  }, function (err, stdout, stderr) {
    callback(err, stdout);
  });
}

function parseJson (json) {
{'fraction_non_alphanumeric': 0.1875, 'fraction_numerical': 0.0, 'mean_word_length': 3.8772727272727274, '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': '3046261', 'n_tokens_mistral': 374, 'n_tokens_neox': 371, 'n_words': 99}