<commit_before>var express = require('express');
var session = require('express-session');
var bodyParser  = require('body-parser');
var app = express();
var user = {
    username: null,
    password: <PASSWORD>,
    email: null,
    set(username: string, password: string, email: string) {
        this.username = username;
        this.password = password;
        this.email = email;
    },
    clear() {
        this.username = null;
        this.password = <PASSWORD>;
        this.email = null;
    }
};

var port: number = 4000;
app.listen(port, function () {
    console.log('Annapolis-forum app listening on port ' + port + '!');
});

const path = require('path');
//app.use(express.static(path.join(__dirname, 'public'))); //<-- can be used if see OS dependent issues
app.use(express.static('./public/'));
app.use(bodyParser());

const dbErrorMessage = "Server is experiencing database connectivity issues. Please try again later.";
//Remember sending responses from different sources may need res.append('Access-Control-Allow-Origin', '*');


<commit_msg>Switch to port 80 for Internet deployment<commit_after>var express = require('express');
var session = require('express-session');
var bodyParser  = require('body-parser');
var app = express();
var user = {
    username: null,
    password: <PASSWORD>,
    email: null,
    set(username: string, password: string, email: string) {
        this.username = username;
        this.password = password;
        this.email = email;
    },
    clear() {
        this.username = null;
        this.password = <PASSWORD>;
        this.email = null;
    }
};

var port: number = 80;
app.listen(port, function () {
    console.log('Annapolis-forum app listening on port ' + port + '!');
});

const path = require('path');
//app.use(express.static(path.join(__dirname, 'public'))); //<-- can be used if see OS dependent issues
app.use(express.static('./public/'));
app.use(bodyParser());

const dbErrorMessage = "Server is experiencing database connectivity issues. Please try again later.";
//Remember sending responses from different sources may need res.append('Access-Control-Allow-Origin', '*');



{'fraction_non_alphanumeric': 0.15013901760889714, 'fraction_numerical': 0.0037071362372567192, 'mean_word_length': 3.5073068893528183, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '1809937', 'n_tokens_mistral': 617, 'n_tokens_neox': 597, 'n_words': 180}