<commit_before>/**
     @namespace Simple effects
    */

IndicoUI.Effect = {

    disable: function(element){
        element.each(function(elem) {
            if (exists(element.dom.disabled)) {
                element.dom.disabled = true;
            }
            element.dom.style.color = 'gray';
            IndicoUI.Effect.disable(elem);
        });
    },
    
    /**
     * Simple function to enable or disable a text field.
     * FF changes the background color, but not IE.
     * This function changes to background color to imitate FF's one.
     * @params {XElement} element the text field to enable or disable
     * @params {Boolean} enableDisable true: enable, false: disable
     */
    enableDisableTextField: function(element, enableDisable) {
        element.dom.disabled = !enableDisable;
        if (Browser.IE) {
            if (enableDisable) {
                element.dom.style.backgroundColor = 'white';
            } else {
                element.dom.style.backgroundColor = '#ece7e2';
            }
        }
    },

    frame: function(element){
        element.setStyle('overflow', 'auto');
        element.setStyle('border', '1px solid red');
    },

    /**
        * Simple CSS manipulation that sets the element's 'display' property to a new style
        * @param {XElement} element the target element
        * @param {string} newStyle the new display style, e.g.: "inline", "block", "table-row".
        *                 If not existant, will be set to '', which usually restores the default style of the element.
        */
    appear: function(element, newStyle){<commit_msg>[MINOR] enableDisableTextField was interferring with ParameterManager<commit_after>/**
     @namespace Simple effects
    */

IndicoUI.Effect = {

    disable: function(element){
        element.each(function(elem) {
            if (exists(element.dom.disabled)) {
                element.dom.disabled = true;
            }
            element.dom.style.color = 'gray';
            IndicoUI.Effect.disable(elem);
        });
    },
    
    /**
     * Simple function to enable or disable a text field.
     * FF changes the background color, but not IE.
     * This function changes to background color to imitate FF's one.
     * @params {XElement} element the text field to enable or disable
     * @params {Boolean} enableDisable true: enable, false: disable
     */
    enableDisableTextField: function(element, enableDisable) {
        element.dom.disabled = !enableDisable;
        if (Browser.IE) {
            if (enableDisable) {
                element.dom.style.backgroundColor = '';
            } else {
                element.dom.style.backgroundColor = '#ece7e2';
            }
        }
    },

    frame: function(element){
        element.setStyle('overflow', 'auto');
        element.setStyle('border', '1px solid red');
    },

    /**
        * Simple CSS manipulation that sets the element's 'display' property to a new style
        * @param {XElement} element the target element
        * @param {string} newStyle the new display style, e.g.: "inline", "block", "table-row".
        *                 If not existant, will be set to '', which usually restores the default style of the element.
        */
    appear: function(element, newStyle){
{'fraction_non_alphanumeric': 0.10884767406506538, 'fraction_numerical': 0.0018242626938279112, 'mean_word_length': 2.0921052631578947, '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': '1199652', 'n_tokens_mistral': 870, 'n_tokens_neox': 845, 'n_words': 263}