<commit_before>const Redirect = {
  name: 'curi-redirect',

  props: ['to', 'params', 'details'],

  computed: {
    location: function() {
      const pathname = this.$curi.addons.pathname(this.to, this.params);
      return { pathname, ...this.details };
    },
    href: function() {
      return this.$curi.history.createHref(this.location);
    }
  },

  beforeMount: function() {
    if (this.$slots.default && this.$slots.default.length > 1) {
      console.warn(
        'A <curi-redirect> should only render one slot, but was given ' +
          this.$slots.default.length
      );
    }
  },

  mounted: function() {
    this.$curi.history.replace(this.location);
  },

  render: function(h) {
    return this.$slots.default && this.$slots.default[0];
  }
};

export default Redirect;
<commit_msg>Remove unnecessary property in curi-vue Redirect<commit_after>const Redirect = {
  name: 'curi-redirect',

  props: ['to', 'params', 'details'],

  computed: {
    location: function() {
      const pathname = this.$curi.addons.pathname(this.to, this.params);
      return { pathname, ...this.details };
    }
  },

  beforeMount: function() {
    if (this.$slots.default && this.$slots.default.length > 1) {
      console.warn(
        'A <curi-redirect> should only render one slot, but was given ' +
          this.$slots.default.length
      );
    }
  },

  mounted: function() {
    this.$curi.history.replace(this.location);
  },

  render: function(h) {
    return this.$slots.default && this.$slots.default[0];
  }
};

export default Redirect;

{'fraction_non_alphanumeric': 0.1608974358974359, 'fraction_numerical': 0.002564102564102564, 'mean_word_length': 2.7796610169491527, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6625537', 'n_tokens_mistral': 518, 'n_tokens_neox': 507, 'n_words': 103}