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

app.set('port', (process.env.PORT || 5050));

var pageData = {
  "javascriptsBase": "/assets/javascripts",
  "stylesheetsBase": "/assets/stylesheets",
  "imagesBase": "/assets/images",
  "pdfBase": "/assets/pdfs"
};

app.use('/assets', express.static(__dirname + '/public'));

app.set('view engine', 'jade');
app.set('views', './assets/jade');

function beforeAllFilter(req, res, next) {
  app.locals.pretty = true;

  next();
}

app.all('*', beforeAllFilter);

app.get('/', function(req, res){
  res.render('index', pageData);
});

app.listen(app.get('port'), function() {
  console.log('Node app is running on port', app.get('port'));
});<commit_msg>LF | 399 | Fix pdf links on local host<commit_after>var express = require('express');
var app = express();

app.set('port', (process.env.PORT || 5050));

var pageData = {
  "javascriptsBase": "/assets/javascripts",
  "stylesheetsBase": "/assets/stylesheets",
  "imagesBase": "/assets/images",
  "pdfBase": "/assets/pdfs"
};

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

app.set('view engine', 'jade');
app.set('views', './assets/jade');

function beforeAllFilter(req, res, next) {
  app.locals.pretty = true;

  next();
}

app.all('*', beforeAllFilter);

app.get('/', function(req, res){
  res.render('index', pageData);
});

app.listen(app.get('port'), function() {
  console.log('Node app is running on port', app.get('port'));
});
{'fraction_non_alphanumeric': 0.2232876712328767, 'fraction_numerical': 0.007534246575342466, 'mean_word_length': 5.037190082644628, 'pattern_counts': {'":': 8, '<': 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': '5118247', 'n_tokens_mistral': 516, 'n_tokens_neox': 497, 'n_words': 106}