<commit_before>let tests = [
  // what result to expect, string to match against
  [ true, '/home/mike/git/work/stripes-experiments/stripes-connect' ],
  [ true, '/home/mike/git/work/stripes-loader/' ],
  [ true, '/home/mike/git/work/stripes-experiments/okapi-console/' ],
  [ true, '/home/mike/git/work/stripes-experiments/stripes-core/src/' ],
  [ false, '/home/mike/git/work/stripes-experiments/stripes-core/node_modules/camelcase' ],
];

// The regexp used in webpack.config.base.js to choose which source files get transpiled
let re = /\/stripes-/;

for (let i = 0; i < tests.length; i++) {
  var test = tests[i];
  var expected = test[0];
  var string = test[1];
  var result = !!string.match(re);
  print(i + ": '" + string + "': " +
        "expected " + expected + ", got " + result + ": " +
        (result == expected ? "OK" : "FAIL"));
}<commit_msg>Add summary lines to output<commit_after>let tests = [
  // what result to expect, string to match against
  [ true, '/home/mike/git/work/stripes-experiments/stripes-connect' ],
  [ true, '/home/mike/git/work/stripes-loader/' ],
  [ true, '/home/mike/git/work/stripes-experiments/okapi-console/' ],
  [ true, '/home/mike/git/work/stripes-experiments/stripes-core/src/' ],
  [ false, '/home/mike/git/work/stripes-experiments/stripes-core/node_modules/camelcase' ],
];

// The regexp used in webpack.config.base.js to choose which source files get transpiled
let re = /\/stripes-/;
let failed = 0;

for (let i = 0; i < tests.length; i++) {
  var test = tests[i];
  var expected = test[0];
  var string = test[1];
  var result = !!string.match(re);
  print(i + ": '" + string + "': " +
        "expected " + expected + ", got " + result + ": " +
        (result == expected ? "OK" : "FAIL"));
  if (result != expected) failed++;
}

let passed = tests.length - failed;
print("Passed " + passed + " of " + tests.length + " tests");
if (failed > 0) {
  print("FAILED " + failed + " of " + tests.length + " tests");
}
{'fraction_non_alphanumeric': 0.18975139523084728, 'fraction_numerical': 0.004058853373921867, 'mean_word_length': 3.1691331923890065, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 4, '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': '4291334', 'n_tokens_mistral': 698, 'n_tokens_neox': 693, 'n_words': 156}