<commit_before>#!/usr/bin/env node
var app = require('express')();
var server = require('http').createServer(app);
var io = require('socket.io').listen(server);

var term = require('term.js');

require('./lib/dummy-dom');

app.use('/t', term.middleware());

term.Terminal.options.scrollback = 0;
term.Terminal.options.cursorBlink = false;
term.Terminal.prototype.refresh = function() {};

var shellcasts = {};

app.get('/t/:term', function(req, res) {
	if (shellcasts[req.params.term])
		res.sendfile(__dirname + '/views/shell.html');
	else
		res.send(404, 'No shell broadcasting at this location.');
});

app.get('/t/:term/c', function(req, res) {
	if (!shellcasts[req.params.term]) {<commit_msg>Add production configuration<commit_after>#!/usr/bin/env node
var app = require('express')();
var server = require('http').createServer(app);
var io = require('socket.io').listen(server);

var term = require('term.js');

require('./lib/dummy-dom');

app.use('/t', term.middleware());

term.Terminal.options.scrollback = 0;
term.Terminal.options.cursorBlink = false;
term.Terminal.prototype.refresh = function() {};

var shellcasts = {};

io.configure('production', function() {
	io.enable('browser client etag');
	io.set('log level', 1);
});

app.get('/t/:term', function(req, res) {
	if (shellcasts[req.params.term])
		res.sendfile(__dirname + '/views/shell.html');
	else
		res.send(404, 'No shell broadcasting at this location.');
});

app.get('/t/:term/c', function(req, res) {
	if (!shellcasts[req.params.term]) {
{'fraction_non_alphanumeric': 0.2073976221928666, 'fraction_numerical': 0.0059445178335535, 'mean_word_length': 5.183673469387755, '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': '1572781', 'n_tokens_mistral': 527, 'n_tokens_neox': 511, 'n_words': 100}