<commit_before>/**
 * Module dependencies.
 */

var express = require('express');
var redirect = require("express-redirect");
var consolidate = require('consolidate');
var http = require('http');
var path = require('path');

var app = express();

// all environments
app.set('port', process.env.PORT || 3000);
app.set('views', __dirname + '/views');

// Handlebars
var hbs = require('hbs');
hbs.registerPartials(__dirname + '/views/partials');
app.set('views', __dirname + '/views');
app.set('view engine', 'hbs');

// Other
app.use(express.favicon());
app.use(express.logger('dev'));
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.static(path.join(__dirname, 'public')));
app.use(app.router);

// development only
if ('development' == app.get('env')) {
  app.use(express.errorHandler());
}

//
// Routes
//
var routes = require('./routes');

app.get('/', routes.index);

// Github page redirects
app.redirect("/vidwall", "grant.github.io/vidwall");
app.redirect("/openacademy", "grant.github.io/open-academy-map");

// app.get('/:id', routes.id);<commit_msg>Fixed redirect<commit_after>/**
 * Module dependencies.
 */

var express = require('express');
var redirect = require("express-redirect");
var consolidate = require('consolidate');
var http = require('http');
var path = require('path');

var app = express();
redirect(app);

// all environments
app.set('port', process.env.PORT || 3000);
app.set('views', __dirname + '/views');

// Handlebars
var hbs = require('hbs');
hbs.registerPartials(__dirname + '/views/partials');
app.set('views', __dirname + '/views');
app.set('view engine', 'hbs');

// Other
app.use(express.favicon());
app.use(express.logger('dev'));
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.static(path.join(__dirname, 'public')));
app.use(app.router);

// development only
if ('development' == app.get('env')) {
  app.use(express.errorHandler());
}

//
// Routes
//
var routes = require('./routes');

app.get('/', routes.index);

// Github page redirects
app.redirect("/vidwall", "http://grant.github.io/vidwall");
app.redirect("/openacademy", "http://grant.github.io/open-academy-map");

// app.get('/:id', routes.id);
{'fraction_non_alphanumeric': 0.22317403065825067, 'fraction_numerical': 0.0036068530207394047, 'mean_word_length': 5.112947658402204, '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': '6127407', 'n_tokens_mistral': 737, 'n_tokens_neox': 722, 'n_words': 141}