<commit_before>var d2gsi = require('../index.js');

var server = new d2gsi();

server.events.on('newclient', function(client) {
    console.log('New connection: ', client.ip);

    client.on('hero:name', function(hero_name) {
        console.log("new emit from hero:name - " + hero_name);
    });
    client.on('player:name', function(player_name) {
        console.log("new emit from player:name - " + player_name);
    });
});

<commit_msg>Tweaked the test script<commit_after>var d2gsi = require('../index.js');

var server = new d2gsi();

server.events.on('newclient', function(client) {
    console.log("New client connection, IP address: " + client.ip + ", Auth token: " + client.auth);

    client.on('hero:name', function(hero_name) {
        console.log("new emit from hero:name - " + hero_name);
    });
    client.on('player:name', function(player_name) {
        console.log("new emit from player:name - " + player_name);
    });
});


{'fraction_non_alphanumeric': 0.17740232312565998, 'fraction_numerical': 0.004223864836325237, 'mean_word_length': 3.6019417475728157, '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': '7080805', 'n_tokens_mistral': 311, 'n_tokens_neox': 307, 'n_words': 61}