<commit_before><template>
  <div />
</template>

<script>
  export default {
    name: "ViewHistory"
  }
</script><commit_msg>graphql client proof of concept<commit_after><template>
  <div>{{ message }}</div>
</template>

<script>
  import { gql } from "@apollo/client"

  export default {
    name: "ViewHistory",

    data() {
      return {
        message: ""
      }
    },

    created() {
      this.fetchMessage()
    },

    methods: {
      fetchMessage() {
        const query = gql`
          {
            hello
          }
        `

        this.$store.state.query({ query })
          .then(json => this.message = json.data)
      }
    }
  }
</script>
{'fraction_non_alphanumeric': 0.15119760479041916, 'fraction_numerical': 0.0, 'mean_word_length': 1.799163179916318, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 15, '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': '4108335', 'n_tokens_mistral': 218, 'n_tokens_neox': 210, 'n_words': 43}