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


var staticRouteMappings = [
  { directory: path.join(__dirname, "..", "client"), url: "/public" }
];

app.set("port", (process.env.PORT || 3000));
staticRouteMappings.forEach(function(mapping) {
  app.use(mapping.url, express.static(mapping.directory));                      
});



console.log("/public ==", publicPath);

// TODO Define specific routes. 

// From all other routes we return index.html for now... 
app.get("/", function(request, response) {
    var indexHtml = path.join(process.env.PWD, "client", "html", "index.html");
    response.sendFile(indexHtml);
});

app.listen(app.get("port"), function() {
    console.log("Node app is running at localhost:" + app.get('port'));
});<commit_msg>Server side configurations in place after the release location came about<commit_after>var path = require("path");
var express = require("express");
var app = express();

var releaseDirectory = path.join(__dirname, "..");

// creating a iterable list of static url we can safely use from the browser without express involving itself 
// with them too much
var staticRouteMappings = [
  { directory: path.join(releaseDirectory, "client"), url: "/public" }
];

app.set("port", (process.env.PORT || 3000));
staticRouteMappings.forEach(function(mapping) {
  app.use(mapping.url, express.static(mapping.directory));                      
});

// From all other routes we return index.html for now... 
app.get("/", function(request, response) {
    var indexHtml = path.join(releaseDirectory, "client", "html", "index.html");
    response.sendFile(indexHtml);
});

app.listen(app.get("port"), function() {
    console.log("Node app is running at localhost:" + app.get('port'));
});
{'fraction_non_alphanumeric': 0.16853932584269662, 'fraction_numerical': 0.0044943820224719105, 'mean_word_length': 4.192419825072887, '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': '1819682', 'n_tokens_mistral': 524, 'n_tokens_neox': 505, 'n_words': 141}