<commit_before>var glog = require('./lib/glog'),
	connect = require('connect'),
	path = require('path');


glog.rebuild(function(options) {

	console.log('Starting server on port ' + options.port);

	var server = connect.createServer(
		connect.static(path.join('blog_repo', '/public')),
		connect.staticCache(),
		connect.router(function(app) {
			app.get('/', glog.req_home);
			app.get('/__render', function(req, res, next) {
				glog.rebuild(function(options) {
					res.end();
				});
			});
			app.get('/:article', glog.req_article);
		})
	).listen(options.port);
});<commit_msg>__render route now accepts post requests.  Allows Glog to handle github hooks<commit_after>var glog = require('./lib/glog'),
	connect = require('connect'),
	path = require('path');


glog.rebuild(function(options) {

	console.log('Starting server on port ' + options.port);

	var server = connect.createServer(
		connect.static(path.join('blog_repo', '/public')),
		connect.staticCache(),
		connect.router(function(app) {
			app.get('/', glog.req_home);
			app.get('/__render', function(req, res, next) {
				glog.rebuild(function(options) {
					res.end();
				});
			});
			app.post('/__render', function(req, res, next) {
				glog.rebuild(function(options) {
					res.end();
				});
			});
			app.get('/:article', glog.req_article);
		})
	).listen(options.port);
});
{'fraction_non_alphanumeric': 0.19423929098966028, 'fraction_numerical': 0.0, 'mean_word_length': 4.074906367041199, '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': '2785150', 'n_tokens_mistral': 521, 'n_tokens_neox': 453, 'n_words': 79}