<commit_before>var http = require('http'),
	_ = require('underscore'),
	express = require('express'),
	jade = require('jade'),
	content = require('./content');

function view(view, options) {
	return function(req, res, next) {
		options.pretty = true;
		options.prefix = (options.language === 'en') ? '/' : '/' + options.language + '/';
		_.extend(options, content.languages[options.language]);
		res.render(options.language + '/pages/' + view, options);
	}
}

// Initialise app

var app = express();

app.set('port', 8080);
app.set('views', 'content');
app.set('view engine', 'jade');

app.use(express.favicon('public/favicon.ico'));
app.use(require('less-middleware')('public'));
app.use(express.static('public'));<commit_msg>sync docs.js with upstream<commit_after>var http = require('http'),
	_ = require('underscore'),
	express = require('express'),
	jade = require('jade'),
	content = require('./content');

function view(view, options) {
	return function(req, res, next) {
		options.pretty = true;
		options.prefix = (options.language === 'en') ? '/' : '/' + options.language + '/';
		_.extend(options, content.languages[options.language]);
		res.render(options.language + '/pages/' + view, options);
	}
}

// Initialise app

var app = express();

app.set('port', 8080);
app.set('views', 'content');
app.set('view engine', 'jade');

app.use(express.favicon('public/favicon.ico'));
app.use(require('less-middleware')('public'));
app.use(express.static('public'));
{'fraction_non_alphanumeric': 0.21715452688904016, 'fraction_numerical': 0.005445881552076242, 'mean_word_length': 5.25531914893617, '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': '5847217', 'n_tokens_mistral': 502, 'n_tokens_neox': 477, 'n_words': 90}