<commit_before>{% extends "base.html" %}
{% load widget_tweaks facet_tags sorting_tags%}

{% block title %}{{ model_type|default:"search result"|add:"s"|title }}{% endblock title %}
{% block body_id %}search{% endblock body_id %}
{% block body_class %}catalog{% endblock body_class %}


{% block extra-js %}
    <script>
        $('ul').each(function(){
            var ul = $(this);
            var count_li = ul.find('li').size();
            if(count_li > 5) { 
            $(this).children('li:gt(4)').hide();
            $(this).append($('<a class="show-more" href="javascript:void(0);">Show More...</a>'));
        }
        });
    
        $('.show-more').click(function(e){
            e.preventDefault();
            $(this).parent('ul').children('li:gt(4)').stop(true,true).slideToggle();
            $('ul').not($(this).parent('ul')).each(function(){
                  $(this).children('li:gt(4)').hide();
            });

            if ($(this).text() == "Show Less..."){
                $(this).html("Show More...");
            } else {
                $(this).html("Show Less...");
            }
        });
    </script>
{% endblock extra-js %}

{% block form %}

    <div class="row-fluid hidden-phone">
        <div class="span10">
            <form class="" method="get" action=".">
                <div class="control-group input-append">
                    {{ form.q|attr:"placeholder:Search the data catalog..." }}
                    {% for facet in form.selected_facets %}
                        <input type="hidden" name="selected_facets" value="{{ facet }}" />
                    {% endfor %}
                    <button class="btn"><i class="icon-search icon-white"></i></button>
                </div>
            </form>
        </div>
    </div>
<commit_msg>[Fixes #95] Changed search filter label from show less to show fewer.<commit_after>{% extends "base.html" %}
{% load widget_tweaks facet_tags sorting_tags%}

{% block title %}{{ model_type|default:"search result"|add:"s"|title }}{% endblock title %}
{% block body_id %}search{% endblock body_id %}
{% block body_class %}catalog{% endblock body_class %}


{% block extra-js %}
    <script>
        $('ul').each(function(){
            var ul = $(this);
            var count_li = ul.find('li').size();
            if(count_li > 5) { 
            $(this).children('li:gt(4)').hide();
            $(this).append($('<a class="show-more" href="javascript:void(0);">Show More...</a>'));
        }
        });
    
        $('.show-more').click(function(e){
            e.preventDefault();
            $(this).parent('ul').children('li:gt(4)').stop(true,true).slideToggle();
            $('ul').not($(this).parent('ul')).each(function(){
                  $(this).children('li:gt(4)').hide();
            });

            if ($(this).text() == "Show Fewer..."){
                $(this).html("Show More...");
            } else {
                $(this).html("Show Fewer...");
            }
        });
    </script>
{% endblock extra-js %}

{% block form %}

    <div class="row-fluid hidden-phone">
        <div class="span10">
            <form class="" method="get" action=".">
                <div class="control-group input-append">
                    {{ form.q|attr:"placeholder:Search the data catalog..." }}
                    {% for facet in form.selected_facets %}
                        <input type="hidden" name="selected_facets" value="{{ facet }}" />
                    {% endfor %}
                    <button class="btn"><i class="icon-search icon-white"></i></button>
                </div>
            </form>
        </div>
    </div>

{'fraction_non_alphanumeric': 0.2058177826564215, 'fraction_numerical': 0.0043907793633369925, 'mean_word_length': 1.8814229249011858, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 39, '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': '1994059', 'n_tokens_mistral': 1118, 'n_tokens_neox': 1027, 'n_words': 197}