<commit_before>/*  ----------------------------------------------------------------------------

																					 Copyright 2016 4BSharksWithLasers    

----------------------------------------------------------------------------  */

//set require variables
var config = require("./Assets/Config/config");
var user = require("./Assets/Models/db");
var express = require("express");
var path = require("path");

// set other variables
var server = express();
var port = config.port;

// set routes to static assets (images and stylesheets)
server.use("/Assets", express.static(__dirname + "/Assets"));

// open port
server.listen(port);
console.log("Listening: Port", port);

// route variables
var index = "/Views/index.html";
var registration = "/Views/registration.html";
var review = "/Views/review.html";
var admin = "/Views/admin.html";
var fourohthree = "/Views/403.html";

// authenticate users to prevent direct access to pages
function isAuthenticated(req, res, next) {
	if(1===1)
		return next();
	else
		res.sendFile(__dirname + fourohthree);
};

//--	get routes																														--//

// index.html
server.get("/", function(req, res) {
  res.sendFile(__dirname + index);
	console.log("Routed to: ", index);
});

// registration.html
server.get("/registration", isAuthenticated, function(req, res) {
	res.sendFile(__dirname + registration);
	console.log("Routed to: ", registration);
});

// review.html
server.get("/review", isAuthenticated, function(req, res) {
	res.sendFile(__dirname + review);
	console.log("Routed to: ", review);
});

// admin.html
server.get("/admin", isAuthenticated, function(req, res) {
	res.sendFile(__dirname + admin);
	console.log("Routed to: ", admin);
});

//--	post routes																														--//

server.post("/authenticate", function(req, res) {

});

/*  ----------------------------------------------------------------------------

																					 Copyright 2016 4BSharksWithLasers    

----------------------------------------------------------------------------  */
<commit_msg>Adjusted server.js to reflect directory changes<commit_after>/*  ----------------------------------------------------------------------------

																					 Copyright 2016 4BSharksWithLasers    

----------------------------------------------------------------------------  */

//set require variables
var config = require("./Server/Config/config");
var user = require("./Server/Models/db");
var express = require("express");
var path = require("path");

// set other variables
var server = express();
var port = config.port;

// set routes to static assets (images and stylesheets)
server.use("/Client/Assets", express.static(__dirname + "/Client/Assets"));

// open port
server.listen(port);
console.log("Listening: Port", port);

// route variables
var index = "Client/Views/index.html";
var registration = "Client/Views/registration.html";
var review = "Client/Views/review.html";
var admin = "Client/Views/admin.html";
var fourohthree = "Client/Views/403.html";

// authenticate users to prevent direct access to pages
function isAuthenticated(req, res, next) {
	if(1===1)
		return next();
	else
		res.sendFile(__dirname + fourohthree);
};

//--	get routes																														--//

// index.html
server.get("/", function(req, res) {
  res.sendFile(__dirname + index);
	console.log("Routed to: ", index);
});

// registration.html
server.get("/registration", isAuthenticated, function(req, res) {
	res.sendFile(__dirname + registration);
	console.log("Routed to: ", registration);
});

// review.html
server.get("/review", isAuthenticated, function(req, res) {
	res.sendFile(__dirname + review);
	console.log("Routed to: ", review);
});

// admin.html
server.get("/admin", isAuthenticated, function(req, res) {
	res.sendFile(__dirname + admin);
	console.log("Routed to: ", admin);
});

//--	post routes																														--//

server.post("/authenticate", function(req, res) {

});

/*  ----------------------------------------------------------------------------

																					 Copyright 2016 4BSharksWithLasers    

----------------------------------------------------------------------------  */

{'fraction_non_alphanumeric': 0.28534031413612565, 'fraction_numerical': 0.007139457401237506, 'mean_word_length': 1.8728639781271361, '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': '4289942', 'n_tokens_mistral': 1145, 'n_tokens_neox': 1090, 'n_words': 263}