<commit_before>﻿(function($, pubsub, elements, settings, util) {
    var wireListeners = function() {
            $.draggable({
                handelScope: elements.holder().find('.glimpse-resizer'),
                opacityScope: elements.holder(),
                resizeScope: elements.holder(),
                dragged: shellResized
            }); 
        },
        shellResized = function (args, height) {
            settings.local('height', height);

            elements.pageSpacer().height(height);
            elements.panels().height(height - 52);
        },
        panelRendered = function (args) {
            elements.panel(args.key).height(height - 52);
        };
    
    pubsub.subscribe('action.panel.rendered', panelRendered);
    pubsub.subscribe('trigger.shell.listener.subscriptions', wireListeners);
})(jQueryGlimpse, glimpse.pubsub, glimpse.elements, glimpse.settings, glimpse.util);<commit_msg>Fixed problem where the resizer that listens for when panels are being created doesn't get the current height.<commit_after>﻿(function($, pubsub, elements, settings, util) {
    var wireListeners = function() {
            $.draggable({
                handelScope: elements.holder().find('.glimpse-resizer'),
                opacityScope: elements.holder(),
                resizeScope: elements.holder(),
                dragged: shellResized
            }); 
        },
        shellResized = function (args, height) {
            settings.local('height', height);

            elements.pageSpacer().height(height);
            elements.panels().height(height - 52);
        },
        panelRendered = function (args) {
            var height = settings.local('height');
            
            elements.panel(args.key).height(height - 52);
        };
    
    pubsub.subscribe('action.panel.rendered', panelRendered);
    pubsub.subscribe('trigger.shell.listener.subscriptions', wireListeners);
})(jQueryGlimpse, glimpse.pubsub, glimpse.elements, glimpse.settings, glimpse.util);
{'fraction_non_alphanumeric': 0.1290483308420528, 'fraction_numerical': 0.003986048829098156, 'mean_word_length': 2.352253756260434, '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': '3806190', 'n_tokens_mistral': 523, 'n_tokens_neox': 507, 'n_words': 99}