<commit_before>var RmodulesView = function () {
    this.droppable_divs = {
        "categorical": ["divGroupByVariable", "divDependentVariable", "divIndependentVariable", "divCategoryVariable", "divCensoringVariable"],
        "numerical": ["divTimeVariable"]
    };
}

RmodulesView.prototype.clear_high_dimensional_input = function (div) {
    //Clear the drag and drop div.
    var qc = Ext.get(div);

    for (var i = qc.dom.childNodes.length - 1; i >= 0; i--) {
        var child = qc.dom.childNodes[i];
        qc.dom.removeChild(child);
    }
    clearHighDimDataSelections(div);
    clearSummaryDisplay(div);
}

RmodulesView.prototype.register_drag_drop = function () {

    /**
     * Register div as drop zone
     * @param divs
     * @private
     */
    var _register_drop_zone = function (divs) {
        for (var i = 0, maxLength = divs.length; i < maxLength; i++) {
            var _el, _dtgI;

            if (_el = Ext.get(divs[i])) {
                _dtgI = new Ext.dd.DropTarget(_el, {ddGroup: 'makeQuery'});
                if (key == 'categorical') {
                    _dtgI.notifyDrop = dropOntoCategorySelection;
                } else if (key == 'numerical') {
                    _dtgI.notifyDrop = dropNumericOntoCategorySelection;
                }
            }
        }
    }<commit_msg>To clean high dimensional params<commit_after>var RmodulesView = function () {
    this.droppable_divs = {
        "categorical": ["divGroupByVariable", "divDependentVariable", "divIndependentVariable", "divCategoryVariable", "divCensoringVariable"],
        "numerical": ["divTimeVariable"]
    };
    this.independent_hidden_divs = ["independentVarDataType", "independentPathway"]
    this.dependent_hidden_divs = ["dependentVarDataType", "dependentPathway"];
    this.group_hidden_divs =["groupByVarDataType", "groupByPathway"]
}

RmodulesView.prototype.clear_high_dimensional_input = function (div) {
    //Clear the drag and drop div.
    var qc = Ext.get(div);

    for (var i = qc.dom.childNodes.length - 1; i >= 0; i--) {
        var child = qc.dom.childNodes[i];
        qc.dom.removeChild(child);
    }
    clearHighDimDataSelections(div);
    clearSummaryDisplay(div);

    var _cleanHiddenDivs = function (divArr) {
        for (var i = 0; i < divArr.length; i++) {
            if ( document.getElementById(divArr[i])) {
                document.getElementById(divArr[i]).value = "";
            }
        }
    }

    if (div == 'divDependentVariable' || div == 'divCategoryVariable') {
        _cleanHiddenDivs(this.dependent_hidden_divs);
    } else if (div == 'divIndependentVariable') {
        _cleanHiddenDivs(this.independent_hidden_divs);
    } else if (div == 'divGroupByVariable') {
        _cleanHiddenDivs(this.group_hidden_divs);
    }
}

RmodulesView.prototype.register_drag_drop = function () {

    /**
     * Register div as drop zone
     * @param divs
     * @private
     */
    var _register_drop_zone = function (divs) {
        for (var i = 0, maxLength = divs.length; i < maxLength; i++) {
            var _el, _dtgI;

            if (_el = Ext.get(divs[i])) {
                _dtgI = new Ext.dd.DropTarget(_el, {ddGroup: 'makeQuery'});
                if (key == 'categorical') {
                    _dtgI.notifyDrop = dropOntoCategorySelection;
                } else if (key == 'numerical') {
                    _dtgI.notifyDrop = dropNumericOntoCategorySelection;
                }
            }
        }
    }
{'fraction_non_alphanumeric': 0.12640368557443132, 'fraction_numerical': 0.0020155485171321624, 'mean_word_length': 2.409224730127576, 'pattern_counts': {'":': 4, '<': 6, '<?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': '5079734', 'n_tokens_mistral': 1105, 'n_tokens_neox': 1065, 'n_words': 209}