<commit_before>/**
 * concrete5 wrapper for jQuery UI
 */
$.widget("concrete.dialog", $.ui.dialog, {
    _allowInteraction: function(event) {
        return $.ui.dialog.prototype._allowInteraction.call(this, event)
            ? true
            : !!$( event.target).closest('.ccm-interaction-dialog').length;
    }
});

$.widget.bridge( "jqdialog", $.concrete.dialog );
// wrap our old dialog function in the new dialog() function.
jQuery.fn.dialog = function() {
    // Pass this over to jQuery UI Dialog in a few circumstances
    if (arguments.length > 0) {
        $(this).jqdialog(arguments[0], arguments[1], arguments[2]);
        return;<commit_msg>use built in way to call extended widget<commit_after>/**
 * concrete5 wrapper for jQuery UI
 */
$.widget("concrete.dialog", $.ui.dialog, {
    _allowInteraction: function(event) {
        return !!$( event.target).closest('.ccm-interaction-dialog').length || this._super(event);
    }
});

$.widget.bridge( "jqdialog", $.concrete.dialog );
// wrap our old dialog function in the new dialog() function.
jQuery.fn.dialog = function() {
    // Pass this over to jQuery UI Dialog in a few circumstances
    if (arguments.length > 0) {
        $(this).jqdialog(arguments[0], arguments[1], arguments[2]);
        return;
{'fraction_non_alphanumeric': 0.15566037735849056, 'fraction_numerical': 0.007861635220125786, 'mean_word_length': 3.2861952861952863, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '356068', 'n_tokens_mistral': 370, 'n_tokens_neox': 362, 'n_words': 100}