<commit_before>var express = require('express')
    , login = require('./login.js');

var app = module.exports = express();
app.configure(function(){
  app.set('views', __dirname + '/views');
  app.set('view engine', 'jade');
  app.use(express.bodyParser());
  app.use(express.methodOverride());
  app.use(express.cookieParser());
  app.use(express.session({ secret: 'htuayreve'}));
  app.use(login.passport.initialize());
  app.use(login.passport.session());
  app.use(express.static(__dirname + '/static'));
});

app.configure('development', function(){
  app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
});

app.configure('production', function(){
  app.use(express.errorHandler());
});

app.get('/', function(req, res, next) {
  res.render('index');
});

app.get('/login', function(req, res){
  res.redirect('/auth/github');
});

app.get('/unauthorized', function(req, res){
  res.render('401');
});

app.get('/auth/github',
  login.passport.authenticate('github'),
  function(req, res){
  }
);

app.get('/auth/github/callback', <commit_msg>Show server trace<commit_after>var express = require('express')
    , login = require('./login.js');

var app = module.exports = express();
app.configure(function(){
  app.set('views', __dirname + '/views');
  app.set('view engine', 'jade');
  app.use(express.bodyParser());
  app.use(express.methodOverride());
  app.use(express.cookieParser());
  app.use(express.session({ secret: 'htuayreve'}));
  app.use(login.passport.initialize());
  app.use(login.passport.session());
  app.use(express.static(__dirname + '/static'));
});

app.configure('development', function(){
  app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
});

app.configure('production', function(){
  app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
  //app.use(express.errorHandler());
});

app.get('/', function(req, res, next) {
  res.render('index');
});

app.get('/login', function(req, res){
  res.redirect('/auth/github');
});

app.get('/unauthorized', function(req, res){
  res.render('401');
});

app.get('/auth/github',
  login.passport.authenticate('github'),
  function(req, res){
  }
);

app.get('/auth/github/callback', 
{'fraction_non_alphanumeric': 0.2239208633093525, 'fraction_numerical': 0.002697841726618705, 'mean_word_length': 5.339031339031339, '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': '3562250', 'n_tokens_mistral': 731, 'n_tokens_neox': 725, 'n_words': 115}