<commit_before>(function() {
  'use strict';

  function FakeKeyEvent(key) {
    this.keyCode = key;
    this.preventDefault = function() {};
    this.stopPropagation = function() {};
  }

  var TestHelper = {
    triggerEvent: function(el, eventName) {
      var event = document.createEvent("MouseEvents");
      event.initEvent(eventName, true, true); // type, bubbles, cancelable
      el.dispatchEvent(event);
    },
    keyDown: function(keyCode) {
      return new FakeKeyEvent(keyCode);
    },
    randomString: function() {
      Math.random().toString(36).substring(2);
    },
    prepareStageElement: function() {
      before(function() {
        this.stageElement = document.createElement("div");
        this.stageElement.style.display = "none";
        document.body.appendChild(this.stageElement);
      });
      afterEach(function() {
        this.stageElement.innerHTML = "";
      });
    }
  };

  window.TestHelper = TestHelper;
  window.assert = chai.assert;
})();<commit_msg>Remove unused test helpers for templates testing<commit_after>(function() {
  'use strict';

  function FakeKeyEvent(key) {
    this.keyCode = key;
    this.preventDefault = function() {};
    this.stopPropagation = function() {};
  }

  var TestHelper = {
    triggerEvent: function(el, eventName) {
      var event = document.createEvent("MouseEvents");
      event.initEvent(eventName, true, true); // type, bubbles, cancelable
      el.dispatchEvent(event);
    },
    keyDown: function(keyCode) {
      return new FakeKeyEvent(keyCode);
    }
  };

  window.TestHelper = TestHelper;
  window.assert = chai.assert;
})();
{'fraction_non_alphanumeric': 0.14109673444239063, 'fraction_numerical': 0.0018484288354898336, 'mean_word_length': 3.153452685421995, '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': '5305945', 'n_tokens_mistral': 483, 'n_tokens_neox': 477, 'n_words': 89}