<commit_before>/*!
 * @license deepcopy.js Copyright(c) 2013 sasa+1
 * https://github.com/sasaplus1/deepcopy.js
 * Released under the MIT license.
 */


/**
 * export to AMD/CommonJS/global.
 *
 * @param {Object} global global object.
 * @param {Function} factory factory method.
 */
(function(global, factory) {
  'use strict';

  if (typeof define === 'function' && !!define.amd) {
    define(factory);
  } else if (typeof exports === 'object') {
    module.exports = factory();
  } else {
    global.deepcopy = factory();
  }
}(this, function() {
  'use strict';

  var isNode, util, isBuffer, getKeys, getSymbols, indexOfArray;

  // is node.js/io.js?
  isNode = (typeof process !== 'undefined' && typeof require !== 'undefined');

  // fallback util module for browser.
  util = (isNode) ? require('util') : (function() {
    function isArray(value) {
      return (typeof value === 'object' &&
          Object.prototype.toString.call(value) === '[object Array]');
    }

    function isDate(value) {
      return (typeof value === 'object' &&
          Object.prototype.toString.call(value) === '[object Date]');
    }

    function isRegExp(value) {
      return (typeof value === 'object' &&
          Object.prototype.toString.call(value) === '[object RegExp]');
    }

    function isSymbol(value) {
      return (typeof value === 'symbol');
    }

    return {
      isArray: (typeof Array.isArray === 'function') ?
          function(obj) {
            return Array.isArray(obj);
          } : isArray,
      isDate: isDate,
      isRegExp: isRegExp,
      isSymbol: (typeof Symbol === 'function') ?
          isSymbol :
          function() {
            // always return false when Symbol is not supported.
            return false;
          }
    };
  }());

  // fallback Buffer.isBuffer
  isBuffer = (isNode) ?
      function(obj) {
        return Buffer.isBuffer(obj);
      } :
      function() {
        // if browser, always return false
        return false;
      };

  // fallback Object.keys for old browsers.
  getKeys = (typeof Object.keys === 'function') ?
      function(obj) {
        return Object.keys(obj);
      } :
      function(obj) {
        var keys = [],
            key;

        if (obj === null || typeof obj !== 'object') {
          throw new TypeError('obj is not an Object');
        }

        for (key in obj) {
          obj.hasOwnProperty(key) && keys.push(key);
        }

        return keys;
      };

  // get symbols in object.
  getSymbols = (typeof Symbol === 'function') ?
      function(obj) {
        return Object.getOwnPropertySymbols(obj);
      } :
      function() {
        // always return empty array when Symbol is not supported.
        return [];
      };

  // fallback Array#indexOf for old browsers.
  indexOfArray = (typeof Array.prototype.indexOf === 'function') ?
      function(array, searchElement) {
        return array.indexOf(searchElement);
      } :
      function(array, searchElement) {
        var i, len;

        if (!util.isArray(array)) {
          throw new TypeError('array is not an Array');
        }

        for (i = 0, len = array.length; i < len; ++i) {
          if (array[i] === searchElement) {
            return i;
          }
        }

        return -1;
      };
<commit_msg>fixed check target<commit_after>/*!
 * @license deepcopy.js Copyright(c) 2013 sasa+1
 * https://github.com/sasaplus1/deepcopy.js
 * Released under the MIT license.
 */


/**
 * export to AMD/CommonJS/global.
 *
 * @param {Object} global global object.
 * @param {Function} factory factory method.
 */
(function(global, factory) {
  'use strict';

  if (typeof define === 'function' && !!define.amd) {
    define(factory);
  } else if (typeof exports === 'object') {
    module.exports = factory();
  } else {
    global.deepcopy = factory();
  }
}(this, function() {
  'use strict';

  var isNode, util, isBuffer, getKeys, getSymbols, indexOfArray;

  // is node.js/io.js?
  isNode = (typeof process !== 'undefined' && typeof require !== 'undefined');

  // fallback util module for browser.
  util = (isNode) ? require('util') : (function() {
    function isArray(value) {
      return (typeof value === 'object' &&
          Object.prototype.toString.call(value) === '[object Array]');
    }

    function isDate(value) {
      return (typeof value === 'object' &&
          Object.prototype.toString.call(value) === '[object Date]');
    }

    function isRegExp(value) {
      return (typeof value === 'object' &&
          Object.prototype.toString.call(value) === '[object RegExp]');
    }

    function isSymbol(value) {
      return (typeof value === 'symbol');
    }

    return {
      isArray: (typeof Array.isArray === 'function') ?
          function(obj) {
            return Array.isArray(obj);
          } : isArray,
      isDate: isDate,
      isRegExp: isRegExp,
      isSymbol: (typeof Symbol === 'function') ?
          isSymbol :
          function() {
            // always return false when Symbol is not supported.
            return false;
          }
    };
  }());

  // fallback Buffer.isBuffer
  isBuffer = (isNode) ?
      function(obj) {
        return Buffer.isBuffer(obj);
      } :
      function() {
        // if browser, always return false
        return false;
      };

  // fallback Object.keys for old browsers.
  getKeys = (typeof Object.keys === 'function') ?
      function(obj) {
        return Object.keys(obj);
      } :
      function(obj) {
        var keys = [],
            key;

        if (obj === null || typeof obj !== 'object') {
          throw new TypeError('obj is not an Object');
        }

        for (key in obj) {
          obj.hasOwnProperty(key) && keys.push(key);
        }

        return keys;
      };

  // get symbols in object.
  getSymbols = (typeof Object.getOwnPropertySymbols === 'function') ?
      function(obj) {
        return Object.getOwnPropertySymbols(obj);
      } :
      function() {
        // always return empty array when Symbol is not supported.
        return [];
      };

  // fallback Array#indexOf for old browsers.
  indexOfArray = (typeof Array.prototype.indexOf === 'function') ?
      function(array, searchElement) {
        return array.indexOf(searchElement);
      } :
      function(array, searchElement) {
        var i, len;

        if (!util.isArray(array)) {
          throw new TypeError('array is not an Array');
        }

        for (i = 0, len = array.length; i < len; ++i) {
          if (array[i] === searchElement) {
            return i;
          }
        }

        return -1;
      };

{'fraction_non_alphanumeric': 0.14471889680254585, 'fraction_numerical': 0.0024246097893620244, 'mean_word_length': 2.101503759398496, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1138760', 'n_tokens_mistral': 1940, 'n_tokens_neox': 1892, 'n_words': 506}