<commit_before>var Hapi         = require("hapi");
var SocketIO     = require("socket.io");
var options      = require("./options");
var cookieConfig = require("./../config").cookie;
var Reminder     = require('./resources/reminder');
require("./db");

var server = module.exports.hapi = new Hapi.Server(8765, options);

server.pack.require("hapi-auth-cookie", function (err) {

  server.auth.strategy("session", "cookie", {
    cookie: cookieConfig.name,
    password: <PASSWORD>,
    ttl: 2592000000,
    isSecure: false
  });

  var routes = require("./routes");

  server.start(function () {
    console.log("Server started at: " + server.info.uri);
    var webSocket = module.exports.webSocket = {
      server: SocketIO.listen(server.listener)
    };
    var sockets = require("./sockets");
    var crono   = require("./scripts/crono");
    Reminder(null, function(reply) {
      if(reply.success){
        console.log("Success while running crono reminder " + reply.success);
      }
      else{
        console.log("Error while running crono reminder " + reply.error);
      }
    });
    crono.reminder.start();
  });

});<commit_msg>removing testing code from index<commit_after>var Hapi         = require("hapi");
var SocketIO     = require("socket.io");
var options      = require("./options");
var cookieConfig = require("./../config").cookie;
var Reminder     = require('./resources/reminder');
require("./db");

var server = module.exports.hapi = new Hapi.Server(8765, options);

server.pack.require("hapi-auth-cookie", function (err) {

  server.auth.strategy("session", "cookie", {
    cookie: cookieConfig.name,
    password: <PASSWORD>,
    ttl: 2592000000,
    isSecure: false
  });

  var routes = require("./routes");

  server.start(function () {
    console.log("Server started at: " + server.info.uri);
    var webSocket = module.exports.webSocket = {
      server: SocketIO.listen(server.listener)
    };
    var sockets = require("./sockets");
    var crono   = require("./scripts/crono");
    crono.reminder.start();
  });

});
{'fraction_non_alphanumeric': 0.16885644768856448, 'fraction_numerical': 0.013625304136253041, 'mean_word_length': 3.2131147540983607, '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': '4468216', 'n_tokens_mistral': 659, 'n_tokens_neox': 638, 'n_words': 130}