<commit_before>'use strict';

class Hook {
  constructor(options = {}) {
    this.defaults = {};
    this.hook = undefined;
    this.settings = options;
  }
  execute() {}
  process(options) {
    if (this.preProcess(options)) {
      this.execute(options);
      this.postProcess(options);
    }
  }
  preProcess() {}
  postProcess() {}
  setHook(hook) {
    if (this.isHook(this.hook)) {
      this.hook.setHook(hook);<commit_msg>We process things, not options.<commit_after>'use strict';

class Hook {
  constructor(options) {
    this.defaults = {};
    this.hook = undefined;
    this.settings = options;
  }
  execute(thing) {
    console.dir(thing);
  }
  process(thing) {
    if (this.preProcess(thing)) {
      this.execute(thing);
      this.postProcess(thing);
    }
  }
  preProcess() {}
  postProcess() {}
  setHook(hook) {
    if (this.isHook(this.hook)) {
      this.hook.setHook(hook);
{'fraction_non_alphanumeric': 0.1609322974472808, 'fraction_numerical': 0.0, 'mean_word_length': 2.938864628820961, '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': '2024923', 'n_tokens_mistral': 302, 'n_tokens_neox': 302, 'n_words': 48}