<commit_before>//Dependencies
var express = require("express");
var bodyParser = require("body-parser");
var methodOverride = require("method-override");
var passport = require("passport");
var session = require("express-session");
var LocalStrategy = require("passport-local").Strategy;
var db = require("./models");

var app = express();
var PORT = process.env.PORT || 2012;

//Serve static content from public directory
app.use(express.static(process.cwd() + "/public"));
app.use(methodOverride("_method"));

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.text());
app.use(bodyParser.json({ type: "application/vnd.api+json" }));

app.use(session({
    secret: "keyboard cat",
    resave: true,
    saveUninitialized: true
}));

app.use(passport.initialize());
app.use(passport.session());//persistent login
app.use(function(req, res, next) {
    res.locals.user = req.user;
    next();
});

//Setting up Handlebars
var exphbs = require("express-handlebars");
var helpers = require("./views/helpers");
//Adding Partial Directory
var hbs = exphbs.create({
    defaultLayout: "main",
    partialsDir: ["views/partials/"],
    helpers: helpers
});

app.engine("handlebars", hbs.engine);
app.set("view engine", "handlebars");

//Importing routes
var opinions = require("./controllers/opinions_controller.js");
var authroute = require("./controllers/authcontroller.js")(app, passport);

require("./config/passport.js")(passport, db.Patients);

app.use("/", opinions);
//Default Page for all unknown url
app.get("*", function(req, res) {
	res.redirect("/");
});
//404 pages
// app.use(function (req, res) {
//   // res.status(404).send("Sorry can't find that!");
//   //sets status for 404 error
//   res.status(404);
//   //for now, just rendering the index page
//   res.render('index');
// });


db.sequelize.sync({ force: true }).then(function() {
    app.listen(PORT, function() {
        console.log("Server Operational - Listening to Port " + PORT);
    });
});<commit_msg>changed specialty options in dashboard page<commit_after>//Dependencies
var express = require("express");
var bodyParser = require("body-parser");
var methodOverride = require("method-override");
var passport = require("passport");
var session = require("express-session");
var LocalStrategy = require("passport-local").Strategy;
var db = require("./models");

var app = express();
var PORT = process.env.PORT || 2012;

//Serve static content from public directory
app.use(express.static(process.cwd() + "/public"));
app.use(methodOverride("_method"));

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.text());
app.use(bodyParser.json({ type: "application/vnd.api+json" }));

app.use(session({
    secret: "keyboard cat",
    resave: true,
    saveUninitialized: true
}));

app.use(passport.initialize());
app.use(passport.session());//persistent login
app.use(function(req, res, next) {
    res.locals.user = req.user;
    next();
});

//Setting up Handlebars
var exphbs = require("express-handlebars");
var helpers = require("./views/helpers");
//Adding Partial Directory
var hbs = exphbs.create({
    defaultLayout: "main",
    partialsDir: ["views/partials/"],
    helpers: helpers
});

app.engine("handlebars", hbs.engine);
app.set("view engine", "handlebars");

//Importing routes
var opinions = require("./controllers/opinions_controller.js");
var authroute = require("./controllers/authcontroller.js")(app, passport);

require("./config/passport.js")(passport, db.Patients);

app.use("/", opinions);
//Default Page for all unknown url
app.get("*", function(req, res) {
	res.redirect("/");
});
// //404 pages
// app.use(function (req, res) {
//   // res.status(404).send("Sorry can't find that!");
//   //sets status for 404 error
//   res.status(404);
//   //for now, just rendering the index page
//   res.render('index');
// });


db.sequelize.sync({ force: true }).then(function() {
    app.listen(PORT, function() {
        console.log("Server Operational - Listening to Port " + PORT);
    });
});
{'fraction_non_alphanumeric': 0.1892883345561262, 'fraction_numerical': 0.007825874296894107, 'mean_word_length': 4.504710632570659, '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': '4952724', 'n_tokens_mistral': 1313, 'n_tokens_neox': 1272, 'n_words': 299}