<commit_before>(function($) {

$.widget("mapbender.mbAboutDialog", {
    options: {},

    dlg: null,
    elementUrl: null,

    _create: function() {
        var self = this;
        var me = $(this.element);
        this.elementUrl = Mapbender.configuration.application.urls.element + '/' + me.attr('id') + '/';
        me.button();
        me.click(function() { self._onClick.call(self); });
    },

    _onClick: function() {
        if(!this.dlg) {
            this._initDialog();
        }
        this.dlg.dialog('open');
    },

    _initDialog: function() {
        var self = this;
        if(this.dlg === null) {
            this.dlg = $('<div></div>')
                .attr('id', 'mb-about-dialog')
                .appendTo($('body'))
                .dialog({
                    title: 'About Mapbender',
                    autoOpen: false,
                    modal: true
                });
                $.get(this.elementUrl + 'about', function(data) {
                    self.dlg.html(data);
                    self.dlg.dialog('open');
                });
        } else {
            this.dlg.dialog('open');
        }
    }
});

})(jQuery);<commit_msg>source code formated<commit_after>(function($) {

    $.widget("mapbender.mbAboutDialog", {
        options: {},

        dlg: null,
        elementUrl: null,

        _create: function() {
            var self = this;
            var me = $(this.element);
            this.elementUrl = Mapbender.configuration.application.urls.element + '/' + me.attr('id') + '/';
            me.button();
            me.click(function() {
                self._onClick.call(self);
            });
        },

        _onClick: function() {
            if(!this.dlg) {
                this._initDialog();
            }
            this.dlg.dialog('open');
        },

        _initDialog: function() {
            var self = this;
            if(this.dlg === null) {
                this.dlg = $('<div></div>')
                .attr('id', 'mb-about-dialog')
                .appendTo($('body'))
                .dialog({
                    title: 'About Mapbender',
                    autoOpen: false,
                    modal: true
                });
                $.get(this.elementUrl + 'about', function(data) {
                    self.dlg.html(data);
                    self.dlg.dialog('open');
                });
            } else {
                this.dlg.dialog('open');
            }
        }
    });

})(jQuery);
{'fraction_non_alphanumeric': 0.16019223067681218, 'fraction_numerical': 0.0, 'mean_word_length': 1.2363473589973142, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3874821', 'n_tokens_mistral': 724, 'n_tokens_neox': 688, 'n_words': 109}