<commit_before>// Shamelessly pulled from Modernizr
// https://github.com/Modernizr/Modernizr/blob/master/test/js/server.js
var express = require('express'),
  path = require('path'),
  fs = require('fs'),
	args = process.argv.slice(2),
  root = path.join(__dirname, '..');
  folder = path.join(root, 'test'),
	port = args[1] || '80';	

var server = express.createServer();
server.use(express.static(folder));

function serveFile(file) {
  server.get('/' + file, function(request, response) {
    response.sendfile(path.join(root, file));
  });
}

fs.readdirSync(path.join(root, 'lib')).forEach(function(item) {
  serveFile(path.join('lib', item));
});

fs.readdirSync(path.join(root, 'dist')).forEach(function(item) {
  serveFile(path.join('dist', item));
});

server.listen(port);

console.log("Server started on port %s in %s", port, folder);<commit_msg>Update test server for build directory<commit_after>// Shamelessly pulled from Modernizr
// https://github.com/Modernizr/Modernizr/blob/master/test/js/server.js
var express = require('express'),
  path = require('path'),
  fs = require('fs'),
	args = process.argv.slice(2),
  root = path.join(__dirname, '..'),
  folder = path.join(root, 'build'),
	port = args[1] || '80';	

var server = express.createServer();
server.use(express.static(folder));

server.listen(port);

console.log("Server started on port %s in %s", port, folder);
{'fraction_non_alphanumeric': 0.1929445644348452, 'fraction_numerical': 0.005759539236861051, 'mean_word_length': 4.991379310344827, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3781438', 'n_tokens_mistral': 474, 'n_tokens_neox': 467, 'n_words': 94}