<commit_before>'use strict';
var express = require('express');
var path = require('path');

var port = process.env.PORT || 3000;
var files = process.env.FILES || '../frontend';

// Define our static file directory, it will be 'public'
var staticFilePath = path.join(__dirname, files);
console.log('staticFilePath:', staticFilePath);

var server = express(); // better instead
server.engine('html', require('ejs').renderFile);
server.set('views', staticFilePath);
server.set('view engine', 'html');
server.use(express.logger());
server.use(express.bodyParser());

server.use(express.static(staticFilePath));
server.get('/*', function(req, res) {
	res.render('index');
});


server.listen(port);
console.log('GodHatesCharades is rusting on port', port);<commit_msg>added special path for print downloads<commit_after>'use strict';
var express = require('express');
var path = require('path');

var port = process.env.PORT || 3000;
var files = process.env.FILES || '../frontend';

// Define our static file directory, it will be 'public'
var staticFilePath = path.join(__dirname, files);
console.log('staticFilePath:', staticFilePath);

var server = express(); // better instead
server.engine('html', require('ejs').renderFile);
server.set('views', staticFilePath);
server.set('view engine', 'html');
server.use(express.logger());
server.use(express.bodyParser());

server.use(express.static(staticFilePath));
server.use('/print', express.static(staticFilePath));
server.get('/*', function(req, res) {
	res.render('index');
});


server.listen(port);
console.log('GodHatesCharades is rusting on port', port);
{'fraction_non_alphanumeric': 0.18130841121495328, 'fraction_numerical': 0.004984423676012461, 'mean_word_length': 6.400921658986175, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2300982', 'n_tokens_mistral': 477, 'n_tokens_neox': 463, 'n_words': 120}