<commit_before>//Module dependencies

var express = require('express');
var http = require('http');
var path = require('path');
var expressLayouts = require('express-ejs-layouts');
var flash = require('connect-flash');

var app = express();
server = http.createServer(app);
var io = require('socket.io').listen(server);
exports.io = io;
// 
// From SO:
// All routes go in routes directory
// route file ex. users.js
// routes take the form of ex. routes.users.main
// can have subroutes in each file
//
var routes = new Array();
require("fs").readdirSync("routes").forEach(function(file) {
  if (file.match(/.+\.js$/g) !== null) {
    var name = file.replace('.js', '');
    routes[name] = require('./routes/' + file);<commit_msg>reference to routes directory, more<commit_after>//Module dependencies

var express = require('express');
var http = require('http');
var path = require('path');
var expressLayouts = require('express-ejs-layouts');
var flash = require('connect-flash');

var app = express();
server = http.createServer(app);
var io = require('socket.io').listen(server);
exports.io = io;
// 
// From SO:
// All routes go in routes directory
// route file ex. users.js
// routes take the form of ex. routes.users.main
// can have subroutes in each file
//
var routes = new Array();
require("fs").readdirSync("routes").forEach(function(file) {
  if (file.match(/.+\.js$/g) !== null) {
    var name = file.replace('.js', '');
    routes[name] = require('routes/' + file);
{'fraction_non_alphanumeric': 0.18421052631578946, 'fraction_numerical': 0.0, 'mean_word_length': 4.131487889273356, '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': '5634883', 'n_tokens_mistral': 450, 'n_tokens_neox': 455, 'n_words': 135}