<commit_before>var handshake = require('socket.io-handshake');
var expressSession = require('express-session');
var RedisStore = require('connect-redis')(expressSession);

module.exports = function (config) {
  config = config || {};
  config.secret = config.secret || 'some secret that you should probably change';
  config.key = config.key || 'sid';
  config.store = new RedisStore();
  var fn = function (bus) {
    bus.io().use(fn.middleware);
  };
  fn.config = config;
  fn.middleware = handshake(config);
  return fn;
};<commit_msg>added additional params<commit_after>var handshake = require('socket.io-handshake');
var expressSession = require('express-session');
var RedisStore = require('connect-redis')(expressSession);

module.exports = function (config) {
  config = config || {};
  config.secret = config.secret || 'some secret that you should probably change';
  config.key = config.key || 'sid';
  config.store = new RedisStore();
  config.saveUnitialized = 'boolean' === typeof config.saveUnitialized ? config.saveUnitialized : true;
  config.unset = config.unset || 'keep';
  var fn = function (bus) {
    bus.io().use(fn.middleware);
  };
  fn.config = config;
  fn.middleware = handshake(config);
  return fn;
};
{'fraction_non_alphanumeric': 0.15247364152473641, 'fraction_numerical': 0.0, 'mean_word_length': 4.634703196347032, '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': '7340769', 'n_tokens_mistral': 371, 'n_tokens_neox': 373, 'n_words': 91}