<commit_before>var cp = require("child_process");

cp.exec("node ./index.js |wc |md5", function (err, stdout, stderr) {
  var trimStdOut = stdout.trim()
    if (trimStdOut !== 'c1736c9033135fc399760d2740eb3a7f') {
      console.log('Fail: The current g20 hash doesn\'t match the correct one.')
      console.log('Debug: ' + trimStdOut)
      process.exit(1)
    } else {
      console.log('Pass')
    }
});
<commit_msg>checking in cross platform stuff<commit_after>var cp = require("child_process");

var testCommand = "node ./index.js | wc | awk '{ print $1$2$3 }' | md5sum | awk '{print $1}'";

if (process.platform === 'darwin') {
    testCommand = "node ./index.js | wc | awk '{ print $1$2$3 }' | md5";
} else if (process.platform === "win32") {
    console.log('Warning: Testing on Windows is not currently supported.');
    console.log('Warning: Test SKIPPED!');
    process.exit(1);
}

cp.exec(testCommand, function (err, stdout, stderr) {
  var trimStdOut = stdout.trim()
    if (trimStdOut !== '5d1461cf239ddb11e34c46d0498cd8b7') {
      console.log('Fail: The current g20 hash doesn\'t match the correct one.')
      console.log('Debug: ' + trimStdOut)
      process.exit(1)
    } else {
      console.log('Pass')
    }
});

{'fraction_non_alphanumeric': 0.16612641815235007, 'fraction_numerical': 0.050243111831442464, 'mean_word_length': 3.5238095238095237, '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': '1028254', 'n_tokens_mistral': 460, 'n_tokens_neox': 434, 'n_words': 104}