<commit_before><template>

  <div class="top">
    <a v-link="usersLink" :class="{active: usersActive}">Users</a>

    <a v-link="dataLink" :class="{active: dataActive}">Data</a>

    <a v-link="contentLink" :class="{active: contentActive}">Content</a>
  </div>

</template>


<script>

  const constants = require('../../state/constants');

  module.exports = {
    computed: {
      usersLink() {
        return { name: constants.PageNames.USER_MGMT_PAGE };
      },
      usersActive() {
        return this.pageName === constants.PageNames.USER_MGMT_PAGE;
      },
      dataLink() {
        return { name: constants.PageNames.DATA_EXPORT_PAGE };
      },
      dataActive() {
        return this.pageName === constants.PageNames.DATA_EXPORT_PAGE;
      },
      contentLink() {
        return { name: constants.PageNames.CONTENT_MGMT_PAGE };
      },
      contentActive() {
        return this.pageName === constants.PageNames.CONTENT_MGMT_PAGE;
      },
    },
    vuex: {
      getters: {
        pageName: state => state.pageName,
      },
    },<commit_msg>blur focus after click<commit_after><template>

  <div class="top">
    <a v-link="usersLink" :class="{active: usersActive}" @click="blur">Users</a>

    <a v-link="dataLink" :class="{active: dataActive}" @click="blur">Data</a>

    <a v-link="contentLink" :class="{active: contentActive}" @click="blur">Content</a>
  </div>

</template>


<script>

  const constants = require('../../state/constants');

  module.exports = {
    methods: {
      blur(evt) {
        evt.target.blur();
      },
    },
    computed: {
      usersLink() {
        return { name: constants.PageNames.USER_MGMT_PAGE };
      },
      usersActive() {
        return this.pageName === constants.PageNames.USER_MGMT_PAGE;
      },
      dataLink() {
        return { name: constants.PageNames.DATA_EXPORT_PAGE };
      },
      dataActive() {
        return this.pageName === constants.PageNames.DATA_EXPORT_PAGE;
      },
      contentLink() {
        return { name: constants.PageNames.CONTENT_MGMT_PAGE };
      },
      contentActive() {
        return this.pageName === constants.PageNames.CONTENT_MGMT_PAGE;
      },
    },
    vuex: {
      getters: {
        pageName: state => state.pageName,
      },
    },
{'fraction_non_alphanumeric': 0.1601061477222468, 'fraction_numerical': 0.0, 'mean_word_length': 2.534375, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 27, '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': '5009914', 'n_tokens_mistral': 731, 'n_tokens_neox': 707, 'n_words': 113}