<commit_before>/* jshint curly:true, unused:true, maxdepth:2, maxcomplexity:10, node:true, indent:4 */
(function () {
    /**
     * Initialize the container.
     *
     * @api public
     */
    function Container() {
        this.shared = {};
        this.items = {};
        this.values = {};
        this.getvals = {};
    }

    /**
     * Export the Container function.
     */
    if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
        module.exports = Container;
    } else {
        /* istanbul ignore next */
        window.Dijs = Container;
    }

    /**
     * Register a specific factory method to the container.
     *
     * @param {string} key
     * @param {Function} value
     * @param {boolean} [shared=true]
     * @api public
     */
    Container.prototype.bind = function (key, getvals, value, shared) {
        if (typeof getvals == 'function') {
            shared = value;
            value = getvals;
            getvals = [];
        }

        this.items[key] = value;
        this.shared[key] = shared !== false;
        this.getvals[key] = getvals;
    };

    /**
     * Build and return a specific factory (as designated by `key`) from the
     * container.
     *<commit_msg>Fixed code coverage exclusion statement<commit_after>/* jshint curly:true, unused:true, maxdepth:2, maxcomplexity:10, node:true, indent:4 */
(function () {
    /**
     * Initialize the container.
     *
     * @api public
     */
    function Container() {
        this.shared = {};
        this.items = {};
        this.values = {};
        this.getvals = {};
    }

    /**
     * Export the Container function.
     */
    /* istanbul ignore else */
    if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
        module.exports = Container;
    } else {
        window.Dijs = Container;
    }

    /**
     * Register a specific factory method to the container.
     *
     * @param {string} key
     * @param {Function} value
     * @param {boolean} [shared=true]
     * @api public
     */
    Container.prototype.bind = function (key, getvals, value, shared) {
        if (typeof getvals == 'function') {
            shared = value;
            value = getvals;
            getvals = [];
        }

        this.items[key] = value;
        this.shared[key] = shared !== false;
        this.getvals[key] = getvals;
    };

    /**
     * Build and return a specific factory (as designated by `key`) from the
     * container.
     *
{'fraction_non_alphanumeric': 0.1379585326953748, 'fraction_numerical': 0.003189792663476874, 'mean_word_length': 1.8674285714285714, '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': '3443847', 'n_tokens_mistral': 728, 'n_tokens_neox': 712, 'n_words': 190}