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

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

app.use(express.static('public'));

var server = app.listen(PORT, function () {
  var host = server.address().address;
  var port = server.address().port;<commit_msg>Add standard security headers.<commit_after>var express = require('express');
var app = express();

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

app.use(function(req, res, next) {
  res.setHeader('Strict-Transport-Security', 'max-age=600');
  res.setHeader('Content-Security-Policy', "script-src 'self'");
  res.setHeader('X-Frame-Options', 'SAMEORIGIN');
  res.setHeader('X-Xss-Protection', '1; mode=block');
  res.setHeader('X-Content-Type-Options', 'nosniff');
  next();
});

app.use(express.static('public'));

var server = app.listen(PORT, function () {
  var host = server.address().address;
  var port = server.address().port;
{'fraction_non_alphanumeric': 0.1897891231964484, 'fraction_numerical': 0.013318534961154272, 'mean_word_length': 5.220689655172414, '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': '7668150', 'n_tokens_mistral': 303, 'n_tokens_neox': 291, 'n_words': 60}