<commit_before>// runs all the individual tests
var fs = require('fs');
var test = require('tape');
var getPackages = require('../lib/get-packages');


getPackages().forEach(function (pack) {
    if (pack.test.split('\n').length < 10) {
        test(pack.name, function (t) {
            t.fail('there are no tests for ' + pack.name);
            t.end();
        });
    } else {
        require(pack.folder + '/test');
    }
});<commit_msg>add doc existance test<commit_after>// runs all the individual tests
var fs = require('fs');
var test = require('tape');
var getPackages = require('../lib/get-packages');


getPackages().forEach(function (pack) {
    if (pack.test.split('\n').length < 10) {
        test(pack.name, function (t) {
            t.fail('there are no tests for ' + pack.name);
            t.end();
        });
    } else {
        require(pack.folder + '/test');
    }
    if (!pack.doc) {
        test(pack.name + ' doc integrity test', function (t) {
            t.fail('there are no docs for' + pack.name);
            t.end();
        });
    }
});
{'fraction_non_alphanumeric': 0.18080149114631874, 'fraction_numerical': 0.003727865796831314, 'mean_word_length': 2.225225225225225, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4689868', 'n_tokens_mistral': 340, 'n_tokens_neox': 334, 'n_words': 84}