<commit_before>define(["js/core/Window"], function (Window) {

    return Window.inherit("js.ui.DialogClass", {
        $defaultContentName: "body",

        defaults: {
            title: '',
            closable: true,
            size: "normal",
            tabindex: -1,
            componentClass: "dialog {size}"
        },

        $keyHandlers: {
            27: "closeDialog",
            13: "confirmDialog"
        },

        showModal: function () {
            if (!this._keyDownHandler) {
                var self = this;
                this._keyDownHandler = function (e) {

                    if (e.shiftKey || e.metaKey || e.ctrlKey || e.altKey) {
                        return;
                    }

                    if(e.target !== self.$el){
                        return;
                    }

                    var keyHandlerName = self.$keyHandlers[e.keyCode];
                    if (keyHandlerName && self[keyHandlerName]) {<commit_msg>render dialog name as class<commit_after>define(["js/core/Window"], function (Window) {

    return Window.inherit("js.ui.DialogClass", {
        $defaultContentName: "body",

        defaults: {
            title: '',
            closable: true,
            size: "normal",
            tabindex: -1,
            componentClass: "dialog {size} {name}",
            name: ""
        },

        $keyHandlers: {
            27: "closeDialog",
            13: "confirmDialog"
        },

        showModal: function () {
            if (!this._keyDownHandler) {
                var self = this;
                this._keyDownHandler = function (e) {

                    if (e.shiftKey || e.metaKey || e.ctrlKey || e.altKey) {
                        return;
                    }

                    if(e.target !== self.$el){
                        return;
                    }

                    var keyHandlerName = self.$keyHandlers[e.keyCode];
                    if (keyHandlerName && self[keyHandlerName]) {
{'fraction_non_alphanumeric': 0.12066365007541478, 'fraction_numerical': 0.005027652086475616, 'mean_word_length': 1.206208425720621, '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': '2184012', 'n_tokens_mistral': 535, 'n_tokens_neox': 496, 'n_words': 102}