<commit_before>App.Controllers.ModelHistoryIndexController = Frontend.AppController.extend({
    startup: function() {
        this.$('.model-history form').on('submit', this._onAddComment.bind(this));
        this.$('.pager .prev:not(.disabled) a').click(this._onPaginatorClick.bind(this));
        this.$('.pager .next:not(.disabled) a').click(this._onPaginatorClick.bind(this));        
        
        // Toggle view
        $('.model-history-list').toggle();
        $('.model-history-toggle-btn').click(function(e) {
            e.preventDefault();
            $('.model-history-list').toggle();
        }.bind(this));
    },
    _onAddComment: function(e) {
        e.preventDefault();

        var url = {
            plugin: 'model_history',
            controller: 'model_history',<commit_msg>only hide model history if hide button is present.<commit_after>App.Controllers.ModelHistoryIndexController = Frontend.AppController.extend({
    startup: function() {
        console.log($('.model-history form'));
        this.$('.model-history form').on('submit', this._onAddComment.bind(this));
        this.$('.pager .prev:not(.disabled) a').click(this._onPaginatorClick.bind(this));
        this.$('.pager .next:not(.disabled) a').click(this._onPaginatorClick.bind(this));
        
        // Toggle view
        if ($('.model-history-toggle-btn').length) {
            $('.model-history-list').toggle();
            $('.model-history-toggle-btn').click(function(e) {
                e.preventDefault();
                $('.model-history-list').toggle();
            }.bind(this));
        }
    },
    _onAddComment: function(e) {
        e.preventDefault();

        var url = {
            plugin: 'model_history',
            controller: 'ModelHistory',
{'fraction_non_alphanumeric': 0.17667044167610418, 'fraction_numerical': 0.0, 'mean_word_length': 2.4244186046511627, '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': '3434215', 'n_tokens_mistral': 498, 'n_tokens_neox': 499, 'n_words': 69}