<commit_before>import Orbit from './main';
import Transformable from './transformable';
import Transform from './transform';
import { extend } from './lib/objects';

export default {
  /**
   Mixes the `Updatable` interface into an object

   @method extend
   @param {Object} object Object to extend
   @returns {Object} Extended object
   */
  extend(object) {
    if (object._updatable === undefined) {
      Transformable.extend(object);
      extend(object, this.interface);
    }
    return object;
  },

  interface: {
    _updatable: true,

    update(_transform) {
      let transform = Transform.from(_transform, this.transformBuilder);

      if (this.transformLog.contains(transform.id)) {
        return Orbit.Promise.resolve();
      }

      return this.series('beforeUpdate', transform)
        .then(() => this._update(transform))
        .then((result) => {
          return result.reduce((chain, t) => {<commit_msg>Reformatted Updatable#update for consistency.<commit_after>import Orbit from './main';
import Transformable from './transformable';
import Transform from './transform';
import { extend } from './lib/objects';

export default {
  /**
   Mixes the `Updatable` interface into an object

   @method extend
   @param {Object} object Object to extend
   @returns {Object} Extended object
   */
  extend(object) {
    if (object._updatable === undefined) {
      Transformable.extend(object);
      extend(object, this.interface);
    }
    return object;
  },

  interface: {
    _updatable: true,

    update(transformOrOperations) {
      const transform = Transform.from(transformOrOperations, this.transformBuilder);

      if (this.transformLog.contains(transform.id)) {
        return Orbit.Promise.resolve();
      }

      return this.series('beforeUpdate', transform)
        .then(() => this._update(transform))
        .then((result) => {
          return result.reduce((chain, t) => {
{'fraction_non_alphanumeric': 0.1288981288981289, 'fraction_numerical': 0.0, 'mean_word_length': 3.1220556745182013, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6236901', 'n_tokens_mistral': 542, 'n_tokens_neox': 523, 'n_words': 137}