<commit_before>//server needs
var express = require('express'),
	app = express(),
	server = require('http').createServer(app),
	port = Number(process.env.PORT || 3000),
	io = require('socket.io').listen(server);

server.listen(port);

/*routing*/
app.use("/css", express.static(__dirname + '/css'));
app.use("/js", express.static(__dirname + '/js'));
app.use("/img", express.static(__dirname + '/img'));

app.get('/', function(req, res){
	res.sendFile(__dirname+'/index.html');
})

app.get('/:room([A-Za-z0-9]{6})', function(req, res) {
	console.log('now:'+req.params.room);
	res.sendFile(__dirname+'/index.html');
});

/*game*/
var games = {};

function generateHash(length) {
	var haystack = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789',
		output = '';
	for(var i = 0; i < length; i++) {
		output += haystack.charAt(Math.floor(Math.random() * haystack.length));
	}
	return output;
};

function check_for_win(board){
	var found = 0,
		winner_coins = [],
		winner = false,
		data = {},
		person = 0;<commit_msg>without room in url, do automatic hash in url<commit_after>//server needs
var express = require('express'),
	app = express(),
	server = require('http').createServer(app),
	port = Number(process.env.PORT || 3000),
	io = require('socket.io').listen(server);

server.listen(port);

/*routing*/
app.use("/css", express.static(__dirname + '/css'));
app.use("/js", express.static(__dirname + '/js'));
app.use("/img", express.static(__dirname + '/img'));

app.get('/', function(req, res){
	res.writeHead(302, {
		'Location': '/'+generateHash(6)
	});
	res.end();
	/*res.sendFile(__dirname+'/index.html');*/
})

app.get('/:room([A-Za-z0-9]{6})', function(req, res) {
	console.log('now:'+req.params.room);
	res.sendFile(__dirname+'/index.html');
});

/*game*/
var games = {};

function generateHash(length) {
	var haystack = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789',
		output = '';
	for(var i = 0; i < length; i++) {
		output += haystack.charAt(Math.floor(Math.random() * haystack.length));
	}
	return output;
};

function check_for_win(board){
	var found = 0,
		winner_coins = [],
		winner = false,
		data = {},
		person = 0;
{'fraction_non_alphanumeric': 0.21510824504836482, 'fraction_numerical': 0.02026715799170889, 'mean_word_length': 4.918256130790191, 'pattern_counts': {'":': 0, '<': 5, '<?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': '439033', 'n_tokens_mistral': 836, 'n_tokens_neox': 783, 'n_words': 141}