<commit_before>{% extends "baselayout.html" %}

{% block content %}
 
    {# if we have no search term, include a bit of prompt text #}
    {% ifequal query '' %}
    <p>
                Hello and welcome to the sign search section. 
                Here you will find the most comprehensive database of words 
                and their definitions existing on the web. Simply type a word 
                or a letter into the field on the left side of the screen, press 
                search and the corresponding sign will appear.
   </p>
     
    
    {% else %}
      <p>
        {% ifequal wordcount 0 %}
            No words matched your query.
        {% else %}
         {% ifequal wordcount 1 %}
            There is one word that fully or partially match your query. Please select the word below.        
         {% else %}
           There are {{ wordcount }} words that fully or partially match your query. Please select a word from the list below.
         {% endifequal %}
        {% endifequal %}
      </p>
        
        {% if user.is_staff %}
        <p>Items marked * below are not in the web version of the dictionary and would not
        appear in a regular (non staff) search.</p>
        {% ifequal flavour "medical" %}
        <p>In this medical sign bank search, signs are only shown where they are marked
        as "Problematic Medical Signs".  For a view of all health related signs, please logout.</p>
        {% endifequal %}
        {% endif %}
        
      <div id="searchresults">
         <table width="90%">
            <tr>
               <td valign="top">
          {% for word in page.object_list %}
            <p>
              <a href="{% url auslan.views.index %}/{{flavour}}/words/{{ word.text }}-1.html">{{ word.text }}</a>
              {% if not word.inWeb %}*{% endif %}  
            </p>

            {% if forloop.counter|divisibleby:"10" %}
            </td> 
            <td valign="top">
            {% endif %}
            
          {% endfor %}
           </td>
          </tr>
         </table>
   
          {% if page.has_next or page.has_previous %} 
          <p>Jump to results page: 
          {% for p in paginator.page_range %}
             {% ifequal p page.number %}
             <strong>{% ifequal p 0 %}Start{% else %}{{p}}{% endifequal %}</strong>
             {% else %}
             <a href='?query={{query}}&page={{p}}{% ifequal flavour "medical" %}&msb=1{% endifequal %}'>{% ifequal p 0 %}Start{% else %}{{p}}{% endifequal %}</a>
             {% endifequal %}
          {% endfor %}
          </p><commit_msg>fix links in search result<commit_after>{% extends "baselayout.html" %}

{% block content %}
 
    {# if we have no search term, include a bit of prompt text #}
    {% ifequal query '' %}
    <p>
                Hello and welcome to the sign search section. 
                Here you will find the most comprehensive database of words 
                and their definitions existing on the web. Simply type a word 
                or a letter into the field on the left side of the screen, press 
                search and the corresponding sign will appear.
   </p>
     
    
    {% else %}
      <p>
        {% ifequal wordcount 0 %}
            No words matched your query.
        {% else %}
         {% ifequal wordcount 1 %}
            There is one word that fully or partially match your query. Please select the word below.        
         {% else %}
           There are {{ wordcount }} words that fully or partially match your query. Please select a word from the list below.
         {% endifequal %}
        {% endifequal %}
      </p>
        
        {% if user.is_staff %}
        <p>Items marked * below are not in the web version of the dictionary and would not
        appear in a regular (non staff) search.</p>
        {% ifequal flavour "medical" %}
        <p>In this medical sign bank search, signs are only shown where they are marked
        as "Problematic Medical Signs".  For a view of all health related signs, please logout.</p>
        {% endifequal %}
        {% endif %}
        
      <div id="searchresults">
         <table width="90%">
            <tr>
               <td valign="top">
          {% for word in page.object_list %}
            <p>
              <a href="{% url auslan.views.index %}{{flavour}}/words/{{ word.text }}-1.html">{{ word.text }}</a>
              {% if not word.inWeb %}*{% endif %}  
            </p>

            {% if forloop.counter|divisibleby:"10" %}
            </td> 
            <td valign="top">
            {% endif %}
            
          {% endfor %}
           </td>
          </tr>
         </table>
   
          {% if page.has_next or page.has_previous %} 
          <p>Jump to results page: 
          {% for p in paginator.page_range %}
             {% ifequal p page.number %}
             <strong>{% ifequal p 0 %}Start{% else %}{{p}}{% endifequal %}</strong>
             {% else %}
             <a href='?query={{query}}&page={{p}}{% ifequal flavour "medical" %}&msb=1{% endifequal %}'>{% ifequal p 0 %}Start{% else %}{{p}}{% endifequal %}</a>
             {% endifequal %}
          {% endfor %}
          </p>
{'fraction_non_alphanumeric': 0.12413394919168591, 'fraction_numerical': 0.003849114703618168, 'mean_word_length': 1.6089357429718876, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, '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': '5886690', 'n_tokens_mistral': 1548, 'n_tokens_neox': 1375, 'n_words': 523}