<commit_before>afterEach(function () {
  document.getElementById('stage').innerHTML = '';
});

var helper = {
  trigger:function (obj, name) {
    var e = document.createEvent('Event');
    e.initEvent(name, true, true);
    obj.dispatchEvent(e);
  }
};

beforeEach(function () {

  this.validResponse = function (responseText) {
    return [
      200,
      {"Content-Type":"application/json"},
      JSON.stringify(responseText)
    ];
  };

});<commit_msg>After each test, hide everything that's not the Jasmine HTML Reporter. (Will avoid confusion in output )<commit_after>afterEach(function () {
  document.getElementById('stage').innerHTML = '';
  $('body > [id!="HTMLReporter"]').hide();
});

var helper = {
  trigger: function (obj, name) {
    var e = document.createEvent('Event');
    e.initEvent(name, true, true);
    obj.dispatchEvent(e);
  }
};

beforeEach(function () {

  this.validResponse = function (responseText) {
    return [
      200,
      {"Content-Type": "application/json"},
      JSON.stringify(responseText)
    ];
  };
});
{'fraction_non_alphanumeric': 0.16777251184834124, 'fraction_numerical': 0.005687203791469194, 'mean_word_length': 3.6519823788546257, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 4, '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': '3593449', 'n_tokens_mistral': 330, 'n_tokens_neox': 320, 'n_words': 64}