<commit_before>{% unless include.js == false %}
<script src="{{ site.baseurl }}/assets/vendor/string_score.js"></script>
<script src="{{ site.baseurl }}/assets/lib/search.js"></script>
{% endunless %}

{% unless include.template == false %}
<div class="search-page">

  <!-- Search form -->
  <form class="grid-noGutter search-form" id="search-form" role="form">
    <input autocomplete="off" id="search-input" name="entry" class="col-10_xs-8 search-input" aria-labelledby="searchFormButton">
    <button class="col search-button" id="searchFormButton">Search</button>
  </form>

  <!-- Spinner while the JSON DB is loading -->
  <div class="progress-container">
    <i class="spinner fa fa-circle-o-notch fa-spin hidden" id="progress"></i>
  </div>

  <!-- Possibly related keywords -->
  <div class="similar hidden" id="similar">
    Possibly related:
    <span id="similar-list">...</span>
  </div>

  <!-- Display number of results -->
  <div class="search-match-string hidden" id="matches">
    <span class="number">#</span>
    result<span class="plural">s</span> found.
  </div><commit_msg>search: Use DuckDuckGo when JS is not enabled<commit_after>{% unless include.js == false %}
<script src="{{ site.baseurl }}/assets/vendor/string_score.js"></script>
<script src="{{ site.baseurl }}/assets/lib/search.js"></script>
{% endunless %}

{% unless include.template == false %}
<div class="search-page">

  <!-- Search form -->
  <form class="grid-noGutter search-form" id="search-form" action="https://duckduckgo.com/" role="search">
    <input autocomplete="off" id="search-input" name="q" class="col-10_xs-8 search-input" aria-labelledby="searchFormButton">
    <input type="hidden" name="sites" value="cockpit-project.org">
    <button class="col search-button" id="searchFormButton">Search</button>
  </form>

  <!-- Spinner while the JSON DB is loading -->
  <div class="progress-container">
    <i class="spinner fa fa-circle-o-notch fa-spin hidden" id="progress"></i>
  </div>

  <!-- Possibly related keywords -->
  <div class="similar hidden" id="similar">
    Possibly related:
    <span id="similar-list">...</span>
  </div>

  <!-- Display number of results -->
  <div class="search-match-string hidden" id="matches">
    <span class="number">#</span>
    result<span class="plural">s</span> found.
  </div>
{'fraction_non_alphanumeric': 0.19793459552495696, 'fraction_numerical': 0.0025817555938037868, 'mean_word_length': 4.201342281879195, 'pattern_counts': {'":': 0, '<': 60, '<?xml version=': 0, '>': 60, 'https://': 1, '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': '2931994', 'n_tokens_mistral': 758, 'n_tokens_neox': 725, 'n_words': 171}