<commit_before>'use strict';

(function ($) {

    var started = false;

    window.app = {

        initManagement: function () {
            fillMinutes();
            fillSeconds();
            subscribe('websocket');
            $('#set').on('click', function () {
                set();
            });
            $('#startstop').on('click', function () {
                startStop();
            });
            $('#reset').on('click', function () {
                reset();
            });
        },
        initClient: function () {
            subscribe('websocket');
        }
    };
<commit_msg>change default transport to long-polling<commit_after>'use strict';

(function ($) {

    var started = false;
    var defaultTransport = 'long-polling';

    window.app = {

        initManagement: function () {
            fillMinutes();
            fillSeconds();
            subscribe(defaultTransport);
            $('#set').on('click', function () {
                set();
            });
            $('#startstop').on('click', function () {
                startStop();
            });
            $('#reset').on('click', function () {
                reset();
            });
        },
        initClient: function () {
            subscribe(defaultTransport);
        }
    };

{'fraction_non_alphanumeric': 0.16358024691358025, 'fraction_numerical': 0.0, 'mean_word_length': 1.379816513761468, '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': '110964', 'n_tokens_mistral': 322, 'n_tokens_neox': 309, 'n_words': 55}