<commit_before>/**
 * A dom-delegate helper for Financial Times' FruitMachine
 *
 * @version 0.0.2
 * @author <NAME> <<EMAIL>>
 * @copyright The Financial Times Limited
 */

/**
 * External dependency
 */

var delegate = require('dom-delegate');

/**
 * Link up dom-delegate with fruitmachine
 */

module.exports = function(view) {
  view.on('initialize', function() {
    this.delegate = delegate();
  });

  view.on('setup', function() {
    this.delegate.root(this.el);
  });

  view.on('teardown', function() {
    this.delegate.root();
  });

  view.on('destroy', function() {
    this.delegate.destroy();
    delete this.delegate;
  });
};
<commit_msg>Remove (incorrect) version number from helper code<commit_after>/**
 * A dom-delegate helper for Financial Times' FruitMachine
 *
 * @author <NAME> <<EMAIL>>
 * @copyright The Financial Times Limited
 */

/**
 * External dependency
 */

var delegate = require('dom-delegate');

/**
 * Link up dom-delegate with fruitmachine
 */

module.exports = function(view) {
  view.on('initialize', function() {
    this.delegate = delegate();
  });

  view.on('setup', function() {
    this.delegate.root(this.el);
  });

  view.on('teardown', function() {
    this.delegate.root();
  });

  view.on('destroy', function() {
    this.delegate.destroy();
    delete this.delegate;
  });
};

{'fraction_non_alphanumeric': 0.17827715355805243, 'fraction_numerical': 0.0022471910112359553, 'mean_word_length': 3.4983164983164983, 'pattern_counts': {'":': 0, '<': 9, '<?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': '3338724', 'n_tokens_mistral': 421, 'n_tokens_neox': 409, 'n_words': 94}