<commit_before>
/**

  Server.js

  The backbone of the server module. In development, this runs proxied through
  BrowserSync server.

**/

module.exports = function() {

  var path     = require("path"),
      server   = require("express")(),
      compiler = require("./compiler"),
      statics  = require("./statics"),
      PORT;

  // Set up sensible logging defaults, etc. These will change with production environments
  PORT = global.ports.proxy;
  server.use(require("morgan")("dev"));
  server.use(require("cookie-parser")());
  server.use(require("express-session")({ secret : "password<PASSWORD>", resave : false, saveUninitialized : true }));

  // Middleware helper
  function iterateMiddleware(arr, middleware) {
    arr.forEach(function(options) { server.use(middleware(options)); });
  }

  // Add routers<commit_msg>index: removes server/globals (adds to server.js)<commit_after>
/**

  Server.js

  The backbone of the server module. In development, this runs proxied through
  BrowserSync server.

**/

require("./globals")();

module.exports = function() {

  var path     = require("path"),
      server   = require("express")(),
      compiler = require("./compiler"),
      statics  = require("./statics"),
      PORT;

  // Set up sensible logging defaults, etc. These will change with production environments
  PORT = global.ports.proxy;
  server.use(require("morgan")("dev"));
  server.use(require("cookie-parser")());
  server.use(require("express-session")({ secret : "password<PASSWORD>", resave : false, saveUninitialized : true }));

  // Middleware helper
  function iterateMiddleware(arr, middleware) {
    arr.forEach(function(options) { server.use(middleware(options)); });
  }

  // Add routers
{'fraction_non_alphanumeric': 0.15233698788228506, 'fraction_numerical': 0.0, 'mean_word_length': 3.816666666666667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4058516', 'n_tokens_mistral': 503, 'n_tokens_neox': 492, 'n_words': 125}