<commit_before>idrinth.war = {
    from: null,
    to: null,
    element: null,
    warTO: null,
    setTO: function ( ) {
        if ( !idrinth.war.warTO ) {
            idrinth.war.warTO = window.setTimeout ( idrinth.war.getData, 1000 );
        }
    },
    getData: function () {
        var raids2Join = function () {
            var list = [ ];
            for (var input in idrinth.war.element.getElementsByTagName ( 'input' )) {
                if ( idrinth.war.element.getElementsByTagName ( 'input' )[input].checked ) {
                    list.push ( idrinth.war.element.getElementsByTagName ( 'input' )[input].getAttribute ( 'data-id' ) );
                }
            }
            if ( list.length > 0 ) {
                return list.join ( ',' );
            }
            return '_';
        };
        idrinth.core.ajax.runHome (
                "war-service/" + raids2Join () + "/" + Date.now () + "/",
                idrinth.war.updateData,
                idrinth.war.setTO,
                idrinth.war.setTO,
                idrinth.raids.knowRaids ()
                );
    },
    updateData: function ( data ) {
        var process = function ( data ) {
            var toggleGUI = function ( onOff ) {
                var toggle = onOff || false;
                var addClasses = [ ];<commit_msg>fixes #197 reduces loading frequency by a lot, especially if there's no war active<commit_after>idrinth.war = {
    from: null,
    to: null,
    element: null,
    warTO: null,
    setTO: function ( ) {
        if ( !idrinth.war.warTO ) {
            idrinth.war.warTO = window.setTimeout (
                    idrinth.war.getData,
                    ( idrinth.war.element.getAttribute ( 'class' ) ).match ( /(^|\s)idrinth-hide($|\s)/ ) !== null ?
                    30000 :
                    120000
                    );
        }
    },
    getData: function () {
        var raids2Join = function () {
            var list = [ ];
            for (var input in idrinth.war.element.getElementsByTagName ( 'input' )) {
                if ( idrinth.war.element.getElementsByTagName ( 'input' )[input].checked ) {
                    list.push ( idrinth.war.element.getElementsByTagName ( 'input' )[input].getAttribute ( 'data-id' ) );
                }
            }
            if ( list.length > 0 ) {
                return list.join ( ',' );
            }
            return '_';
        };
        idrinth.core.ajax.runHome (
                "war-service/" + raids2Join () + "/" + Date.now () + "/",
                idrinth.war.updateData,
                idrinth.war.setTO,
                idrinth.war.setTO,
                idrinth.raids.knowRaids ()
                );
    },
    updateData: function ( data ) {
        var process = function ( data ) {
            var toggleGUI = function ( onOff ) {
                var toggle = onOff || false;
                var addClasses = [ ];
{'fraction_non_alphanumeric': 0.1291095890410959, 'fraction_numerical': 0.00821917808219178, 'mean_word_length': 1.3349320543565149, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3776701', 'n_tokens_mistral': 894, 'n_tokens_neox': 847, 'n_words': 159}