<commit_before>var app = angular.module('AngularBIRT');

app.service('angularBirtUiInitService', function($http, $q) {
    var init = function() {
        $(document).ready(function() {
            window.dialogOpen   = $('#dialogOpen').dialog({autoOpen: false, zIndex: 10000});
            window.dialogSave   = $('#dialogSave').dialog({autoOpen: false, zIndex: 10000});
            window.dialogHelp   = $('#dialogHelp').dialog({autoOpen: false, zIndex: 10000});
            window.savedFilters = $('#dialogSavedFilters').dialog({autoOpen: false, zIndex: 10000, maxHeight: 450, minHeight: 450});
            window.savedFiltersGroup = $('#savedFiltersOutput').accordion();
            paginationConstructor();
        });
    }

    var moveForward = function() {

    }

    function paginationConstructor() {
        window.moveForwardOne = function() {
            var next = myViewer.getCurrentPageNum() + 1;
            if(next <= myViewer.getTotalPageCount()) {
                $('#pageN').html(next);
                myViewer.gotoPage(next);
            }
        }

        window.moveBackwardOne = function() {
            var prev = myViewer.getCurrentPageNum() - 1;
            if(prev > 0) {
                myViewer.gotoPage(prev);
                $('#pageN').html(prev);
            }
        }

        window.moveForwardAll = function() {
            myViewer.gotoPage(myViewer.getTotalPageCount());
        }

        window.moveBackwardAll = function() {
            myViewer.gotoPage(1);
        }
    }

    this.doInit = function() {
        init();
    }
});<commit_msg>Removed old pagination code<commit_after>var app = angular.module('AngularBIRT');

app.service('angularBirtUiInitService', function($http, $q) {
    var init = function() {
        $(document).ready(function() {
            window.dialogOpen   = $('#dialogOpen').dialog({autoOpen: false, zIndex: 10000});
            window.dialogSave   = $('#dialogSave').dialog({autoOpen: false, zIndex: 10000});
            window.dialogHelp   = $('#dialogHelp').dialog({autoOpen: false, zIndex: 10000});
            window.savedFilters = $('#dialogSavedFilters').dialog({autoOpen: false, zIndex: 10000, maxHeight: 450, minHeight: 450});
            window.savedFiltersGroup = $('#savedFiltersOutput').accordion();
        });
    };

    this.doInit = function() {
        init();
    }
});
{'fraction_non_alphanumeric': 0.1552087726697596, 'fraction_numerical': 0.02361872627583298, 'mean_word_length': 2.447674418604651, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '5630369', 'n_tokens_mistral': 712, 'n_tokens_neox': 652, 'n_words': 113}