<commit_before>#!/usr/bin/env node
var express = require('express'),
    dnode   = require('dnode'),
    path    = require('path'),
    Server  = require('./appserver.js');

var REPO = process.argv[2] || '/home/nelhage/code/linux-2.6/';
var REF  = process.argv[3] || 'v3.0';


var app = express.createServer();
app.use(express.static(path.join(__dirname, 'static')));
app.get('/', function (req, res) {
          res.redirect('/index.html');
        })

app.listen(8910);
console.log("http://localhost:8910");

var server = dnode(new Server(REPO, REF).Server);
server.listen(app, {
                io: {
                  transports: ["htmlfile", "xhr-polling", "jsonp-polling"]
                }
              });<commit_msg>Log http requests to the console.<commit_after>#!/usr/bin/env node
var express = require('express'),
    dnode   = require('dnode'),
    path    = require('path'),
    Server  = require('./appserver.js');

var REPO = process.argv[2] || '/home/nelhage/code/linux-2.6/';
var REF  = process.argv[3] || 'v3.0';


var app = express.createServer();
app.use(express.static(path.join(__dirname, 'static')));
app.get('/', function (req, res) {
          res.redirect('/index.html');
        })

app.listen(8910);
app.use(express.logger({format: ':remote-addr [:date] :method :url'}))
console.log("http://localhost:8910");

var server = dnode(new Server(REPO, REF).Server);
server.listen(app, {
                io: {
                  transports: ["htmlfile", "xhr-polling", "jsonp-polling"]
                }
              });
{'fraction_non_alphanumeric': 0.19896305897602073, 'fraction_numerical': 0.01814646791963707, 'mean_word_length': 2.7936117936117935, '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': '3052530', 'n_tokens_mistral': 532, 'n_tokens_neox': 512, 'n_words': 94}