<commit_before><script>
  import store from './../redux/store.vue';

  /**
   * a mixin that subscribes to redux store and updates our data
   * so that Vue can do its magic
   */
  module.exports = {
    data() {
      return {
        store: store.getState()
      };
    },
    created() {
      store.subscribe(() => {
        this.store = store.getState();
      });
    }
  };
</script><commit_msg>unsubscribing...<commit_after><script>
  import store from './../redux/store.vue';

  /**
   * a mixin that subscribes to redux store and updates our data
   * so that Vue can do its magic
   */
  module.exports = {
    data() {
      return {
        store: store.getState()
      };
    },
    created() {
      this.unsubscribe = store.subscribe(() => {
        this.store = store.getState();
      });
    },
    beforeDestroy() {
      this.unsubscribe();
    }
  };
</script>
{'fraction_non_alphanumeric': 0.15593220338983052, 'fraction_numerical': 0.0, 'mean_word_length': 1.9337748344370862, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1736025', 'n_tokens_mistral': 281, 'n_tokens_neox': 276, 'n_words': 68}