<commit_before>
'use strict';

// Modules
var express  = require('express');
var socketio = require('socket.io');
var config   = require('otto-config');
var response = require('otto-response');

// Export App
module.exports = function (options) {

  if (!options) { options = {}; }

  // New Express App
  var app = express();

  // TODO: Add configuration options
  // Add WebSockets
  var io = socketio();
  app.socketio = io;

  // Global Settings
  config.global(app, process.env, options);

  // TODO: Add configuration option
  // Serve static files before the routes
  // app.use(express.static(__dirname + '/../public')));

  // Ensure res.locals exists
  app.use(function (req, res, next) {
    if (!req.locals) { req.locals = {}; }
    next();
  });<commit_msg>Removing header X-Powered-By from response<commit_after>
'use strict';

// Modules
var express  = require('express');
var socketio = require('socket.io');
var config   = require('otto-config');
var response = require('otto-response');

// Export App
module.exports = function (options) {

  if (!options) { options = {}; }

  // New Express App
  var app = express();

  // TODO: Add configuration options
  // Add WebSockets
  var io = socketio();
  app.socketio = io;

  // Global Settings
  config.global(app, process.env, options);

  // TODO: Add configuration option
  // Serve static files before the routes
  // app.use(express.static(__dirname + '/../public')));

  // Remove Header X-Powered-By
  app.disable('x-powered-by');

  // Ensure req.locals exists
  app.use(function (req, res, next) {
    if (!req.locals) { req.locals = {}; }
    next();
  });
{'fraction_non_alphanumeric': 0.163914373088685, 'fraction_numerical': 0.0, 'mean_word_length': 3.173469387755102, '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': '1618668', 'n_tokens_mistral': 515, 'n_tokens_neox': 499, 'n_words': 146}