<commit_before>var express = require('express');
    app = express(),
    scv = require('./app/scv.js');
    path = __dirname + '/app/dist/';

var port = 3000;

app.use(express.static(__dirname + '/app/dist'));

// Main page
app.get('/', function(req, res){
    try{
        res.sendFile(path + "index.html");
    }catch(e){
        res.send("Uh oh 4xx");
    }

});

app.get('/ping', function(req, res){
    try{
        var message = scv.hello();
        res.setHeader('Content-Type', 'application/json');
        res.send(JSON.stringify({ response: message }));
    }catch(e){
        res.send("Uh oh SCV died for some reason.");
    }
})

app.listen(port,function(){
    console.log('App started on port ' + port);
});

module.exports = app;<commit_msg>cleaned up a bit, need to do some more though.<commit_after>var express = require('express');
    app = express(),
    scv = require('./app/scv.js');
    path = __dirname + '/app/dist/';

var port = 3000;

app.use(express.static(path));

// Main page
app.get('/', function(req, res){
    try{
        res.sendFile(path + "index.html");
    }catch(e){
        res.send("Uh oh 4xx it's probably your fault.");
    }

});

// Ping endpoint
app.get('/ping', function(req, res){
    try{
        var message = scv.hello();
        res.setHeader('Content-Type', 'application/json');
        res.send(JSON.stringify({ response: message }));
    }catch(e){
        res.send(JSON.stringify({ response: "Uh oh SCV died for some reason." }));
    }
})

app.listen(port,function(){
    console.log('App started on port ' + port);
});

module.exports = app;
{'fraction_non_alphanumeric': 0.19175515302935664, 'fraction_numerical': 0.006246096189881324, 'mean_word_length': 2.8233890214797137, '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': '6102597', 'n_tokens_mistral': 540, 'n_tokens_neox': 526, 'n_words': 125}