<commit_before>/**
 * @module proact
 * @submodule proact-core
 */
/**
 * @namespace ProAct
 * @class ActorUtil
 * @static
 */
ActorUtil = {
  update: function (source, actions, eventData) {
    if (this.state === ProAct.States.destroyed) {
      throw new Error('You can not trigger actions on destroyed actors!');
    }

    if (this.state === ProAct.States.closed) {
      return;
    }

    var actor = this;
    if (!P.flow.isRunning()) {
      P.flow.run(function () {
        ActorUtil.doUpdate.call(actor, source, actions, eventData);
      });
    } else {
      ActorUtil.doUpdate.call(actor, source, actions, eventData);
    }
    return this;
  },

  doUpdate: function (source, actions, eventData) {
    if (!actions) {<commit_msg>Added TODO for moving ActorUtils in own file.<commit_after>/**
 * @module proact
 * @submodule proact-core
 */

/**
 * TODO Move it to its own file.
 *
 * @namespace ProAct
 * @class ActorUtil
 * @static
 */
ActorUtil = {
  update: function (source, actions, eventData) {
    if (this.state === ProAct.States.destroyed) {
      throw new Error('You can not trigger actions on destroyed actors!');
    }

    if (this.state === ProAct.States.closed) {
      return;
    }

    var actor = this;
    if (!P.flow.isRunning()) {
      P.flow.run(function () {
        ActorUtil.doUpdate.call(actor, source, actions, eventData);
      });
    } else {
      ActorUtil.doUpdate.call(actor, source, actions, eventData);
    }
    return this;
  },

  doUpdate: function (source, actions, eventData) {
    if (!actions) {
{'fraction_non_alphanumeric': 0.1438664097623635, 'fraction_numerical': 0.0, 'mean_word_length': 2.7451923076923075, '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': '7100927', 'n_tokens_mistral': 501, 'n_tokens_neox': 487, 'n_words': 128}