<commit_before>var IPHistory = (function() {
    'use strict';

    var no_messages_error = "Your account has no Login/Logout activity.";

    function updateTable(batch) {
        IPHistoryUI.updateTable(batch);
        if (batch.length) {
            return;
        }
        $('#login-history-table tbody')
            .append($('<tr/>', {class: 'flex-tr'})
                .append($('<td/>', {colspan: 6})
                    .append($('<p/>', {
                        class: 'notice-msg center-text',
                        text: text.localize(no_messages_error)
                      })
                    )
                )
            );
    }

    function getNextChunk() {
        IPHistoryQueue.fetchNext({limit: 50});
    }

    function handler(response) {
        if (response.error && response.error.message) {
            document.getElementById('err').textContent = response.error.message;
            return;
        }

        var login_history = response.login_history;
        updateTable(login_history);
    }

    function loadChunkOnScroll() {
       $(document).scroll(function() {
            function hidableHeight(percentage) {
                var totalHidable = $(document).height() - $(window).height();
                return Math.floor(totalHidable * percentage / 100);
            }

            var pFromTop = $(document).scrollTop();
            if (pFromTop < hidableHeight(70)) {
                return;
            }
            getNextChunk();
       });
    }

    // localize, title, create tables
    // register the callback on IPHistoryQueue
    function init() {
        var titleElement = document.getElementById('login_history-title').firstElementChild;
        titleElement.textContent = text.localize(titleElement.textContent);
        IPHistoryUI.createEmptyTable().appendTo('#login_history-ws-container');
        IPHistoryQueue.register(handler);
        loadChunkOnScroll();
        getNextChunk();
    }

    function clean() {
        $('#login_history-ws-container .error-msg').text('');
        IPHistoryUI.clearTableContent();
        IPHistoryQueue.clear();
    }

    return {
        init: init,
        clean: clean,
    };
})();<commit_msg>Remove scrolling logic<commit_after>var IPHistory = (function() {
    'use strict';

    var no_messages_error = "Your account has no Login/Logout activity.";

    function updateTable(batch) {
        IPHistoryUI.updateTable(batch);
        if (batch.length) {
            return;
        }
        $('#login-history-table tbody')
            .append($('<tr/>', {class: 'flex-tr'})
                .append($('<td/>', {colspan: 6})
                    .append($('<p/>', {
                        class: 'notice-msg center-text',
                        text: text.localize(no_messages_error)
                      })
                    )
                )
            );
    }

    function handler(response) {
        if (response.error && response.error.message) {
            document.getElementById('err').textContent = response.error.message;
            return;
        }

        var login_history = response.login_history;
        updateTable(login_history);
    }

    // localize, title, create tables
    // register the callback on IPHistoryQueue
    function init() {
        var titleElement = document.getElementById('login_history-title').firstElementChild;
        titleElement.textContent = text.localize(titleElement.textContent);
        IPHistoryUI.createEmptyTable().appendTo('#login_history-ws-container');
        IPHistoryQueue.register(handler);
        IPHistoryQueue.fetchNext({limit: 50});
    }

    function clean() {
        $('#login_history-ws-container .error-msg').text('');
        IPHistoryUI.clearTableContent();
        IPHistoryQueue.clear();
    }

    return {
        init: init,
        clean: clean,
    };
})();
{'fraction_non_alphanumeric': 0.1295577967416602, 'fraction_numerical': 0.0028445823635893457, 'mean_word_length': 1.8822652757078986, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 9, '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': '2501920', 'n_tokens_mistral': 1037, 'n_tokens_neox': 997, 'n_words': 179}