<commit_before><template>
  <span>{{ pageTitle }}</span>
</template>

<script>
export default {
  name: 'VisualizationsTitle',
  props: {
    defaultTitle: String,
    selectedItems: Number,
    vizQuota: Number,
    vizCount: Number,
    counterLabel: String,
    isOutOfQuota: Boolean
  },
  computed: {
    pageTitle () {
      return this.selectedItems ? this.selectedItemsTitle : this.compoundTitle;
    },
    selectedItemsTitle () {
      return this.$t('BulkActions.selected', {count: this.selectedItems});
    },
    compoundTitle () {
      return this.vizQuota && !this.isOutOfQuota? this.titleWithCounter : this.defaultTitle
    },
    titleWithCounter () {
      return this.counterLabel
        ? `${this.defaultTitle} (${this.counterLabel} ${this.vizCount}/${this.vizQuota})`
        : `${this.defaultTitle} (${this.vizCount}/${this.vizQuota})`
    }
  }

};
</script><commit_msg>Fix Hound<commit_after><template>
  <span>{{ pageTitle }}</span>
</template>

<script>
export default {
  name: 'VisualizationsTitle',
  props: {
    defaultTitle: String,
    selectedItems: Number,
    vizQuota: Number,
    vizCount: Number,
    counterLabel: String,
    isOutOfQuota: Boolean
  },
  computed: {
    pageTitle () {
      return this.selectedItems ? this.selectedItemsTitle : this.compoundTitle;
    },
    selectedItemsTitle () {
      return this.$t('BulkActions.selected', {count: this.selectedItems});
    },
    compoundTitle () {
      return this.vizQuota && !this.isOutOfQuota ? this.titleWithCounter : this.defaultTitle;
    },
    titleWithCounter () {
      return this.counterLabel
        ? `${this.defaultTitle} (${this.counterLabel} ${this.vizCount}/${this.vizQuota})`
        : `${this.defaultTitle} (${this.vizCount}/${this.vizQuota})`;
    }
  }

};
</script>
{'fraction_non_alphanumeric': 0.1520402459474567, 'fraction_numerical': 0.0, 'mean_word_length': 3.334140435835351, 'pattern_counts': {'":': 0, '<': 15, '<?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': '5108471', 'n_tokens_mistral': 578, 'n_tokens_neox': 583, 'n_words': 98}