<commit_before>RB.dialogs = {}

/*
 * Base dialog class. This is common to all dialogs and sets the default
 * properties, adds buttons, and sets up key bindings.
 */
RB.dialogs.BaseDialog = function(config) {
    this.buttonlist = config.buttons;
    config.buttons = null;

    YAHOO.ext.util.Config.apply(this, config);

    var dh = YAHOO.ext.DomHelper;

	/* The actual dialog element. By default, this is hidden. */
    this.el = dh.append(document.body, {
        tag: 'div',
        style: 'visibility: hidden; position: absolute; top: 0px;',
        cls: config.dialogClass,
        children: [{
            tag: 'div',
            cls: 'ydlg-hd',
            html: this.title
        }]
    }, true);

	/* The main content of the dialog */
    this.bodyEl = dh.append(this.el.dom, {
        tag: 'div',
        cls: 'ydlg-bd'
    }, true);

    RB.dialogs.BaseDialog.superclass.constructor.call(this, this.el, {
        shadow: true,
        width: this.width || 350,
        height: this.height || 200,
        minWidth: this.minWidth || 350,
        minHeight: this.minHeight || 200,
        proxyDrag: true
    });

    this.addKeyListener(27, this.hide, this);

	this.buttons = [];

    if (this.buttonlist) {
        for (var i = this.buttonlist.length - 1; i >= 0; i--) {
            var button = this.addButton(this.buttonlist[i].text,
				onButtonPressed.createDelegate(this, [this.buttonlist[i].cb]));
<commit_msg>Small fixy.<commit_after>RB.dialogs = {}

/*
 * Base dialog class. This is common to all dialogs and sets the default
 * properties, adds buttons, and sets up key bindings.
 */
RB.dialogs.BaseDialog = function(config) {
    this.buttonlist = config.buttons;
    config.buttons = null;

    YAHOO.ext.util.Config.apply(this, config);

    var dh = YAHOO.ext.DomHelper;

	/* The actual dialog element. By default, this is hidden. */
    this.el = dh.append(document.body, {
        tag: 'div',
        style: 'visibility: hidden; position: absolute; top: 0px;',
        cls: config.dialogClass,
        children: [{
            tag: 'div',
            cls: 'ydlg-hd',
            html: this.title
        }]
    }, true);

	/* The main content of the dialog */
    this.bodyEl = dh.append(this.el.dom, {
        tag: 'div',
        cls: 'ydlg-bd'
    }, true);

    RB.dialogs.BaseDialog.superclass.constructor.call(this, this.el, {
        shadow: true,
        width: this.width || 350,
        height: this.height || 200,
        minWidth: this.minWidth || 350,
        minHeight: this.minHeight || 200,
        proxyDrag: true
    });

    this.addKeyListener(27, this.hide, this);

	this.buttons = [];

    if (this.buttonlist) {
        for (var i = this.buttonlist.length - 1; i >= 0; i--) {
            var button = this.addButton(this.buttonlist[i].text,
				this.onButtonPressed.createDelegate(this,
				                                    [this.buttonlist[i].cb]));

{'fraction_non_alphanumeric': 0.1396628826969384, 'fraction_numerical': 0.011695906432748537, 'mean_word_length': 2.1816192560175054, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2733806', 'n_tokens_mistral': 981, 'n_tokens_neox': 905, 'n_words': 227}