<commit_before><template>
  <v-flex class="message mb-1" :class="containerClass()">
    <v-card class="darken-2 white--text pa-2" :class="cardClass()">
      <p class="body-2 mb-0">{{ message.user }}</p>
      <v-divider></v-divider>
      <p class="body-1 pa-2 mb-0">{{ message.text }}</p>
    </v-card>
    <p class="caption">{{ friendlyTime }}</p>
  </v-flex>
</template>

<script>
var ta = require('../../../node_modules/time-ago/timeago.js')()
export default {
  props: ['message'],
  computed: {
    friendlyTime: function() {
      // Get the new friendly time whenever the store time updates
      let newTime = ta.ago(this.message.time)
      if (newTime.includes('ms')) {
        newTime = 'Just now'
      }
      // Tie to store time so this updates at interval
      // eslint-disable-next-line no-unused-vars
      const curTime = this.$store.state.time
      return newTime
    }
  },
  data: function() {
    return {
      isCurrent: this.message.user === this.$store.state.username,<commit_msg>Fix quick update weirdness with msg time<commit_after><template>
  <v-flex class="message mb-1" :class="containerClass()">
    <v-card class="darken-2 white--text pa-2" :class="cardClass()">
      <p class="body-2 mb-0">{{ message.user }}</p>
      <v-divider></v-divider>
      <p class="body-1 pa-2 mb-0">{{ message.text }}</p>
    </v-card>
    <p class="caption">{{ friendlyTime }}</p>
  </v-flex>
</template>

<script>
var ta = require('../../../node_modules/time-ago/timeago.js')()
export default {
  props: ['message'],
  computed: {
    friendlyTime: function() {
      // Get the new friendly time whenever the store time updates
      let newTime = ta.ago(this.message.time)
      if (newTime.includes('ms') || newTime.includes('-')) {
        newTime = 'Just now'
      }
      // Tie to store time so this updates at interval
      // eslint-disable-next-line no-unused-vars
      const curTime = this.$store.state.time
      return newTime
    }
  },
  data: function() {
    return {
      isCurrent: this.message.user === this.$store.state.username,
{'fraction_non_alphanumeric': 0.18015414258188825, 'fraction_numerical': 0.007707129094412331, 'mean_word_length': 2.7155635062611805, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '2389074', 'n_tokens_mistral': 684, 'n_tokens_neox': 683, 'n_words': 166}