<commit_before><template>
  <div 
    :class="['card', { 'card--link': url }]"
  >
    <a
      v-if="url" 
      class="card__link"
      :href="url"
      title=""
    >
      <p 
        class="card__date"
        v-html="date"
      >
      <h3 
        class="card__h3"
        v-html="title"
      />
      <p
        class="card__summary"
        v-html="summary"
      />
    </a>

    <template v-else>
      <p 
        class="card__date"
        v-html="date"
      >
      <h3 
        class="card__h3"
        v-html="title"
      />
      <p
        class="card__summary"
        v-html="summary"
      />
      <a
        v-if="fileUrl"
        class="button--download"
        href="fileUrl"
        target="_blank"
        title=""
      />
      <a
        v-if="linkUrl"
        class="button--link-external"
        href="linkUrl"
        target="_blank"
        title=""
        v-html="linkTitle"
      />
    </template>
  </div>
</template>

<script>
export default {
  name: 'listing-page-card-news',

  props: {
    date: String,
    fileUrl: String,
    linkTitle: String,
    linkUrl: String,
    summary: String,
    title: {
      type: String,
      required: true
    },
    url: String
  },

  computed: {
    class () {
      
    }
  }
}
</script>
<commit_msg>Make sure urls are set correctly<commit_after><template>
  <div 
    :class="['card', { 'card--link': url }]"
  >
    <a
      v-if="url" 
      class="card__link"
      :href="url"
      title="title"
    >
      <p 
        class="card__date"
        v-html="date"
      >
      <h3 
        class="card__h3"
        v-html="title"
      />
      <p
        class="card__summary"
        v-html="summary"
      />
    </a>

    <template v-else>
      <p 
        class="card__date"
        v-html="date"
      >
      <h3 
        class="card__h3"
        v-html="title"
      />
      <p
        class="card__summary"
        v-html="summary"
      />
      <a
        v-if="fileUrl"
        class="button--download"
        :href="fileUrl"
        target="_blank"
        title="title"
      />
      <a
        v-if="linkUrl"
        class="button--link-external"
        :href="linkUrl"
        target="_blank"
        title="title"
        v-html="linkTitle"
      />
    </template>
  </div>
</template>

<script>
export default {
  name: 'listing-page-card-news',

  props: {
    date: String,
    fileUrl: String,
    linkTitle: String,
    linkUrl: String,
    summary: String,
    title: {
      type: String,
      required: true
    },
    url: String
  },

  computed: {
    class () {
      
    }
  }
}
</script>

{'fraction_non_alphanumeric': 0.1546077684691546, 'fraction_numerical': 0.0030464584920030465, 'mean_word_length': 1.4145220588235294, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '136854', 'n_tokens_mistral': 921, 'n_tokens_neox': 900, 'n_words': 151}