<commit_before>var tessel = require('..');
var tar = require('tar');

console.log('1..7');
tessel.bundleFiles('index.js', [], {
   'index.js': __dirname + '/compile-exclude/index.js',
   'static/banned.js': __dirname + '/compile-exclude/static/banned.js',
   'package.json': __dirname + '/compile-exclude/package.json',
   'node_modules/sample-lib/package.json': __dirname + '/compile-exclude/node_modules/sample-lib/package.json',
   'node_modules/sample-lib/lib.js': __dirname + '/compile-exclude/node_modules/sample-lib/lib.js',
   'node_modules/sample-lib/banned/file.js': __dirname + '/compile-exclude/node_modules/sample-lib/banned/file.js',
   'node_modules/sample-lib/static/static.js': __dirname + '/compile-exclude/node_modules/sample-lib/static/static.js'
}, function (err, bundle) {
   tar.Parse()
      .on('entry', function (data) {
         if (/\.js$/.test(data.path)) {
            if (data.path.indexOf('banned') !== -1) {
               data.on('data', function (chunk) {
                  console.log(String(chunk) == "'this file is not compiled';" ? 'ok' : ('nok - ' + data.path));
               })
            } else {
               data.on('data', function (chunk) {
                  console.log(String(chunk).substr(0, 7) == "console" ? ('nok - ' + data.path) : 'ok');
               })
            }<commit_msg>Fix yet another TAP count bug.<commit_after>var tessel = require('..');
var tar = require('tar');

console.log('1..6');
tessel.bundleFiles('index.js', [], {
   'index.js': __dirname + '/compile-exclude/index.js',
   'static/banned.js': __dirname + '/compile-exclude/static/banned.js',
   'package.json': __dirname + '/compile-exclude/package.json',
   'node_modules/sample-lib/package.json': __dirname + '/compile-exclude/node_modules/sample-lib/package.json',
   'node_modules/sample-lib/lib.js': __dirname + '/compile-exclude/node_modules/sample-lib/lib.js',
   'node_modules/sample-lib/banned/file.js': __dirname + '/compile-exclude/node_modules/sample-lib/banned/file.js',
   'node_modules/sample-lib/static/static.js': __dirname + '/compile-exclude/node_modules/sample-lib/static/static.js'
}, function (err, bundle) {
   tar.Parse()
      .on('entry', function (data) {
         if (/\.js$/.test(data.path)) {
            if (data.path.indexOf('banned') !== -1) {
               data.once('data', function (chunk) {
                  console.log(String(chunk) == "'this file is not compiled';" ? 'ok' : ('nok - ' + data.path));
               })
            } else {
               data.once('data', function (chunk) {
                  console.log(String(chunk).substr(0, 7) == "console" ? ('nok - ' + data.path) : 'ok');
               })
            }
{'fraction_non_alphanumeric': 0.19451648758799556, 'fraction_numerical': 0.003705075954057058, 'mean_word_length': 2.6935704514363885, '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': '7193919', 'n_tokens_mistral': 891, 'n_tokens_neox': 867, 'n_words': 131}