<commit_before>(function(win) {
  'use strict';

  var Utils = {};

  Utils.Type = {
    isObject: function(v) {
      return v instanceof Object;
    },
    isFunction: function(v) {
      return v instanceof Function;
    },
    isArray: function(v) {
      return v instanceof Array;
    }
  };

  Utils.Log = {
    print: function(msg, type) {
      // Mood 开启 debug 时才打印log
      if ( !win.Mood._config.debug ) {
        return;
      }
      // TODO: to be more beautyful
      if ( Utils.Type.isArray(msg) ) {
        msg = '[Mood] ' + msg.join('');
      }
      console[type](msg);
    }
  };


  // 处理‘abc.bcd.ddd’的相关方法
  Utils.ChainName = {
    _DELIMITER: '.',
    resolve: function (chain) {
      return chain.split(this._DELIMITER);
    },
    join: function(names) {
      return names.join(this._DELIMITER);
    },
    first: function(chain) {
      return this.resolve(chain)[0];
    }
  };
  // 函数节流，见JavaScript高级编程22.3节
  Utils.tr = function(func) {<commit_msg>修复一些错误，Must be the cat - -!<commit_after>(function(win) {
  'use strict';

  var Utils = {};

  Utils.Type = {
    isObject: function(v) {
      return v instanceof Object;
    },
    isFunction: function(v) {
      return v instanceof Function;
    },
    isArray: function(v) {
      return v instanceof Array;
    }
  };

  Utils.Log = {
    print: function(msg, type) {
      // Mood 开启 debug 时才打印log
      if ( !win.Mood._config.debug ) {
        return;
      }
      // TODO: to be more beautyful
      if ( Utils.Type.isArray(msg) ) {
        msg = '[Mood] ' + msg.join('');
      }
      console[type](msg);
    }
  };


  // 处理‘abc.bcd.ddd’的相关方法
  Utils.ChainName = {
    _DELIMITER: '.',
    resolve: function (chain) {
      return chain.split(this._DELIMITER);
    },
    join: function(names) {
      return names.join(this._DELIMITER);
    },
    first: function(chain) {
      return this.resolve(chain)[0];
    }
  };
  // 函数节流，见JavaScript高级编程22.3节
  Utils.Processor = function(func) {
{'fraction_non_alphanumeric': 0.1502773575390822, 'fraction_numerical': 0.004034291477559254, 'mean_word_length': 2.1, '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': '3159789', 'n_tokens_mistral': 738, 'n_tokens_neox': 739, 'n_words': 134}