<commit_before>var hashRouter = {
  data: {
    hash: '#home'
  },
  methods: {
    route: function (hash) {
      this.hash = hash || window.location.hash || this.hash
    }
  },
  ready: function () {
    var that = this

    that.route()

    window.addEventListener('hashchange', function () {
      that.route()
    })
  }
}

module.exports = hashRouter<commit_msg>vue 2<commit_after>var hashRouter = {
  data: {
    hash: '#home'
  },
  methods: {
    route: function (hash) {
      this.hash = hash || window.location.hash || this.hash
    }
  },
  mount: function () {
    var that = this

    that.route()

    window.addEventListener('hashchange', function () {
      that.route()
    })
  }
}

module.exports = hashRouter
{'fraction_non_alphanumeric': 0.15300546448087432, 'fraction_numerical': 0.001366120218579235, 'mean_word_length': 2.425233644859813, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1099107', 'n_tokens_mistral': 243, 'n_tokens_neox': 237, 'n_words': 48}