<commit_before>var fs = require('fs');
var mkdirp = require('mkdirp');
var browserify = require('browserify');
var babelify = require('babelify');
var path = require('path');
var glob = require('glob');
var quailDevelopmentFilesPath = __dirname + '/../src/development/**/*.js';
// Gather the spec files and add them to the Mocha run.
glob(quailDevelopmentFilesPath, function (error, developmentFiles) {
  if (error) {
    process.exit(1);
  }
  mkdirp('dist', function (err) {
    if (err) {
      console.log(err);
    }
    else {
      browserify({
        entries: developmentFiles,
        paths: [
          './config/',
          './src/core/',
          './src/core/lib',
          './src/js/',
          './src/js/components/',
          './src/js/strings/',
          './src/assessments/',
          './vendor/',
        ],
        options: {
          debug: false
        }
      })
        .add('./config/AllTests.js')
        .transform(babelify)
        .bundle()
        .on('error', function (err) {
          console.log('Error : ' + err.message);
        })
        .pipe(fs.createWriteStream('dist/runInBrowser.js'));
    }
  });
});<commit_msg>Adding the Quail build script.<commit_after>const babelify = require('babelify');
const browserify = require('browserify');
const fs = require('fs');
const glob = require('glob');
const mkdirp = require('mkdirp');
const path = require('path');
const quailDevelopmentFilesPath = __dirname + '/../src/development/**/*.js';

glob(quailDevelopmentFilesPath, function (error, developmentFiles) {
  if (error) {
    process.exit(1);
  }
  mkdirp('dist', function (err) {
    if (err) {
      console.log(err);
    }
    else {
      browserify({
        entries: developmentFiles,
        paths: [
          './config/',
          './src/core/',
          './src/core/lib',
          './src/js/',
          './src/js/components/',
          './src/js/strings/',
          './src/assessments/',
          './vendor/',
        ],
        options: {
          debug: false
        }
      })
        .add('./config/AllTests.js')
        .transform(babelify)
        .bundle()
        .on('error', function (err) {
          console.log('Error : ' + err.message);
        })
        .pipe(fs.createWriteStream('dist/runInBrowser.js'));
    }
  });
});

module.exports = function buildQuail (config) {

};
{'fraction_non_alphanumeric': 0.1801610852055956, 'fraction_numerical': 0.000847816871555744, 'mean_word_length': 2.0025445292620865, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7522541', 'n_tokens_mistral': 738, 'n_tokens_neox': 729, 'n_words': 139}