<commit_before>var express = require('express');

var app = express();

require('./config/middleware.js')(app, express);
// require('./config/routes.js')(app, express);

var port = process.env.PORT || 3333;
var server = app.listen(port, function() {
  console.log('Server listening on port: ' + port);<commit_msg>(feat) Expose route handlers for testing<commit_after>var express = require('express');
var app = express();

require('./config/middleware.js')(app, express);
require('./config/routes.js')(app, express);

// Uncomment for testing server routes
require('./config/worker.js').productRankByState('NY');
require('./config/worker.js').birthsInRange('bank', 2015);

var port = process.env.PORT || 3333;
var server = app.listen(port, function() {
  console.log('Server listening on port: ' + port);
  console.log(process.env.PORT, typeof ''+process.env.KEY);
{'fraction_non_alphanumeric': 0.1886574074074074, 'fraction_numerical': 0.013888888888888888, 'mean_word_length': 5.455223880597015, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '604639', 'n_tokens_mistral': 272, 'n_tokens_neox': 261, 'n_words': 61}