<commit_before><template>
  <nav class="navbar">
    <div class="navbar-brand">
      <div class="navbar-item">
        <logo/>
      </div>
      <lang/>
      <div :class="{ 'is-active':isActive }" class="navbar-burger burger" @click="isActive = !isActive">
        <span/>
        <span/>
        <span/>
      </div>
    </div>
    <div :class="{ 'is-active':isActive }" class="navbar-menu">
      <router-link to="/hero" class="navbar-item">
        {{ $t("ui.hero") }}
      </router-link>
      <router-link to="/artifact" class="navbar-item">
        {{ $t("ui.artifact") }}
      </router-link>
      <router-link to="/calc" class="navbar-item">
        Calc
      </router-link>
      <div v-if="!isCalc"  class="navbar-end">
        <div class="navbar-item">
          <search/>
        </div>
      </div>
    </div>
  </nav>
</template>

<script>
import Logo from "@/components/svg/Logo.vue";
import NavLang from "./NavLang.vue";
import NavSearch from "./NavSearch.vue";

export default {
  components: {
    logo: Logo,
    lang: NavLang,
    search: NavSearch
  },
  data() {
    return {
      isActive: false,
      name: "",
      selected: null
    };
  },
  computed: {
    isCalc: function() {
      return this.$route.name === "calc";
    }
  }
};
</script>
<commit_msg>Link back to last visited item.<commit_after><template>
  <nav class="navbar">
    <div class="navbar-brand">
      <div class="navbar-item">
        <logo/>
      </div>
      <lang/>
      <div :class="{ 'is-active':isActive }" class="navbar-burger burger" @click="isActive = !isActive">
        <span/>
        <span/>
        <span/>
      </div>
    </div>
    <div :class="{ 'is-active':isActive }" class="navbar-menu">
      <router-link :to="heroLink" class="navbar-item">
        {{ $t("ui.hero") }}
      </router-link>
      <router-link :to="artifactLink" class="navbar-item">
        {{ $t("ui.artifact") }}
      </router-link>
      <router-link to="/calc" class="navbar-item">
        Calc
      </router-link>
      <div v-if="!isCalc"  class="navbar-end">
        <div class="navbar-item">
          <search/>
        </div>
      </div>
    </div>
  </nav>
</template>

<script>
import { mapState } from "vuex";
import Logo from "@/components/svg/Logo.vue";
import NavLang from "./NavLang.vue";
import NavSearch from "./NavSearch.vue";

export default {
  components: {
    logo: Logo,
    lang: NavLang,
    search: NavSearch
  },
  data() {
    return {
      isActive: false,
      name: "",
      selected: null
    };
  },
  computed: {
    ...mapState(["artifactID", "heroID"]),
    artifactLink: function() {
      return "/artifact/" + this.artifactID;
    },
    heroLink: function() {
      return "/hero/" + this.heroID;
    },
    isCalc: function() {
      return this.$route.name === "calc";
    }
  }
};
</script>

{'fraction_non_alphanumeric': 0.19401408450704224, 'fraction_numerical': 0.0, 'mean_word_length': 2.199324324324324, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, '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': '4604541', 'n_tokens_mistral': 986, 'n_tokens_neox': 953, 'n_words': 197}