<commit_before>/**
 * @module deep-freeze
 * @description Provides function to deep freeze objects.
 * @version 1.0.9
 * @author <NAME> [<EMAIL>]
 * @copyright Copyright (c) 2015 <NAME>
 * @license MIT
 */

"use strict";

/**
 * @public
 * @function deepFreeze
 * @description Deep freeze object.
 * @param {Object} object - Object to deep freeze.
 * @returns {Object} - Deep frozen object.
 */

function deepFreeze(object) {
    if(object) {
        var property, propertyKey;
        object = Object.freeze(object);
        for (propertyKey in object) {
            if(object.hasOwnProperty(propertyKey)) {
                property = object[propertyKey];
                if (((typeof property !== "object") || !(property instanceof Object)) || Object.isFrozen(property)) {
                    continue;
                }
                deepFreeze(property);
            }
        }
    }
    return object;<commit_msg>Replace " with ' in definitions of all strings in deep-freeze.js<commit_after>/**
 * @module deep-freeze
 * @description Provides function to deep freeze objects.
 * @version 1.0.9
 * @author <NAME> [<EMAIL>]
 * @copyright Copyright (c) 2015 <NAME>
 * @license MIT
 */

'use strict';

/**
 * @public
 * @function deepFreeze
 * @description Deep freeze object.
 * @param {Object} object - Object to deep freeze.
 * @returns {Object} - Deep frozen object.
 */

function deepFreeze(object) {
    if(object) {
        var property, propertyKey;
        object = Object.freeze(object);
        for (propertyKey in object) {
            if(object.hasOwnProperty(propertyKey)) {
                property = object[propertyKey];
                if (((typeof property !== 'object') || !(property instanceof Object)) || Object.isFrozen(property)) {
                    continue;
                }
                deepFreeze(property);
            }
        }
    }
    return object;
{'fraction_non_alphanumeric': 0.12678288431061807, 'fraction_numerical': 0.007395668251452721, 'mean_word_length': 2.2711571675302245, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '66923', 'n_tokens_mistral': 536, 'n_tokens_neox': 514, 'n_words': 147}