<commit_before><template>
  <div class="grid-container dh-result-card__wrapper">
    <div class="grid-row">
      <div class="grid-col-fill dh-result-card__title">
        <a :href="item.sourceUrl" target="_blank" class="search-result-link">
          <MDDatabase v-if="item.dhType=='Dataset'" title="Dataset" size="18px"></MDDatabase>
          <MDFileDocument v-if="item.dhType=='Document'" title="Article" size="18px"></MDFileDocument>
          {{ item.name }}
          <img class="in-line-dot-link-new-tab search-results" src="/images/icons/external-tabs.svg" alt="New tab icon." title="Opens in a new tab.">
        </a>
      </div>
    </div>
    <div class="grid-row">
      <div id="left_column_results_wrapper" class="mobile-lg:grid-col-3">
        <div id="results_date_label" class="dh-result-card__meta-text">Date Added:</div>
        <div id="results_date_data" class="dh-result-card__meta-data">{{ item.lastUpdate | filterDate}}</div>
        <div id="results_access_label" class="dh-result-card__meta-text">Access:</div>
        <div id="results_access_data" class="dh-result-card__meta-data">{{ item.accessLevel}}</div>
      </div>
      <div class="grid-col-fill dh-result-card__description">
        <span v-html="itemDescription"></span>
        <button v-if="readButtonVisible" class="dh-result-card__description-readmore" v-on:click="toggleSeeMore()">
          {{readButtonText}}
        </button>
      </div>
    </div>
    <div class="grid-row">
      <div class="mobile-lg:grid-col-3 dh-result-card__tags">
        <div id="results_access_label" class="dh-result-card__meta-data">Related projects<br/>on ITS CodeHub:</div>
        <ul>
          <li v-for="(rel, index) in relatedItems" :key="index">
            <a :href="rel.url" target="_blank" rel="noopener noreferrer">
              {{rel.name}}
              <img class="in-line-dot-link-new-tab" src="/images/icons/external-tabs.svg" alt="New tab icon." title="Opens in a new tab.">
            </a>
          </li>
        </ul>
        <div v-if="relatedShowVisible" class="dh-result-card__tags-showmore">
          <span v-if="relatedShowMore">...&nbsp;</span>
          <button v-if="relatedShowVisible" v-on:click="toggleShowMoreRelated()">
            {{relatedShowMoreText}}
          </button>
        </div>
        <div v-if="!relatedShowVisible && relatedItems.length===0" class="dh-result-card__meta-text">None</div>
      </div>
      <div class="grid-col-fill dh-result-card__tags">
        <div v-if="itemTags && itemTags.length > 0" >
          <div class="dh-result-card__tags-title">Tags:</div>
          <div v-for="(tag, idx) in itemTags" :key="idx" class="dh-result-card__tag">
            <button @click="tagClicked(tag)">
              {{tag}}
            </button>
            <span v-if="idx < itemTags.length - 1">,&nbsp;</span>
          </div>
          <div v-if="tagsShowVisible" class="dh-result-card__tags-showmore">
            <span v-if="tagsShowMore">...&nbsp;</span>
            <button v-if="tagsShowVisible" v-on:click="toggleShowMoreTags()">
              {{tagsShowButtonText}}
            </button>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import moment from 'moment';<commit_msg>Hid links to codehub repositories.<commit_after><template>
  <div class="grid-container dh-result-card__wrapper">
    <div class="grid-row">
      <div class="grid-col-fill dh-result-card__title">
        <a :href="item.sourceUrl" target="_blank" class="search-result-link">
          <MDDatabase v-if="item.dhType=='Dataset'" title="Dataset" size="18px"></MDDatabase>
          <MDFileDocument v-if="item.dhType=='Document'" title="Article" size="18px"></MDFileDocument>
          {{ item.name }}
          <img class="in-line-dot-link-new-tab search-results" src="/images/icons/external-tabs.svg" alt="New tab icon." title="Opens in a new tab.">
        </a>
      </div>
    </div>
    <div class="grid-row">
      <div id="left_column_results_wrapper" class="mobile-lg:grid-col-3">
        <div id="results_date_label" class="dh-result-card__meta-text">Date Added:</div>
        <div id="results_date_data" class="dh-result-card__meta-data">{{ item.lastUpdate | filterDate}}</div>
        <div id="results_access_label" class="dh-result-card__meta-text">Access:</div>
        <div id="results_access_data" class="dh-result-card__meta-data">{{ item.accessLevel}}</div>
      </div>
      <div class="grid-col-fill dh-result-card__description">
        <span v-html="itemDescription"></span>
        <button v-if="readButtonVisible" class="dh-result-card__description-readmore" v-on:click="toggleSeeMore()">
          {{readButtonText}}
        </button>
      </div>
    </div>
    <div class="grid-row">
      <div class="mobile-lg:grid-col-3 dh-result-card__tags">
        <div id="results_access_label" class="dh-result-card__meta-data" style="display: none;">Related projects<br/>on ITS CodeHub:</div>
        <ul>
          <li v-for="(rel, index) in relatedItems" :key="index">
            <a :href="rel.url" target="_blank" rel="noopener noreferrer">
              {{rel.name}}
              <img class="in-line-dot-link-new-tab" src="/images/icons/external-tabs.svg" alt="New tab icon." title="Opens in a new tab.">
            </a>
          </li>
        </ul>
        <div v-if="relatedShowVisible" class="dh-result-card__tags-showmore" style="display: none;">
          <span v-if="relatedShowMore">...&nbsp;</span>
          <button v-if="relatedShowVisible" v-on:click="toggleShowMoreRelated()">
            {{relatedShowMoreText}}
          </button>
        </div>
        <div v-if="!relatedShowVisible && relatedItems.length===0" class="dh-result-card__meta-text" style="display: none;">None</div>
      </div>
      <div class="grid-col-fill dh-result-card__tags">
        <div v-if="itemTags && itemTags.length > 0" >
          <div class="dh-result-card__tags-title">Tags:</div>
          <div v-for="(tag, idx) in itemTags" :key="idx" class="dh-result-card__tag">
            <button @click="tagClicked(tag)">
              {{tag}}
            </button>
            <span v-if="idx < itemTags.length - 1">,&nbsp;</span>
          </div>
          <div v-if="tagsShowVisible" class="dh-result-card__tags-showmore">
            <span v-if="tagsShowMore">...&nbsp;</span>
            <button v-if="tagsShowVisible" v-on:click="toggleShowMoreTags()">
              {{tagsShowButtonText}}
            </button>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import moment from 'moment';
{'fraction_non_alphanumeric': 0.18176310209027569, 'fraction_numerical': 0.002726446531354135, 'mean_word_length': 2.743197278911565, 'pattern_counts': {'":': 0, '<': 153, '<?xml version=': 0, '>': 153, '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': '2868544', 'n_tokens_mistral': 2148, 'n_tokens_neox': 2100, 'n_words': 353}