<commit_before>#!/usr/bin/env node

// node modules
var bodyparser = require("body-parser");
var mustache = require("mustache-express");
var express = require("express");
var mongojs = require("mongojs");
var moment = require("moment");
var crypto = require("crypto");
var debug = require("debug")("app");
var path = require("path");
var unq = require("unq");
var nsa = require("nsa");
var fs = require("fs");
var passportlocal = require("passport-local");
var passport = require("passport");
var cookieParser = require('cookie-parser');
var session = require('express-session');
var	sessionstore = require('express-session-json')(session);

// config
var config = require("./config.js");

// check config for listen directive
if (!config.hasOwnProperty("listen")) {
	coneole.error("you have to configure a socket or port");
	process.exit();
}

// load mongojs 
var db = mongojs(config.db, ["entities", "relations", "users", "fields", "dataindex"]);

// local modules
var api = require("./lib/api.js")(config.api, db);

// use nsa if configured<commit_msg>formatting<commit_after>#!/usr/bin/env node

// node modules
var bodyparser = require("body-parser");
var mustache = require("mustache-express");
var express = require("express");
var mongojs = require("mongojs");
var moment = require("moment");
var crypto = require("crypto");
var debug = require("debug")("app");
var path = require("path");
var unq = require("unq");
var nsa = require("nsa");
var fs = require("fs");
var passportlocal = require("passport-local");
var passport = require("passport");
var cookieParser = require('cookie-parser');
var session = require('express-session');
var sessionstore = require('express-session-json')(session);

// config
var config = require("./config.js");

// check config for listen directive
if (!config.hasOwnProperty("listen")) {
	coneole.error("you have to configure a socket or port");
	process.exit();
}

// load mongojs 
var db = mongojs(config.db, ["entities", "relations", "users", "fields", "dataindex"]);

// local modules
var api = require("./lib/api.js")(config.api, db);

// use nsa if configured
{'fraction_non_alphanumeric': 0.18397344713134187, 'fraction_numerical': 0.0, 'mean_word_length': 5.53250773993808, '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': '7339551', 'n_tokens_mistral': 643, 'n_tokens_neox': 634, 'n_words': 183}