<commit_before>var playersArray = [];
var playerNumber;

function send() {
    var username = $('#welkom-btn-mob-text-veld').val();

    playerNumber = playersArray.length;

    socket.emit('new user', playerNumber, username = {
        gebruikersnaam : username,
        host : false,
        score : 0,
        id : playersArray.length
    });
}

socket.on('send array', function(players) {
    playersArray = [];
    playersArray = players;
});

// When a new client connects, this makes sure they'll receive the latest array of players.
socket.on('update playerArray', function(players) {
    playersArray = [];
    playersArray = players;
});<commit_msg>Added piece of code to make mobile keyboards dissapear on form submission<commit_after>var playersArray = [];
var playerNumber;

function send() {
    var username = $('#welkom-btn-mob-text-veld').val();

    playerNumber = playersArray.length;

    socket.emit('new user', playerNumber, username = {
        gebruikersnaam : username,
        host : false,
        score : 0,
        id : playersArray.length
    });

    $(element).submit(function() {
        console.log('form was submitted');
        textFields.blur();
    });
}

socket.on('send array', function(players) {
    playersArray = [];
    playersArray = players;
});

// When a new client connects, this makes sure they'll receive the latest array of players.
socket.on('update playerArray', function(players) {
    playersArray = [];
    playersArray = players;
});
{'fraction_non_alphanumeric': 0.13203753351206435, 'fraction_numerical': 0.0013404825737265416, 'mean_word_length': 3.1820728291316525, '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': '6253828', 'n_tokens_mistral': 429, 'n_tokens_neox': 423, 'n_words': 116}