<commit_before><%inherit file="base.mako"/>
<%def name="title()">Search</%def>
<%def name="content()">
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
    <script>
        $('input[name=q]').remove();
    </script>
    <div id="searchControls" class="scripted">
        <div class="row">
            <div class="col-md-13">
                <form class="input-group" data-bind="submit: submit">
                    <input type="text" class="form-control" placeholder="Search" data-bind="value: query">
                    <span class="input-group-btn">
                        <button type=button class="btn btn-default" data-bind="click: help"><i class="icon-question"></i></button>
                        <button type=button class="btn btn-default" data-bind="click: submit"><i class="icon-search"></i></button>
                    </span>
                </form>
            </div>
        </div>

        <br />

        <div class="row">
            <!-- ko if: categories().length > 0-->
            <div class="col-md-3">
                <div class="row">
                    <ul class="nav nav-pills nav-stacked" data-bind="foreach: categories">
                        <!-- ko if: count() > 0 -->
                        <!-- ko if: $parent.category().name() === name() -->
                                <li class="active">
                                    <a data-bind="click: $parent.filter.bind($data)">{{ display() }}<span class="badge pull-right">{{count()}}</span></a>
                                </li>
                            <!-- /ko -->
                            <!-- ko if: $parent.category().name() !== name() -->
                                <li>
                                    <a data-bind="click: $parent.filter.bind($data)">{{ display() }}<span class="badge pull-right">{{count()}}</span></a>
                                </li>
                            <!-- /ko -->
                        <!-- /ko -->
                    </ul>
                </div>
                <!-- ko if: tags().length -->
                <div class="row">
                    <h4> Improve your search:</h4>
                    <span class="tag-cloud" data-bind="foreach: tags">
                        <!-- ko if: count() === $parent.tagMaxCount() && count() > $parent.tagMaxCount()/2  -->
                        <span class="cloud-tag tag-big" data-bind="click: $root.addTag.bind(name)">
                            {{ name() }}
                        </span>
                        <!-- /ko -->
                        <!-- ko if: count() < $parent.tagMaxCount() && count() > $parent.tagMaxCount()/2 -->
                        <span class="cloud-tag tag-med" data-bind="click: $root.addTag.bind(name)">
                            {{ name() }}
                        </span>
                        <!-- /ko -->
                        <!-- ko if: count() <= $parent.tagMaxCount()/2-->
                        <span class="cloud-tag tag-sm" data-bind="click: $root.addTag.bind(name)">
                            {{ name() }}
                        </span>
                        <!-- /ko -->
                    </span>
                </div>
                <!-- /ko -->
            </div>
            <!-- /ko -->
            <div class="col-md-9">
                <!-- ko if: searchStarted() && !totalCount() -->
                <div class="results hidden" data-bind="css: {hidden: totalCount() }">No results found.</div>
                <!-- /ko -->
                <!-- ko if: totalCount() -->
                <div data-bind="foreach: results">
                    <div class="well" data-bind="template: { name: category, data: $data}"></div>
                </div>
                <ul class="pager">
                    <li data-bind="css {disabled: !prevPageExists()}">
                        <a href="#" data-bind="click: pagePrev">Previous Page </a>
                    </li>
                    <span data-bind="visible: totalPages() > 0">
                        <span data-bind="text: navLocation"></span>
                    </span>
                    <li data-bind="css {disabled: !nextPageExists()}">
                        <a href="#" data-bind="click: pageNext"> Next Page</a>
                    </li>

                </ul>
                <!-- /ko -->


                <div class="buffer"></div>
            </div><!--col-->
        </div><!--row-->
    </div>

    <script type="text/html" id="metadata"><commit_msg>Fix bootstrap formatting on search page.<commit_after><%inherit file="base.mako"/>
<%def name="title()">Search</%def>
<%def name="content()">
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
    <script>
        $('input[name=q]').remove();
    </script>
    <div id="searchControls" class="scripted">
        <div class="row">
            <div class="col-md-12">
                <form class="input-group" data-bind="submit: submit">
                    <input type="text" class="form-control" placeholder="Search" data-bind="value: query">
                    <span class="input-group-btn">
                        <button type=button class="btn btn-default" data-bind="click: help"><i class="icon-question"></i></button>
                        <button type=button class="btn btn-default" data-bind="click: submit"><i class="icon-search"></i></button>
                    </span>
                </form>
                <br />

                <div class="row">
                    <!-- ko if: categories().length > 0-->
                    <div class="col-md-3">
                        <div class="row">
                            <div class="col-md-12">
                                <ul class="nav nav-pills nav-stacked" data-bind="foreach: categories">
                                    <!-- ko if: count() > 0 -->
                                    <!-- ko if: $parent.category().name() === name() -->
                                            <li class="active">
                                                <a data-bind="click: $parent.filter.bind($data)">{{ display() }}<span class="badge pull-right">{{count()}}</span></a>
                                            </li>
                                        <!-- /ko -->
                                        <!-- ko if: $parent.category().name() !== name() -->
                                            <li>
                                                <a data-bind="click: $parent.filter.bind($data)">{{ display() }}<span class="badge pull-right">{{count()}}</span></a>
                                            </li>
                                        <!-- /ko -->
                                    <!-- /ko -->
                                </ul>
                            </div>
                        </div>
                        <!-- ko if: tags().length -->
                        <div class="row">
                            <div class="col-md-12">
                                <h4> Improve your search:</h4>
                                <span class="tag-cloud" data-bind="foreach: tags">
                                    <!-- ko if: count() === $parent.tagMaxCount() && count() > $parent.tagMaxCount()/2  -->
                                    <span class="cloud-tag tag-big" data-bind="click: $root.addTag.bind(name)">
                                        {{ name() }}
                                    </span>
                                    <!-- /ko -->
                                    <!-- ko if: count() < $parent.tagMaxCount() && count() > $parent.tagMaxCount()/2 -->
                                    <span class="cloud-tag tag-med" data-bind="click: $root.addTag.bind(name)">
                                        {{ name() }}
                                    </span>
                                    <!-- /ko -->
                                    <!-- ko if: count() <= $parent.tagMaxCount()/2-->
                                    <span class="cloud-tag tag-sm" data-bind="click: $root.addTag.bind(name)">
                                        {{ name() }}
                                    </span>
                                    <!-- /ko -->
                                </span>
                            </div>
                        </div>
                        <!-- /ko -->
                    </div>
                    <!-- /ko -->
                    <div class="col-md-9">
                        <!-- ko if: searchStarted() && !totalCount() -->
                        <div class="results hidden" data-bind="css: {hidden: totalCount() }">No results found.</div>
                        <!-- /ko -->
                        <!-- ko if: totalCount() -->
                        <div data-bind="foreach: results">
                            <div class="well" data-bind="template: { name: category, data: $data}"></div>
                        </div>
                        <ul class="pager">
                            <li data-bind="css {disabled: !prevPageExists()}">
                                <a href="#" data-bind="click: pagePrev">Previous Page </a>
                            </li>
                            <span data-bind="visible: totalPages() > 0">
                                <span data-bind="text: navLocation"></span>
                            </span>
                            <li data-bind="css {disabled: !nextPageExists()}">
                                <a href="#" data-bind="click: pageNext"> Next Page</a>
                            </li>

                        </ul>
                        <!-- /ko -->


                        <div class="buffer"></div>
                    </div><!--col-->
                </div><!--row-->
            </div><!--col-->
        </div><!--row-->
    </div>

    <script type="text/html" id="metadata">
{'fraction_non_alphanumeric': 0.17443261699136373, 'fraction_numerical': 0.003414340228961639, 'mean_word_length': 0.9697389240506329, 'pattern_counts': {'":': 0, '<': 225, '<?xml version=': 0, '>': 231, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 54, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1981244', 'n_tokens_mistral': 2490, 'n_tokens_neox': 2328, 'n_words': 474}