<commit_before><element name="app-counter">
  <template>
    <div>0</div>
  </template>
  <script type="text/flathead">
  </script>
  <script type="text/ceci">
    Ceci(this, {
      init: function (params) {
        console.log(this);
        this.reset(0);
      },
      updateDisplay: function () {
        this.querySelector('div').innerHTML = this.count.toString();
        this.emit(this.count);
      },
      defaultListener: 'increase',
      listeners: {
        increase: function () {
          this.count++;
          this.updateDisplay();
        },
        decrease: function () {
          this.count--;
          this.updateDisplay();
        },
        reset: function (value) {
          this.count = parseInt(value);
          if (isNaN(this.count)){
            this.count = 0;
          }
          this.updateDisplay();
        }
      }
    });
  </script>
</element>
<commit_msg>Removing emit counter which at the least by default kills your page when you have two counters.<commit_after><element name="app-counter">
  <template>
    <div>0</div>
  </template>
  <script type="text/flathead">
  </script>
  <script type="text/ceci">
    Ceci(this, {
      init: function (params) {
        console.log(this);
        this.reset(0);
      },
      updateDisplay: function () {
        this.querySelector('div').innerHTML = this.count.toString();
      },
      defaultListener: 'increase',
      listeners: {
        increase: function () {
          this.count++;
          this.updateDisplay();
        },
        decrease: function () {
          this.count--;
          this.updateDisplay();
        },
        reset: function (value) {
          this.count = parseInt(value);
          if (isNaN(this.count)){
            this.count = 0;
          }
          this.updateDisplay();
        }
      }
    });
  </script>
</element>

{'fraction_non_alphanumeric': 0.15045674368619022, 'fraction_numerical': 0.0032240730789897904, 'mean_word_length': 1.8, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '2229397', 'n_tokens_mistral': 535, 'n_tokens_neox': 541, 'n_words': 103}