<commit_before>var cov = require('mocha-lcov-reporter')
  , blanket = require('blanket')
  , glob = require('glob')
  , path = require('path')
  , tape = require('tape')
  , test

blanket = blanket({pattern: path.resolve(__dirname, '../lib/')})
blanket.setupCoverage()
test = tape.createHarness()
cov(test.createStream())

var cache = require.cache[
  path.resolve(__dirname, '../node_modules/tape/index.js')
]

cache.exports = test

test('load tests', function(t) {
  t.plan(1)

  // require all files in lib so that untested files are reflected in coverage
  glob(path.resolve(__dirname, '../lib/*.js'), function(err, files) {
    for(var i = 0, len = files.length; i < len; ++i) {
      require(files[i])
    }
  })

  glob(path.resolve(__dirname, '../lib/**/*.js'), function(err, files) {
    for(var i = 0, len = files.length; i < len; ++i) {
      require(files[i])
    }
  })

  glob(path.resolve(__dirname, '../test/**/*.test.js'), function(err, files) {
    for(var i = 0, len = files.length; i < len; ++i) {
      require(files[i])
    }

    t.ok(true, 'loaded tests')
    t.end()
  })
})<commit_msg>wait for all files to load<commit_after>var cov = require('mocha-lcov-reporter')
  , blanket = require('blanket')
  , glob = require('glob')
  , path = require('path')
  , tape = require('tape')
  , test

blanket = blanket({pattern: path.resolve(__dirname, '../lib/')})
blanket.setupCoverage()
test = tape.createHarness()
cov(test.createStream())

var cache = require.cache[
  path.resolve(__dirname, '../node_modules/tape/index.js')
]

cache.exports = test

test('load fil', function(t) {
  t.plan(3)

  // require all files in lib so that untested files are reflected in coverage
  glob(path.resolve(__dirname, '../lib/*.js'), function(err, files) {
    for(var i = 0, len = files.length; i < len; ++i) {
      require(files[i])
    }

    t.ok(true, 'loaded root files')
  })

  glob(path.resolve(__dirname, '../lib/**/*.js'), function(err, files) {
    for(var i = 0, len = files.length; i < len; ++i) {
      require(files[i])
    }

    t.ok(true, 'loaded nested files')
  })

  glob(path.resolve(__dirname, '../test/**/*.test.js'), function(err, files) {
    for(var i = 0, len = files.length; i < len; ++i) {
      require(files[i])
    }

    t.ok(true, 'loaded tests')
  })
})
{'fraction_non_alphanumeric': 0.19721375707444494, 'fraction_numerical': 0.0034828036569438396, 'mean_word_length': 3.2713754646840147, 'pattern_counts': {'":': 0, '<': 9, '<?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': '2715098', 'n_tokens_mistral': 822, 'n_tokens_neox': 801, 'n_words': 186}