<commit_before>"use strict";
var port = 3000;

var app = require('express')();
var bodyParser = require('body-parser');
// app.use(bodyParser.json()); // support json encoded bodies
app.use(bodyParser.urlencoded({ extended: true })); // support encoded bodies
var http = require('http').Server(app);
var io = require('socket.io')(http);

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

app.post('/', function(req, res){
console.log('Got post request for player: '+req.body.playerName+' and room: '+req.body.roomName);
res.redirect('/roller?name='+playerName+'&roomName='+roomName);
});

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

io.on('connection', function(socket){
  console.log('a user connected');
});

http.listen(port, function(){<commit_msg>set ejs as view engine<commit_after>"use strict";
var port = 3000;

var app = require('express')();
var bodyParser = require('body-parser');
// app.use(bodyParser.json()); // support json encoded bodies
app.use(bodyParser.urlencoded({ extended: true })); // support encoded bodies
app.set('view engine', 'ejs');

var http = require('http').Server(app);
var io = require('socket.io')(http);

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

app.post('/roller', function(req, res){
console.log('Got post request for /roller with player: '+req.body.playerName+' and room: '+req.body.roomName);
  res.sendFile(__dirname + '/roller.html');
});

io.on('connection', function(socket){
  console.log('a user connected');
});

http.listen(port, function(){
{'fraction_non_alphanumeric': 0.20859277708592777, 'fraction_numerical': 0.0049813200498132005, 'mean_word_length': 5.668049792531121, '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': '3462812', 'n_tokens_mistral': 514, 'n_tokens_neox': 504, 'n_words': 120}