<commit_before>(function(window, owl) {
    owl.util = {
        clone: function(object) {
            var that = this,
                copy;

            if (null === object || typeof object !== 'object') {
                return object;
            }

            if (object instanceof Date) {
                copy = new Date();
                copy.setTime(object.getTime());
                return copy;
            }

            if (object instanceof Array) {
                copy = [];
                object.forEach(function(element, index) {
                    copy[index] = that.clone(element);
                });
                return copy;
            }

            if (object instanceof Object) {
                copy = {};
                Object.keys(object).forEach(function(key) {
                    copy[key] = that.clone(object[key]);
                });
                return copy;
            }<commit_msg>Add recursive kay to owl.util.clone.<commit_after>(function(window, owl) {
    owl.util = {
        clone: function(object, recursive) {
            var that = this,
                copy;

            if (null === object || typeof object !== 'object') {
                return object;
            }

            if (object instanceof Date) {
                copy = new Date();
                copy.setTime(object.getTime());
                return copy;
            }

            if (object instanceof Array) {
                copy = [];
                object.forEach(function(element, index) {
                    copy[index] = that.clone(element);
                });
                return copy;
            }

            if (object instanceof Object) {
                copy = {};
                Object.keys(object).forEach(function(key) {
                    copy[key] = recursive ? that.clone(object[key], recursive) : object[key];
                });
                return copy;
            }
{'fraction_non_alphanumeric': 0.1111111111111111, 'fraction_numerical': 0.0, 'mean_word_length': 1.0997830802603037, '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': '2433861', 'n_tokens_mistral': 482, 'n_tokens_neox': 435, 'n_words': 104}