<commit_before>/* istanbul ignore file */
/* eslint-disable no-console */


var serveStatic = require('serve-static');
var compression = require('compression');
var bodyParser = require('body-parser');
var cookieParser = require('cookie-parser');
const errorHandler = require('./expressErrorHandler');
const hostname = 'http://localhost';

const AppSession = require('./session');

function serverStart(app, settings) {

  app.use(compression());
  app.enable('etag', 'strong');
  app.use(bodyParser.json());
  app.use(bodyParser.urlencoded({ extended: false }));
  app.use(cookieParser());


  const thisSession = new AppSession(app, 'redis', settings);

  app.use('/', thisSession.protect);

  app.use(serveStatic('./dist/client', {<commit_msg>trying to fix manifest error (unprotect manifest<commit_after>/* istanbul ignore file */
/* eslint-disable no-console */


var serveStatic = require('serve-static');
var compression = require('compression');
var bodyParser = require('body-parser');
var cookieParser = require('cookie-parser');
const errorHandler = require('./expressErrorHandler');
const hostname = 'http://localhost';

const AppSession = require('./session');

function serverStart(app, settings) {

  app.use(compression());
  app.enable('etag', 'strong');
  app.use(bodyParser.json());
  app.use(bodyParser.urlencoded({ extended: false }));
  app.use(cookieParser());


  const thisSession = new AppSession(app, 'redis', settings);

  app.use('/', serveStatic('./dist/client', {
    index: false
  }));

  app.use('/', thisSession.protect);

  app.use(serveStatic('./dist/client', {
{'fraction_non_alphanumeric': 0.17772215269086358, 'fraction_numerical': 0.0, 'mean_word_length': 5.270588235294118, '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': '2435862', 'n_tokens_mistral': 471, 'n_tokens_neox': 457, 'n_words': 104}