<commit_before>
(function(undefined) {
  
  var Sysmo = {
    stub: function(){},
    makeArray: function(args) {
      return Array.prototype.slice.call(args);
    },
    extend: function(target, values, deep) {
      !target && (target = {});
      
      for (var property in values) {
        
        var value = values[property];
        
        if (!(property in target)) {
          
          target[property] = !deep ? value : 
                             (value == null || isObject(value)) ? extend({}, value) : 
                             (isArray(value)) ? value.slice(0) : value;
                             
        // compares objects that already exist in target if "deep" is true
        // copies properties or object if the target is NULL or an object
        } else if (deep && isObject(value) && 
                  //(!(property in target) || isObject(target[property]))) {
                  (target[property] == null || isObject(target[property]))) {
          //don't need to set property because the object is updated by reference
          /*target[property] = */Sysmo.extend(target[property] || {}, value, deep);
        }
      }
      return target;
    },
    //include an object graph in another
    include: function(target, namespace, graph) {<commit_msg>added type check functions<commit_after>
(function(undefined) {
  
  var Sysmo = {
    stub: function(){},
    makeArray: function(args) {
      return Array.prototype.slice.call(args);
    },
    type: function(value) {
      return Object.prototype.toString.call(jQuery).match(/\s+([^\]]+)]/)[1];
    },
    isType: function(value, type) {
      return this.type(value) == type;
    },
    isArray: function(value) {
      return this.isType(value, "Array");
    },
    isFunction: function(value) {
      return this.isType(value, "Function");
    },
    isPlainObject: function(value) {
      return this.isType(value, "Object");
    },
    isNumber: function(value) {
      return this.isType(value, "Number");
    },
    isString: function(value) {
      return this.isType(value, "String");
    },
    isNumeric: function(value) {
      return Number(value) + "" === value + ""
    },
    isUndefined: function(value) {
      return typeof value == "undefined";
    },
    isNull: function(value) {
      return value === null;
    },
    extend: function(target, values, deep) {
      !target && (target = {});
      
      for (var property in values) {
        
        var value = values[property];
        
        if (!(property in target)) {
          
          target[property] = !deep ? value : 
                             (value == null || isObject(value)) ? extend({}, value) : 
                             (isArray(value)) ? value.slice(0) : value;
                             
        // compares objects that already exist in target if "deep" is true
        // copies properties or object if the target is NULL or an object
        } else if (deep && isObject(value) && 
                  //(!(property in target) || isObject(target[property]))) {
                  (target[property] == null || isObject(target[property]))) {
          //don't need to set property because the object is updated by reference
          /*target[property] = */Sysmo.extend(target[property] || {}, value, deep);
        }
      }
      return target;
    },
    //include an object graph in another
    include: function(target, namespace, graph) {
{'fraction_non_alphanumeric': 0.13747099767981438, 'fraction_numerical': 0.0008700696055684454, 'mean_word_length': 1.9861471861471862, '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': '1397873', 'n_tokens_mistral': 944, 'n_tokens_neox': 930, 'n_words': 256}