<commit_before><template>
  <div class="search-result-container">
    <p v-if="hasSearchResults">
      {{ i18n._('publicBodiesFound', {count: searchResultsLength} ) }}
    </p>
    <ul v-if="searchResultsLength > 0 || emptyResults" class="search-results list-unstyled">
      <li v-for="result in searchResults" class="search-result" @click.prevent="selectSearchResult" :data-pbid="result.id">
        <div class="row">
          <div class="col-sm-8">
            <h4 class="pb-heading">
              {{ result.name }}
            </h4>
            <small>
              {{ result.jurisdiction.name }}, {{ result.number_of_requests }} {{ i18n.requests }}
            </small>
          </div>
          <div class="col-sm-4">
            <a class="btn btn-primary" href="#step-request" @click.prevent="selectSearchResult" :data-pbid="result.id">
              {{ i18n.makeRequest }}
            </a>
          </div>
        </div>
      </li>
    </ul>
    <ul class="pagination" v-if="hasSearchResults">
      <li v-if="hasPreviousSearchResults" class="page-item">
        <a href="#" class="page-link prev" @click.prevent="getPrevious">
          <span aria-hidden="true">&laquo;</span>
          <span class="sr-only">{{ i18n.previous }}</span>
        </a>
      </li>
      <li v-else class="page-item disabled">
        <a class="page-link" href="#" tabindex="-1">
          <span aria-hidden="true">&laquo;</span>
          <span class="sr-only">{{ i18n.previous }}</span>
        </a>
      </li>
      <li class="page-item disabled">
        <span class="page-link">
          {{ currentResultPage }} / {{ maxResultPage }}
        </span><commit_msg>Don't show pagination if not necessary<commit_after><template>
  <div class="search-result-container">
    <p v-if="hasSearchResults">
      {{ i18n._('publicBodiesFound', {count: searchResultsLength} ) }}
    </p>
    <ul v-if="searchResultsLength > 0 || emptyResults" class="search-results list-unstyled">
      <li v-for="result in searchResults" class="search-result" @click.prevent="selectSearchResult" :data-pbid="result.id">
        <div class="row">
          <div class="col-sm-8">
            <h4 class="pb-heading">
              {{ result.name }}
            </h4>
            <small>
              {{ result.jurisdiction.name }}, {{ result.number_of_requests }} {{ i18n.requests }}
            </small>
          </div>
          <div class="col-sm-4">
            <a class="btn btn-primary" href="#step-request" @click.prevent="selectSearchResult" :data-pbid="result.id">
              {{ i18n.makeRequest }}
            </a>
          </div>
        </div>
      </li>
    </ul>
    <ul class="pagination" v-if="hasSearchResults && maxResultPage > 1">
      <li v-if="hasPreviousSearchResults" class="page-item">
        <a href="#" class="page-link prev" @click.prevent="getPrevious">
          <span aria-hidden="true">&laquo;</span>
          <span class="sr-only">{{ i18n.previous }}</span>
        </a>
      </li>
      <li v-else class="page-item disabled">
        <a class="page-link" href="#" tabindex="-1">
          <span aria-hidden="true">&laquo;</span>
          <span class="sr-only">{{ i18n.previous }}</span>
        </a>
      </li>
      <li class="page-item disabled">
        <span class="page-link">
          {{ currentResultPage }} / {{ maxResultPage }}
        </span>
{'fraction_non_alphanumeric': 0.18505338078291814, 'fraction_numerical': 0.009786476868327402, 'mean_word_length': 2.249518304431599, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 86, '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': '3307461', 'n_tokens_mistral': 1067, 'n_tokens_neox': 1042, 'n_words': 192}