<commit_before><template>
  <div>
    <button @click="authAnonymous">Start Playing</button>
    <button disabled>Create an Account</button>
  </div>
</template>
<script>
  import { mapActions } from 'vuex'

  export default {
    methods: {
      ...mapActions(['authAnonymous'])
    },
    created() {
      this.$store.watch((_, getters) => getters.isAuthenticated, value => value && this.$router.push('/'))
    },
  }
</script><commit_msg>clean up on auth redirect logic<commit_after><template>
  <div>
    <button @click="authAnonymous">Start Playing</button>
    <button disabled>Create an Account</button>
  </div>
</template>
<script>
  import { mapGetters, mapActions } from 'vuex'

  export default {
    computed: {
      ...mapGetters(['isAuthenticated'])
    },
    methods: {
      ...mapActions(['authAnonymous'])
    },
    watch: {
      isAuthenticated(value) {
        value && this.$router.push('/')
      }
    },
  }
</script>
{'fraction_non_alphanumeric': 0.17212249208025343, 'fraction_numerical': 0.0, 'mean_word_length': 3.051282051282051, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 25, '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': '7530480', 'n_tokens_mistral': 301, 'n_tokens_neox': 293, 'n_words': 60}