<commit_before>'use strict';

var cookieparser = require('cookie-parser')
var bodyparser   = require('body-parser')
var session      = require('express-session')


var kraken = require('kraken-js')
var app = require('express')()
var env = process.env.NODE_ENV || 'development';
var so = require('./options.' + env  + '.js');

var options = {
  onconfig: function (config, next) {
    next(null, config);
  }
}
var port = process.env.PORT || 8000

app.use(kraken(options))

require('./lib/dust-i18n.js');

app.use(cookieparser())

app.use(bodyparser.urlencoded({ extended: true }))
app.use(bodyparser.json({ limit: so.bodyparser.json.limit }))

app.use(session({ secret: 'seneca', name: 'CD.ZENPLATFORM', saveUninitialized: true, resave: true }))

app.listen(port, function (err) {
    console.log('[%s] Listening on http://localhost:%d', app.settings.env, port);
})<commit_msg>removing cookie parser, known issues with express-session<commit_after>'use strict';

var cookieparser = require('cookie-parser')
var bodyparser   = require('body-parser')
var session      = require('express-session')


var kraken = require('kraken-js')
var app = require('express')()
var env = process.env.NODE_ENV || 'development';
var so = require('./options.' + env  + '.js');

var options = {
  onconfig: function (config, next) {
    next(null, config);
  }
}
var port = process.env.PORT || 8000

app.use(kraken(options))

require('./lib/dust-i18n.js');


app.use(bodyparser.urlencoded({ extended: true }))
app.use(bodyparser.json({ limit: so.bodyparser.json.limit }))

app.use(session({ secret: 'seneca', name: 'CD.ZENPLATFORM', saveUninitialized: true, resave: true }))

app.listen(port, function (err) {
    console.log('[%s] Listening on http://localhost:%d', app.settings.env, port);
})
{'fraction_non_alphanumeric': 0.18207440811724915, 'fraction_numerical': 0.006764374295377677, 'mean_word_length': 4.800653594771242, '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': '2585004', 'n_tokens_mistral': 603, 'n_tokens_neox': 593, 'n_words': 135}