<commit_before>// Blog routes
exports.blog = require('./blog');

// Portfolio page
exports.projects = function (req, res) {
  res.render('projects', {
    page: 'projects',
    title: '<NAME> - Projects',
    // TODO: I really dislike view configuration being placed in the route
    navMargin: false,
    seoKeywords: 'dev tools, web tools, spritesmith, sexy-bash-prompt, File Watcher, jsmin-sourcemap, Find++',
    seoDescription: 'Projects by <NAME>: spritesmith, sexy-bash-prompt, File Watcher, jsmin-sourcemap, Find++'
  });
};

// Contact route
exports.contact = require('./contact');

// Kaleido page
exports.kaleido = function (req, res) {
  // DEV: Relocate js-yaml inside route for dev-only dependencies
  var yaml = require('js-yaml'),
      urls = require('../../test/perceptual-tests/urls');
  res.render('kaleido', {layout: false, urls: urls});
};

// Render a LICENSE page
var fs = require('fs'),
    license = fs.readFileSync(__dirname + '/../../LICENSE-MIT', 'utf8');
exports.license = function (req, res) {
  res.render('license', {
    page: 'license',
    license: license,
    title: '<NAME> - License',
    seoKeywords: 'license, mit',
    seoDescription: 'twolfson.com uses the MIT License'
  });
};

// Render a health page
var pkg = require('../../package.json'),
    pkgVersion = pkg.version;
exports.health = function (req, res) {
  var retObj = {
        'version': pkgVersion,
        'uptime': process.uptime(),
        'memory': process.memoryUsage(),
        'pid': process.pid
      };
  res.send(retObj);
};

// 404 page (no SEO here)
exports['404'] = function (req, res) {
  res.status(404);<commit_msg>Exposing `env` to /health<commit_after>// Blog routes
exports.blog = require('./blog');

// Portfolio page
exports.projects = function (req, res) {
  res.render('projects', {
    page: 'projects',
    title: '<NAME> - Projects',
    // TODO: I really dislike view configuration being placed in the route
    navMargin: false,
    seoKeywords: 'dev tools, web tools, spritesmith, sexy-bash-prompt, File Watcher, jsmin-sourcemap, Find++',
    seoDescription: 'Projects by <NAME>: spritesmith, sexy-bash-prompt, File Watcher, jsmin-sourcemap, Find++'
  });
};

// Contact route
exports.contact = require('./contact');

// Kaleido page
exports.kaleido = function (req, res) {
  // DEV: Relocate js-yaml inside route for dev-only dependencies
  var yaml = require('js-yaml'),
      urls = require('../../test/perceptual-tests/urls');
  res.render('kaleido', {layout: false, urls: urls});
};

// Render a LICENSE page
var fs = require('fs'),
    license = fs.readFileSync(__dirname + '/../../LICENSE-MIT', 'utf8');
exports.license = function (req, res) {
  res.render('license', {
    page: 'license',
    license: license,
    title: '<NAME> - License',
    seoKeywords: 'license, mit',
    seoDescription: 'twolfson.com uses the MIT License'
  });
};

// Render a health page
var pkg = require('../../package.json'),
    pkgVersion = pkg.version,
    config = require('../../config');
exports.health = function (req, res) {
  var retObj = {
        'version': pkgVersion,
        'uptime': process.uptime(),
        'memory': process.memoryUsage(),
        'pid': process.pid,
        'env': env
      };
  res.send(retObj);
};

// 404 page (no SEO here)
exports['404'] = function (req, res) {
  res.status(404);
{'fraction_non_alphanumeric': 0.17184698147041244, 'fraction_numerical': 0.005977286312014346, 'mean_word_length': 3.24746192893401, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '7087578', 'n_tokens_mistral': 1092, 'n_tokens_neox': 1055, 'n_words': 296}