<commit_before>/**
 * Server: the program's entry point
 */
var express = require("express"),
	Env = require('./core/environment'),
	Bs = require('tqtopicmap/lib/models/bootstrap'),
	//stuff
	http  = require("http"),
	path  = require("path"),
	fs = require('fs'),
	//authentication
	passport = require("passport")
	//WebSocket
//  , wss = require('./wsserver')
;
 
////////////////////////////
//Environment
// The Environment boots databases and provides logging services
////////////////////////////
var Environment  = new Env();
Environment.start(function(err, env) {
	console.log("SERVER A "+env);
	var bootstrap = new Bs(Environment.getTopicMapEnvironment()),

		//models/lib/tqtopicmap/node_modules
		bdir = path.resolve(__dirname, './bootstrap');
	console.log("SERVER B");
	//now that environment is up, run bootstrap to see
	// if there is new information to add to the index
	bootstrap.bootstrap(bdir, function(berr) {
		console.log("Environment started "+Environment.getPort());
		Environment.logDebug("Server Starting-1 "+berr);
		var UserDatabase = Environment.getUserDatabase();
		////////////////////////////
		// Authentication support
		////////////////////////////
		require("./core/config/passport")(passport, UserDatabase);<commit_msg>fixed incorrect bootstrap path<commit_after>/**
 * Server: the program's entry point
 */
var express = require("express"),
	Env = require('./core/environment'),
	Bs = require('tqtopicmap/lib/models/bootstrap'),
	//stuff
	http  = require("http"),
	path  = require("path"),
	fs = require('fs'),
	//authentication
	passport = require("passport")
	//WebSocket
//  , wss = require('./wsserver')
;
 
////////////////////////////
//Environment
// The Environment boots databases and provides logging services
////////////////////////////
var Environment  = new Env();
Environment.start(function(err, env) {
	console.log("SERVER A "+env);
	var bootstrap = new Bs(Environment.getTopicMapEnvironment()),

		//models/lib/tqtopicmap/node_modules
		bdir = "/../../../../bootstrap"; //path.resolve(__dirname, './bootstrap');
	console.log("SERVER B");
	//now that environment is up, run bootstrap to see
	// if there is new information to add to the index
	bootstrap.bootstrap(bdir, function(berr) {
		console.log("Environment started "+Environment.getPort());
		Environment.logDebug("Server Starting-1 "+berr);
		var UserDatabase = Environment.getUserDatabase();
		////////////////////////////
		// Authentication support
		////////////////////////////
		require("./core/config/passport")(passport, UserDatabase);
{'fraction_non_alphanumeric': 0.22953388170779476, 'fraction_numerical': 0.0007833920877399138, 'mean_word_length': 2.90519877675841, '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': '7499937', 'n_tokens_mistral': 715, 'n_tokens_neox': 681, 'n_words': 179}