<commit_before>/* globals define */
define(function(require, exports, module) {
  'use strict';

  module.exports = {
    inherits: function (_parent, _child) {
      _child.prototype = Object.create(_parent.prototye);
      _child.prototype.constructor = child;
    }
  };

});<commit_msg>utils: when / extend<commit_after>/* globals define */
define(function(require, exports, module) {
  'use strict';
  var Engine = require('famous/core/Engine');

  module.exports = {
    inherits: function (_parent, _child) {
      _child.prototype = Object.create(_parent.prototye);
      _child.prototype.constructor = child;
    },
    when: function (predicate, cb) {
      var checkPred = function () {
        var bool = predicate();
        if (bool) {
          cb();
        }
        else {
          Engine.nextTick(checkPred);
        }
      }
      Engine.nextTick(checkPred);
    },
    extend: function (a /**, b.. */) {
      var _args = Array.prototype.slice.call(arguments, 1, arguments.length)
      for (var i = 0; i < _args.length; i++) { 
        var obj = _args[i];
        for (var key in obj) {
          a[key] = obj[key];
        }
      }
      return a;
    }
  };

});
{'fraction_non_alphanumeric': 0.14634146341463414, 'fraction_numerical': 0.001682085786375105, 'mean_word_length': 2.2249322493224932, 'pattern_counts': {'":': 0, '<': 4, '<?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': '5861166', 'n_tokens_mistral': 376, 'n_tokens_neox': 369, 'n_words': 83}