<commit_before>(function(jQuery, undefined) {
    jQuery.widget('Midgard.midgardToolbar', {
        options: {
            display: 'full',
            statechange: function() {}
        },
    
        _create: function() {
            this.element.append(this._getMinimized().hide());
            this.element.append(this._getFull());
            
            var widget = this;
            jQuery('#midgard-bar-minimized').click(function() {
                widget.show();
                widget._trigger('statechange', null, {display: 'full'});
            });
            jQuery('#midgard-bar-hidebutton').click(function() {
                widget.hide();
                widget._trigger('statechange', null, {display: 'minimized'});
            });
            
            this._setDisplay(this.options.display);
        },
        
        _setOption: function(key, value) {
            if (key === 'display') {
                this._setDisplay(value);
            }
            this.options[key] = value;
        },
        
        _setDisplay: function(value) {
            if (value === 'minimized') {
                this.hide();
            } else {
                this.show();
            } 
        },
        
        hide: function() {
            jQuery('#midgard-bar:visible', this.element).slideToggle();
            jQuery('#midgard-bar-minimized:hidden', this.element).slideToggle();
        },
        
        show: function() {
            jQuery('#midgard-bar-minimized:visible', this.element).slideToggle();
            jQuery('#midgard-bar:hidden', this.element).slideToggle();
        },
        
        _getMinimized: function() {
            return jQuery('<a id="midgard-bar-minimized" class="midgard-create ui-widget-showbut"></a>');
        },
        
        _getFull: function() {
            return jQuery('<div class="midgard-create" id="midgard-bar"><div class="ui-widget-content"><div class="toolbarcontent"><div class="midgard-logo-button"><a id="midgard-bar-hidebutton" class="ui-widget-hidebut"></a></div><div class="toolbarcontent-left"></div><div class="toolbarcontent-center"></div><div class="toolbarcontent-right"></div></div></div>');
        }
    });
})(jQuery);<commit_msg>nicer animation of toolbar<commit_after>(function(jQuery, undefined) {
    jQuery.widget('Midgard.midgardToolbar', {
        options: {
            display: 'full',
            statechange: function() {}
        },
    
        _create: function() {
            this.element.append(this._getMinimized().hide());
            this.element.append(this._getFull());
            
            var widget = this;
            jQuery('#midgard-bar-minimized').click(function() {
                widget.show();
                widget._trigger('statechange', null, {display: 'full'});
            });
            jQuery('#midgard-bar-hidebutton').click(function() {
                widget.hide();
                widget._trigger('statechange', null, {display: 'minimized'});
            });
            
            this._setDisplay(this.options.display);
        },
        
        _setOption: function(key, value) {
            if (key === 'display') {
                this._setDisplay(value);
            }
            this.options[key] = value;
        },
        
        _setDisplay: function(value) {
            if (value === 'minimized') {
                this.hide();
            } else {
                this.show();
            } 
        },
        
        hide: function() {
            jQuery('#midgard-bar-minimized:hidden', this.element).show();
            jQuery('#midgard-bar:visible', this.element).slideToggle();
        },
        
        show: function() {
            var minimizedToolbar = jQuery('#midgard-bar-minimized:visible', this.element);
            jQuery('#midgard-bar:hidden', this.element).slideToggle(null, function() {
                minimizedToolbar.hide();
            });
        },
        
        _getMinimized: function() {
            return jQuery('<a id="midgard-bar-minimized" class="midgard-create ui-widget-showbut"></a>');
        },
        
        _getFull: function() {
            return jQuery('<div class="midgard-create" id="midgard-bar"><div class="ui-widget-content"><div class="toolbarcontent"><div class="midgard-logo-button"><a id="midgard-bar-hidebutton" class="ui-widget-hidebut"></a></div><div class="toolbarcontent-left"></div><div class="toolbarcontent-center"></div><div class="toolbarcontent-right"></div></div></div>');
        }
    });
})(jQuery);
{'fraction_non_alphanumeric': 0.1625604927408711, 'fraction_numerical': 0.0, 'mean_word_length': 1.857950974230044, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '6798526', 'n_tokens_mistral': 1246, 'n_tokens_neox': 1199, 'n_words': 164}