<commit_before>// External dependencies
var assert = require('assert'),
    should = require('should'),
    fs     = require('fs'),
    zlib   = require('zlib');


// Test to see if dynamically created JS is well-formed
describe('The dynamically concatenated and minified JS...', function() {

    var handle = 'build/js/all.min.js';
    var file = zlib.gunzipSync(fs.readFileSync(handle));

    it('Should exist', function() {
        if ( !fs.existsSync(handle) ) {
            throw Error('/js/all.min.js does not exist');
        }
    });

    it('Should contain jQuery', function() {
        if (file.indexOf('jQuery JavaScript Library') < 0) {
            throw Error('/js/all.min.js does not contain jQuery');
        }
    });

    it('Should contain Bootstrap', function() {
        if (file.indexOf('Bootstrap') < 0) {
            throw Error('/js/all.min.js does not contain Bootstrap');
        }
    });

    it('Should contain custom JavaScript', function() {
        if (file.indexOf('Custom JavaScript') < 0) {
            throw Error('/js/all.min.js does not contain custom JavaScript');
        }
    });

    it('Should contain Google Analytics', function() {
        if (file.indexOf('Google Analytics') < 0) {
            throw Error('/js/all.min.js does not contain Google Analytics');
        }
    });

});<commit_msg>Async JS test<commit_after>// External dependencies
var assert = require('assert'),
    should = require('should'),
    fs     = require('fs'),
    zlib   = require('zlib');


// Test to see if dynamically created JS is well-formed
describe('The dynamically concatenated and minified JS...', function() {

    var handle = 'build/js/all.min.js';
    var file = zlib.gunzipSync(fs.readFileSync(handle));

    it('Should exist', function(done) {
        fs.stat(handle, function(err) {
            if (err) throw err;
            done();
        });
    });

    it('Should contain jQuery', function() {
        if (file.indexOf('jQuery JavaScript Library') < 0) {
            throw Error('/js/all.min.js does not contain jQuery');
        }
    });

    it('Should contain Bootstrap', function() {
        if (file.indexOf('Bootstrap') < 0) {
            throw Error('/js/all.min.js does not contain Bootstrap');
        }
    });

    it('Should contain custom JavaScript', function() {
        if (file.indexOf('Custom JavaScript') < 0) {
            throw Error('/js/all.min.js does not contain custom JavaScript');
        }
    });

    it('Should contain Google Analytics', function() {
        if (file.indexOf('Google Analytics') < 0) {
            throw Error('/js/all.min.js does not contain Google Analytics');
        }
    });

});
{'fraction_non_alphanumeric': 0.15115413253909157, 'fraction_numerical': 0.0029784065524944155, 'mean_word_length': 2.3883984867591423, 'pattern_counts': {'":': 0, '<': 11, '<?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': '6380254', 'n_tokens_mistral': 769, 'n_tokens_neox': 726, 'n_words': 210}