<commit_before>/**
  index.js
  canvassmate-geocodingservice

  created by matux (<EMAIL>) on 2014-08-04
  copyright (c) 2014 Silicon Illusions. all rights reserved.

  Index route
  @module app
  @submodule routes
 */

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

// GET home page.
router.get('/', function(req, res) {
	res.render('index', { title: 'Canvassmate Geocoding Web Service' });
});

module.exports = router;
<commit_msg>Added some test routes.<commit_after>/**
  index.js
  canvassmate-geocodingservice

  created by matux (<EMAIL>) on 2014-08-04
  copyright (c) 2014 Silicon Illusions. all rights reserved.

  Index route
  @module app
  @submodule routes
 */

var express = require('express');
var router = express.Router();
var log = config.getLogger('router');

// GET home page.
router.get('/', function(req, res) {
	res.render('index', { title: 'Canvassmate Geocoding Web Service' });
});

// Simple check
router.get('/api', function(req, res) {
	res.send('API is running');
});

// Error example
router.get('/error', function(req, res, next) {
	log.error("Z0MG!1 Error!");
	next(new Error('WTF Error!'));
});

module.exports = router;

{'fraction_non_alphanumeric': 0.16085106382978723, 'fraction_numerical': 0.022127659574468085, 'mean_word_length': 4.157894736842105, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4780595', 'n_tokens_mistral': 410, 'n_tokens_neox': 383, 'n_words': 111}