<commit_before>var express = require("express");
var app = express();

var template = require('pug').compileFile(__dirname + '/source/templates/homepage.pug');
var path = require('path');

// check if 'dev' is passed in as an argument and use port 8080 in that case 

// by default don't include a name, as it would be printed in the footer
var env = {
    port: 80,
    name: ""
};

if (process.argv.length >= 3) {
    if (process.argv[2] === "dev") {
        env = { port: 8080, name: "dev" };
    }
}

// static content

app.use(express.static(__dirname + '/static'));
app.use('/ld37/', express.static(path.join(__dirname, 'projects/ld37')));

// content serving

app.get("/", function(req, res) {
    res.send(template({ env: env.name }));
});

app.get("/projects/ld37/", function(req, res) {
   res.sendFile(path.join(__dirname, "ld37/index.html"));
});

// exec

app.listen(env.port, function() { 
    console.log("Listening on port " + env.port);
});

<commit_msg>unnecessary route<commit_after>var express = require("express");
var app = express();

var template = require('pug').compileFile(__dirname + '/source/templates/homepage.pug');
var path = require('path');

// check if 'dev' is passed in as an argument and use port 8080 in that case

// by default don't include a name, as it would be printed in the footer
var env = {
    port: 80,
    name: ""
};

if (process.argv.length >= 3) {
    if (process.argv[2] === "dev") {
        env.port = 8080;
        env.name = "dev";
    }
}

// static content

app.use(express.static(__dirname + '/static'));
app.use('/ld37/', express.static(path.join(__dirname, 'projects/ld37')));

// content serving

app.get("/", function(req, res) {
    res.send(template({ env: env.name }));
});

// exec

app.listen(env.port, function() {
    console.log("Listening on port " + env.port);
});


{'fraction_non_alphanumeric': 0.18576860401955458, 'fraction_numerical': 0.01955458989679522, 'mean_word_length': 3.4817518248175183, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4339002', 'n_tokens_mistral': 639, 'n_tokens_neox': 609, 'n_words': 167}