<commit_before>{% extends 'servicedirectory/content_base.html' %}
{% load i18n %}
{% block inner_content %}
  {% block inner_banner %}
    <div class="service-dir__banner">
      <h1 class="heading service-dir__heading">{% trans "Clinic Service Finder" %}</h1>
      <ul class="keywords-list">
        {% if search_term and not search_term == 'None' %}
          <li class="keywords__item">{% trans "Service" %}:
            <span class="keywords__term">{{ search_term }}</span>
          </li>
        {% elif keywords %}
          <li class="keywords__item">{% trans "Service" %}:
            <span class="keywords__term">
              {% for keyword in keywords  %}
                {% if forloop.counter < 4 %}
                  {{ keyword }}{% if not forloop.last and forloop.counter < 3  %}, {% endif %}
                  {% if not forloop.last and forloop.counter == 3 %}...{% endif %}
                {% endif %}
              {% endfor %}
            </span>
          </li>
        {% endif %}
      </ul>
    </div>
  {% endblock %}
  {% block sd_breadcrumbs %}
    <div class="call-to-action call-to-action--breadcrumbs">
      <a href="{% url 'molo.servicedirectory:home' %}" class="call-to-action__nav-item call-to-action__nav-item--back">Back</a>
    </div>
  {% endblock %}
  <!----------------------------------------------------------------------------------->
  <h6 class="service-dir__pagination">{% trans "Step 3 of 4" %}</h6>
  <h3 class="service-dir__subtitle">{% trans "Confirm the village/town" %}</h3>
  <p class="service-dir__body">
    {% trans "Please confirm that you are looking for a clinic in" %}:
  </p>
  <h6 class="service-dir__address-title">
    {% if SERVICE_DIRECTORY_MULTI_CATEGORY_SELECT %}
      {% with autocomplete_suggestions.predictions|first as topPrediction %}
        <a class="service-dir__address-anchor"
           href="{% url 'molo.servicedirectory:organisation-results' %}?place_id={{ prediction.place_id }}&location={{ location_term }}&search={{ search_term }}{% for category in categories  %}&categories[]={{ category }}{% endfor %}{% for keyword in keywords  %}&keywords[]={{ keyword }}{% endfor %}">
            {{ topPrediction.description }}
          </a>
      {% endwith %}
    {% else %}
      {% with autocomplete_suggestions.predictions|first as topPrediction %}
        <a class="service-dir__address-anchor"
            href="{% url 'molo.servicedirectory:organisation-results' %}?place_id={{ prediction.place_id }}&location={{ location_term }}&search={{ search_term }}"><commit_msg>limit for loop to only four iterations<commit_after>{% extends 'servicedirectory/content_base.html' %}
{% load i18n %}
{% block inner_content %}
  {% block inner_banner %}
    <div class="service-dir__banner">
      <h1 class="heading service-dir__heading">{% trans "Clinic Service Finder" %}</h1>
      <ul class="keywords-list">
        {% if search_term and not search_term == 'None' %}
          <li class="keywords__item">{% trans "Service" %}:
            <span class="keywords__term">{{ search_term }}</span>
          </li>
        {% elif keywords %}
          <li class="keywords__item">{% trans "Service" %}:
            <span class="keywords__term">
              {% for keyword in keywords|slice:":4"  %}
                {% if forloop.counter < 4 %}
                  {{ keyword }}{% if not forloop.last and forloop.counter < 3  %}, {% endif %}
                {% endif %}
                {% if not forloop.last and forloop.counter == 3 %}...{% endif %}
              {% endfor %}
            </span>
          </li>
        {% endif %}
      </ul>
    </div>
  {% endblock %}
  {% block sd_breadcrumbs %}
    <div class="call-to-action call-to-action--breadcrumbs">
      <a href="{% url 'molo.servicedirectory:home' %}" class="call-to-action__nav-item call-to-action__nav-item--back">Back</a>
    </div>
  {% endblock %}
  <!----------------------------------------------------------------------------------->
  <h6 class="service-dir__pagination">{% trans "Step 3 of 4" %}</h6>
  <h3 class="service-dir__subtitle">{% trans "Confirm the village/town" %}</h3>
  <p class="service-dir__body">
    {% trans "Please confirm that you are looking for a clinic in" %}:
  </p>
  <h6 class="service-dir__address-title">
    {% if SERVICE_DIRECTORY_MULTI_CATEGORY_SELECT %}
      {% with autocomplete_suggestions.predictions|first as topPrediction %}
        <a class="service-dir__address-anchor"
           href="{% url 'molo.servicedirectory:organisation-results' %}?place_id={{ prediction.place_id }}&location={{ location_term }}&search={{ search_term }}{% for category in categories  %}&categories[]={{ category }}{% endfor %}{% for keyword in keywords  %}&keywords[]={{ keyword }}{% endfor %}">
            {{ topPrediction.description }}
          </a>
      {% endwith %}
    {% else %}
      {% with autocomplete_suggestions.predictions|first as topPrediction %}
        <a class="service-dir__address-anchor"
            href="{% url 'molo.servicedirectory:organisation-results' %}?place_id={{ prediction.place_id }}&location={{ location_term }}&search={{ search_term }}">
{'fraction_non_alphanumeric': 0.1970817120622568, 'fraction_numerical': 0.005642023346303502, 'mean_word_length': 2.53819683413627, 'pattern_counts': {'":': 1, '<': 65, '<?xml version=': 0, '>': 61, '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': '4625297', 'n_tokens_mistral': 1651, 'n_tokens_neox': 1501, 'n_words': 342}