<commit_before>function preparePagination(str) {
    $('.' + str).on('click', function(e) {
        e.preventDefault();
        var re = /=([0-9]+)/;
        var found = e.target.href.match(re);
        $.post('messages/paginate', { page: found[1], type: str });
    });
}

function test() {
    $.each(['sent', 'received'], function(i, v) {
        preparePagination(v);
    });
}

$(document).ready(test);
$(document).on('page:load', test);

$(document).ready(function() {
    $('#refresh-btn').on('click', function() {
        var btn = $(this).button('loading');

        setTimeout(function() {
            btn.button('reset');<commit_msg>Refresh button shouldn't go to #refresh hook.<commit_after>function preparePagination(str) {
    $('.' + str).on('click', function(e) {
        e.preventDefault();
        var re = /=([0-9]+)/;
        var found = e.target.href.match(re);
        $.post('messages/paginate', { page: found[1], type: str });
    });
}

function test() {
    $.each(['sent', 'received'], function(i, v) {
        preparePagination(v);
    });
}

$(document).ready(test);
$(document).on('page:load', test);

$(document).ready(function() {
    $('#refresh-btn').on('click', function(e) {
        e.preventDefault();
        var btn = $(this).button('loading');

        setTimeout(function() {
            btn.button('reset');
{'fraction_non_alphanumeric': 0.22609340252038548, 'fraction_numerical': 0.004447739065974796, 'mean_word_length': 2.9473684210526314, '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': '6418679', 'n_tokens_mistral': 426, 'n_tokens_neox': 431, 'n_words': 74}