<commit_before>(function () {

    var status= document.getElementById('status');

        window.WebSocket = window.WebSocket || window.MozWebSocket;

        var connection = new WebSocket('ws://192.168.0.123:1337');

        if (!localStorage._id) {
            localStorage._id = Date.now();
        }

        if (!window.WebSocket) {
            status.innerHTML = 'WebSocket not supported';
            return;
        }

        connection.onopen = function () {
            status.innerHTML = 'You are in control';
        };

        connection.onerror = function (error) {
            status.innerHTML = 'Connection error! Server down?';
        };

        gyro.startTracking(function (coords) {
            coords._id = localStorage._id;

            for (var coord in coords) {
                coords[coord] = parseFloat(coords[coord]).toFixed(3);
            }

            connection.send(JSON.stringify(coords));
        });
})();<commit_msg>Excluded id and type<commit_after>(function () {

    var status= document.getElementById('status');

        window.WebSocket = window.WebSocket || window.MozWebSocket;

        var connection = new WebSocket('ws://192.168.0.123:1337');

        if (!localStorage._id) {
            localStorage._id = Date.now();
        }

        if (!window.WebSocket) {
            status.innerHTML = 'WebSocket not supported';
            return;
        }

        connection.onopen = function () {
            status.innerHTML = 'You are in control';
        };

        connection.onerror = function (error) {
            status.innerHTML = 'Connection error! Server down?';
        };

        gyro.startTracking(function (coords) {
            coords._id = localStorage._id;

            for (var coord in coords) {
                if (coord !== "_id" && coord !== "type") {
                    coords[coord] = parseFloat(coords[coord]).toFixed(3);
                }
            }

            connection.send(JSON.stringify(coords));
        });
})();
{'fraction_non_alphanumeric': 0.13060817547357925, 'fraction_numerical': 0.014955134596211365, 'mean_word_length': 1.803072625698324, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6368922', 'n_tokens_mistral': 566, 'n_tokens_neox': 525, 'n_words': 106}