<commit_before>define(['js/html/HtmlElement'], function(HtmlElement) {

    return HtmlElement.inherit('js.core.Window', {

        defaults: {
            tagName: 'div',
            componentClass: 'window'
        },

        /***
         * shows the window by adding it to the WindowManager
         * @param {Function} [callback]
         * @param {Boolean} [modal=false]
         *
         * @see js.core.WindowManager
         */
        show: function(callback, modal) {
            this.$stage.$windowManager.show(this, callback, modal);
        },

        showModal: function(callback) {
            this.show(callback, true);
        },

        close: function(state) {
            this.trigger('close', state);
        }

    });

});<commit_msg>window is now a View<commit_after>define(['js/ui/View'], function(View) {

    return View.inherit('js.core.Window', {

        defaults: {
            tagName: 'div',
            componentClass: 'window'
        },

        /***
         * shows the window by adding it to the WindowManager
         * @param {Function} [callback]
         * @param {Boolean} [modal=false]
         *
         * @see js.core.WindowManager
         */
        show: function(callback, modal) {
            this.$stage.$windowManager.show(this, callback, modal);
        },

        showModal: function(callback) {
            this.show(callback, true);
        },

        close: function(state) {
            this.trigger('close', state);
        }

    });

});
{'fraction_non_alphanumeric': 0.13793103448275862, 'fraction_numerical': 0.0, 'mean_word_length': 1.7386569872958257, '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': '1500190', 'n_tokens_mistral': 419, 'n_tokens_neox': 406, 'n_words': 84}