<commit_before>'use strict';

var express = require('express');
var path = require('path');
var router = express.Router();

router.get('/', function(req, res) {
  res.render('projects');
});

router.get('/:name', function(req, res) {
  // For a project to get rendered correctly, it must have a file called
  // 'index.html' in the project root.
  var projectName = req.params.name;
  var projectPath = path.join(__dirname, '../public/projects', projectName);
  res.sendfile(path.join(projectPath, 'index.html'));
});

module.exports = router;<commit_msg>Individual project page routing handled by nginx.<commit_after>'use strict';

var express = require('express');
var path = require('path');
var router = express.Router();

router.get('/', function(req, res) {
  res.render('projects');
});

module.exports = router;
{'fraction_non_alphanumeric': 0.17338217338217338, 'fraction_numerical': 0.0, 'mean_word_length': 4.942028985507246, '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': '7424349', 'n_tokens_mistral': 247, 'n_tokens_neox': 241, 'n_words': 70}