<commit_before>const express = require('express');
const app = express();


// Setup --------------------------------------------------
app.disable('case sensitive routing');
app.set('json spaces', 4);
app.disable('strict routing');
app.locals.fileOpts = {
    root: process.cwd() + '/client/'
};
app.locals.prod = () => app.get('env') === 'production';

app.listen(app.locals.prod() ? 80 : 3000);


// Routing ------------------------------------------------
app.use(express.static(app.locals.fileOpts.root));

app.use(function(req, res){
    res.status(404).sendFile('404.html', app.locals.fileOpts);
});
<commit_msg>Listen on PORT env variable<commit_after>const express = require('express');
const app = express();


// Setup --------------------------------------------------
app.disable('case sensitive routing');
app.disable('strict routing');
app.set('json spaces', 4);
app.locals.fileOpts = {
    root: process.cwd() + '/client/'
};

app.listen(process.env.PORT || 3000);


// Routing ------------------------------------------------
app.use(express.static(app.locals.fileOpts.root));

app.use(function(req, res){
    res.status(404).sendFile('404.html', app.locals.fileOpts);
});

{'fraction_non_alphanumeric': 0.334453781512605, 'fraction_numerical': 0.020168067226890758, 'mean_word_length': 2.210242587601078, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2171111', 'n_tokens_mistral': 367, 'n_tokens_neox': 344, 'n_words': 62}