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

var port = process.env.PORT || 3000;

// Asset paths first
app.get('/js/:file', serveFile.bind(null, 'dist/js'));
app.get('/css/:file', serveFile.bind(null, 'dist/css'));
app.get('/img/:file', serveFile.bind(null, 'dist/img'));
app.get('/app/templates/:file', serveFile.bind(null, 'dist/templates'));

// Anything else is sent to index.html to support SPA routing
app.get('/*', function (req, res) {
    res.sendFile('index.html', { root: 'dist' });
});

// Start the server!
var server = app.listen(port, serverStarted);

function serverStarted() {
    console.log("Bloc Base Project is running on port " + port);
}

function serveFile( root, req, res ) {
    res.sendFile(req.params.file, { root: root });
}
<commit_msg>fixed issue on server.js with file structure<commit_after>var express = require('express');
var app = express();

var port = process.env.PORT || 3000;

// Asset paths first
app.get('/app/js/:file', serveFile.bind(null, 'dist/js'));
app.get('/app/css/:file', serveFile.bind(null, 'dist/css'));
app.get('/app/img/:file', serveFile.bind(null, 'dist/img'));
app.get('/app/templates/:file', serveFile.bind(null, 'dist/templates'));

// Anything else is sent to index.html to support SPA routing
app.get('/*', function (req, res) {
    res.sendFile('index.html', { root: 'dist' });
});

// Start the server!
var server = app.listen(port, serverStarted);

function serverStarted() {
    console.log("Bloc Base Project is running on port " + port);
}

function serveFile( root, req, res ) {
    res.sendFile(req.params.file, { root: root });
}

{'fraction_non_alphanumeric': 0.1939840392879067, 'fraction_numerical': 0.004910988336402701, 'mean_word_length': 4.415282392026578, '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': '6901556', 'n_tokens_mistral': 545, 'n_tokens_neox': 540, 'n_words': 140}