<commit_before>module.exports = (function () {
    'use strict';

    // Require dependencies
    var u = require('utils/index'),
        iterate = require('_iterator');

    function setDisplay(context, mode) {
        iterate(context, function (el) {
            if (u.is.element(el)) {
                el.style.display = mode;
            }
        });
    }

    return {
        show: function () {
            setDisplay(this, 'block');
            return this;
        },
        hide: function () {
            setDisplay(this, 'none');
            return this;
        }
    };
}());<commit_msg>Comments on .show() and .hide() methods<commit_after>module.exports = (function () {
    'use strict';

    // Require dependencies
    var u = require('utils/index'),
        iterate = require('_iterator');

    /**
     * @private
     * Iterates each mached element and sets the display property.
     * @param {object} obj The DOMQuery object.
     * @param {string} value The value of "display" property.
     */
    function setDisplay(obj, value) {
        iterate(obj, function (el) {
            if (u.is.element(el)) {
                el.style.display = value;
            }
        });
    }

    return {
        show: function () {
            setDisplay(this, 'block');
            return this;
        },
        hide: function () {
            setDisplay(this, 'none');
            return this;
        }
    };
}());
{'fraction_non_alphanumeric': 0.1370911621433542, 'fraction_numerical': 0.0, 'mean_word_length': 1.6240875912408759, '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': '7450209', 'n_tokens_mistral': 404, 'n_tokens_neox': 388, 'n_words': 97}