<commit_before>/*jshint node:true */
/*global define: true */

if (typeof define !== 'function') {
    var define = require('amdefine')(module);
}

define(
  ['./server/web-server', 'socket.io', "./server/game-lobby", 'node-uuid'], 
  function (webserver, socketio, GameLobby, UUID) {

  'use strict';

  var io, server = webserver(5000);
  var lobby;

  io = socketio.listen(server);

  io.configure(function (){

    io.set('log level', 0);
    io.set('authorization', function (handshakeData, callback) {
      callback(null, true); // error first callback style
    });

  });

  io.sockets.on('connection', function(socket){
    socket.clientid = UUID();
 <commit_msg>use env port if supplied<commit_after>/*jshint node:true */
/*global define: true */

if (typeof define !== 'function') {
    var define = require('amdefine')(module);
}

define(
  ['./server/web-server', 'socket.io', "./server/game-lobby", 'node-uuid'], 
  function (webserver, socketio, GameLobby, UUID) {

  'use strict';

  var io, server = webserver(process.env.PORT || 5000);
  var lobby;

  io = socketio.listen(server);

  io.configure(function (){

    io.set('log level', 0);
    io.set('authorization', function (handshakeData, callback) {
      callback(null, true); // error first callback style
    });

  });

  io.sockets.on('connection', function(socket){
    socket.clientid = UUID();
 
{'fraction_non_alphanumeric': 0.18010167029774873, 'fraction_numerical': 0.007262164124909223, 'mean_word_length': 3.671186440677966, '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': '1585034', 'n_tokens_mistral': 469, 'n_tokens_neox': 442, 'n_words': 105}