<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-12">
                <form class="input-group" data-bind="submit: submit">
                    <input type="text" class="form-control" placeholder="Search" data-bind="value: query, hasFocus: true">
                    <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: $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 -->

                                </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 pointer" 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 pointer" data-bind="click: $root.addTag.bind(name)">
                                        {{ name }}
                                    </span>
                                    <!-- /ko -->
                                    <!-- ko if: count <= $parent.tagMaxCount()/2-->
                                    <span class="cloud-tag tag-sm pointer" data-bind="click: $root.addTag.bind(name)">
                                        {{ name }}
                                    </span>
                                    <!-- /ko -->
                                </span>
                            </div>
                        </div>
                        <br />
                        <!-- /ko -->
                    </div>
                    <!-- /ko -->
                    <div class="col-md-9">
                        <!-- ko if: searchStarted() && !totalCount() -->
                        <div class="search-results hidden" data-bind="css: {hidden: totalCount() }">No results found.</div>
                        <!-- /ko -->
                        <!-- ko if: totalCount() -->
                        <div data-bind="foreach: results">
                            <div class="search-result" 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">
        <!-- ko if: $data.links -->
            <h4><a data-bind="attr.href: links[0].url">{{ title }}</a></h4>
        <!-- /ko -->

        <!-- ko ifnot: $data.links -->
            <h4><a data-bind="attr.href: id.url">{{ title }}</a></h4>
        <!-- /ko -->

        <h5>Description: <small>{{ description | default:"No Description" | fit:500}}</small></h5>

        <!-- ko if: contributors.length > 0 -->
        <h5>
            Contributors: <small data-bind="foreach: contributors">
                <span>{{ $data }}</span>
            <!-- ko if: ($index()+1) < ($parent.contributors.length) -->&nbsp;- <!-- /ko -->
            </small>
        </h5>
        <!-- /ko -->

        <!-- ko if: $data.source -->
        <h5>Source: <small>{{ source }}</small></h5>
        <!-- /ko -->

        <!-- ko if: $data.isResource -->
        <button class="btn btn-primary pull-right" data-bind="click: $parents[1].claim.bind($data, _id)">Curate This</button>
        <br>
        <!-- /ko -->
    </script>
    <script type="text/html" id="user">
        <div class="container">
                <div class="row">
                <div class="col-md-1">
                    <img data-bind="visible: gravatarUrl(), attr.src: gravatarUrl()">
                </div>
                <div class="col-md-11">
                    <h4><a data-bind="attr.href: url"><span>{{ user }}</span></a></h4>
                    <p>
                        <span data-bind="visible: job_title, text: job_title"></span><!-- ko if: job_title && job --> at <!-- /ko -->
                        <span data-bind="visible: job, text: job"></span><!-- ko if: job_title || job --><br /><!-- /ko -->
                        <span data-bind="visible: degree, text: degree"></span><!-- ko if: degree && school --> from <!-- /ko -->
                        <span data-bind="visible: school, text: school"></span><!-- ko if: degree || school --><br /><!-- /ko -->
                    </p>
                    <!-- ko if: social -->
                    <ul class="list-inline">
                        <li data-bind="visible: social.personal">
                            <a data-bind="attr.href: social.personal">
                                <i class="fa fa-globe" data-toggle="tooltip" title="Personal Website"></i>
                            </a>
                        </li>

                        <li data-bind="visible: social.twitter">
                            <a data-bind="attr.href: social.twitter">
                                <i class="fa fa-twitter" data-toggle="tooltip" title="Twitter"></i>
                            </a>
                        </li>
                        <li data-bind="visible: social.github">
                            <a data-bind="attr.href: social.github">
                                <i class="fa fa-github-alt" data-toggle="tooltip" title="Github"></i>
                            </a>
                        </li>
                        <li data-bind="visible: social.linkedIn">
                            <a data-bind="attr.href: social.linkedIn">
                                <i class="fa fa-linkedin" data-toggle="tooltip" title="LinkedIn"></i>
                            </a>
                        </li>
                        <li data-bind="visible: social.scholar">
                            <a data-bind="attr.href: social.scholar">
                                <img height=14 src="/static/img/googlescholar.png"data-toggle="tooltip" title="Google Scholar">
                            </a>
                        </li>
                        <li data-bind="visible: social.impactStory">
                            <a data-bind="attr.href: social.impactStory">
                                <i class="fa fa-info-circle" data-toggle="tooltip" title="ImpactStory"></i>
                            </a>
                        </li>
                        <li data-bind="visible: social.orcid">
                            <a data-bind="attr.href: social.orcid">
                                <i class="fa" data-toggle="tooltip" title="ORCiD">iD</i>
                            </a>
                        </li>
                        <li data-bind="visible: social.researcherId">
                            <a data-bind="attr.href: social.researcherId">
                                <i class="fa" data-toggle="tooltip" title="ResearcherID">R</i>
                            </a>
                        </li>
                    </ul>
                    <!-- /ko -->
                </div>
            </div>
        </div>

    </script>
    <script type="text/html" id="project">
        <h4><a data-bind="attr.href: url">{{ title }}</a></h4>
        <p data-bind="visible: description"><strong>Description:</strong> {{ description | fit:500 }}</p>

        <!-- ko if: contributors.length > 0 -->
        <p>
            <strong>Contributors:</strong> <span data-bind="foreach: contributors">
                <a data-bind="attr.href: $parent.contributors_url[$index()]">{{ $data }}</a>
            <!-- ko if: ($index()+1) < ($parent.contributors.length) -->&nbsp;- <!-- /ko -->
            </span>
        </p>
        <!-- /ko -->
        <!-- ko if: tags.length > 0 -->
        <p data-bind="visible: tags.length"><strong>Tags:</strong>
            <span class="tag-cloud" data-bind="foreach: tags">
                <span class="cloud-tag tag-sm pointer" data-bind="text: $data, click: $root.addTag.bind($parentContext, $data)">
                </span>
            </span>
        </p>
        <p><strong>Jump to:</strong>
            <a data-bind="attr.href: wikiUrl">Wiki</a> -
            <a data-bind="attr.href: filesUrl">Files</a>
        </p>
        <!-- /ko -->
    </script>
    <script type="text/html" id="app">
        <h4><a data-bind="attr.href: url">{{ title }}</a></h4>
        <p data-bind="visible: description"><strong>Description:</strong> {{ description | fit:500 }}</p>

        <!-- ko if: contributors.length > 0 -->
        <p>
            <strong>Contributors:</strong> <span data-bind="foreach: contributors">
                <a data-bind="attr.href: $parent.contributors_url[$index()]">{{ $data }}</a>
            <!-- ko if: ($index()+1) < ($parent.contributors.length) -->&nbsp;- <!-- /ko -->
            </span>
        </p>
        <!-- /ko -->
        <!-- ko if: tags.length > 0 -->
        <p data-bind="visible: tags.length"><strong>Tags:</strong>
            <span class="tag-cloud" data-bind="foreach: tags">
                <span class="cloud-tag tag-sm pointer" data-bind="text: $data, click: $root.addTag.bind($parentContext, $data)">
                </span>
            </span>
        </p>
        <!-- /ko -->
    </script>
    <script type="text/html" id="component">
        <!-- ko if: parent_url -->
            <h4><a data-bind="attr.href: parent_url">{{ parent_title}}</a> / <a data-bind="attr.href: url">{{title }}</a></h4>
        <!-- /ko -->
        <!-- ko if: !parent_url -->
            <h4>{{ parent_title}} / <a data-bind="attr.href: url">{{title }}</a></h4>
        <!-- /ko -->

        <p data-bind="visible: description"><strong>Description:</strong> {{ description | fit:500 }}</p>

        <!-- ko if: contributors.length > 0 -->
        <p>
            <strong>Contributors:</strong> <span data-bind="foreach: contributors">
                <a data-bind="attr.href: $parent.contributors_url[$index()]">{{ $data }}</a>
            <!-- ko if: ($index()+1) < ($parent.contributors.length) -->&nbsp;- <!-- /ko -->
            </span>
        </p>
        <!-- /ko -->
        <!-- ko if: tags.length > 0 -->
        <p data-bind="visible: tags.length"><strong>Tags:</strong>
            <span class="tag-cloud" data-bind="foreach: tags">
                <span class="cloud-tag tag-sm pointer" data-bind="text: $data, click: $root.addTag.bind($parentContext, $data)">
                </span>
            </span>
        </p>
        <p><strong>Jump to:</strong>
            <a data-bind="attr.href: wikiUrl">Wiki</a> -
            <a data-bind="attr.href: filesUrl">Files</a>
        </p>
        <!-- /ko -->
    </script>
    <script type="text/html" id="registration">
        <h4><a data-bind="attr.href: url">{{ title }}</a>  (Registration)</h4>
        <p data-bind="visible: description"><strong>Description:</strong> {{ description | fit:500 }}</p>

        <!-- ko if: contributors.length > 0 -->
        <p>
            <strong>Contributors:</strong> <span data-bind="foreach: contributors">
                <a data-bind="attr.href: $parent.contributors_url[$index()]">{{ $data }}</a>
            <!-- ko if: ($index()+1) < ($parent.contributors.length) -->&nbsp;- <!-- /ko -->
            </span>
        </p>
        <!-- /ko -->
        <!-- ko if: tags.length > 0 -->
        <p data-bind="visible: tags.length"><strong>Tags:</strong>
            <span class="tag-cloud" data-bind="foreach: tags">
                <span class="cloud-tag tag-sm pointer" data-bind="text: $data, click: $root.addTag.bind($parentContext, $data)">
                </span>
            </span>
        </p>
        <p><strong>Jump to:</strong>
            <a data-bind="attr.href: wikiUrl">Wiki</a> -
            <a data-bind="attr.href: filesUrl">Files</a>
        </p>
        <!-- /ko -->
    </script>
</%def>

<%def name="javascript_bottom()">

        <script type='text/javascript'>
            $script(['/static/js/search.js',
                '/static/vendor/bower_components/history.js/scripts/bundled/html4+html5/jquery.history.js'], function(){
            var search =  new Search('#searchControls', '/api/v1/search/', '');
            });
        </script>


</%def>
<commit_msg>Keep name column from being too large so that extra-long names and social/job/school information will not get cut off.<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, hasFocus: true">
                    <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: $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 -->

                                </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 pointer" 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 pointer" data-bind="click: $root.addTag.bind(name)">
                                        {{ name }}
                                    </span>
                                    <!-- /ko -->
                                    <!-- ko if: count <= $parent.tagMaxCount()/2-->
                                    <span class="cloud-tag tag-sm pointer" data-bind="click: $root.addTag.bind(name)">
                                        {{ name }}
                                    </span>
                                    <!-- /ko -->
                                </span>
                            </div>
                        </div>
                        <br />
                        <!-- /ko -->
                    </div>
                    <!-- /ko -->
                    <div class="col-md-9">
                        <!-- ko if: searchStarted() && !totalCount() -->
                        <div class="search-results hidden" data-bind="css: {hidden: totalCount() }">No results found.</div>
                        <!-- /ko -->
                        <!-- ko if: totalCount() -->
                        <div data-bind="foreach: results">
                            <div class="search-result" 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">
        <!-- ko if: $data.links -->
            <h4><a data-bind="attr.href: links[0].url">{{ title }}</a></h4>
        <!-- /ko -->

        <!-- ko ifnot: $data.links -->
            <h4><a data-bind="attr.href: id.url">{{ title }}</a></h4>
        <!-- /ko -->

        <h5>Description: <small>{{ description | default:"No Description" | fit:500}}</small></h5>

        <!-- ko if: contributors.length > 0 -->
        <h5>
            Contributors: <small data-bind="foreach: contributors">
                <span>{{ $data }}</span>
            <!-- ko if: ($index()+1) < ($parent.contributors.length) -->&nbsp;- <!-- /ko -->
            </small>
        </h5>
        <!-- /ko -->

        <!-- ko if: $data.source -->
        <h5>Source: <small>{{ source }}</small></h5>
        <!-- /ko -->

        <!-- ko if: $data.isResource -->
        <button class="btn btn-primary pull-right" data-bind="click: $parents[1].claim.bind($data, _id)">Curate This</button>
        <br>
        <!-- /ko -->
    </script>
    <script type="text/html" id="user">
        <div class="container">
                <div class="row">
                <div class="col-md-1">
                    <img data-bind="visible: gravatarUrl(), attr.src: gravatarUrl()">
                </div>
                <div class="col-md-7">
                    <h4><a data-bind="attr.href: url"><span>{{ user }}</span></a></h4>
                    <p>
                        <span data-bind="visible: job_title, text: job_title"></span><!-- ko if: job_title && job --> at <!-- /ko -->
                        <span data-bind="visible: job, text: job"></span><!-- ko if: job_title || job --><br /><!-- /ko -->
                        <span data-bind="visible: degree, text: degree"></span><!-- ko if: degree && school --> from <!-- /ko -->
                        <span data-bind="visible: school, text: school"></span><!-- ko if: degree || school --><br /><!-- /ko -->
                    </p>
                    <!-- ko if: social -->
                    <ul class="list-inline">
                        <li data-bind="visible: social.personal">
                            <a data-bind="attr.href: social.personal">
                                <i class="fa fa-globe" data-toggle="tooltip" title="Personal Website"></i>
                            </a>
                        </li>

                        <li data-bind="visible: social.twitter">
                            <a data-bind="attr.href: social.twitter">
                                <i class="fa fa-twitter" data-toggle="tooltip" title="Twitter"></i>
                            </a>
                        </li>
                        <li data-bind="visible: social.github">
                            <a data-bind="attr.href: social.github">
                                <i class="fa fa-github-alt" data-toggle="tooltip" title="Github"></i>
                            </a>
                        </li>
                        <li data-bind="visible: social.linkedIn">
                            <a data-bind="attr.href: social.linkedIn">
                                <i class="fa fa-linkedin" data-toggle="tooltip" title="LinkedIn"></i>
                            </a>
                        </li>
                        <li data-bind="visible: social.scholar">
                            <a data-bind="attr.href: social.scholar">
                                <img height=14 src="/static/img/googlescholar.png"data-toggle="tooltip" title="Google Scholar">
                            </a>
                        </li>
                        <li data-bind="visible: social.impactStory">
                            <a data-bind="attr.href: social.impactStory">
                                <i class="fa fa-info-circle" data-toggle="tooltip" title="ImpactStory"></i>
                            </a>
                        </li>
                        <li data-bind="visible: social.orcid">
                            <a data-bind="attr.href: social.orcid">
                                <i class="fa" data-toggle="tooltip" title="ORCiD">iD</i>
                            </a>
                        </li>
                        <li data-bind="visible: social.researcherId">
                            <a data-bind="attr.href: social.researcherId">
                                <i class="fa" data-toggle="tooltip" title="ResearcherID">R</i>
                            </a>
                        </li>
                    </ul>
                    <!-- /ko -->
                </div>
            </div>
        </div>

    </script>
    <script type="text/html" id="project">
        <h4><a data-bind="attr.href: url">{{ title }}</a></h4>
        <p data-bind="visible: description"><strong>Description:</strong> {{ description | fit:500 }}</p>

        <!-- ko if: contributors.length > 0 -->
        <p>
            <strong>Contributors:</strong> <span data-bind="foreach: contributors">
                <a data-bind="attr.href: $parent.contributors_url[$index()]">{{ $data }}</a>
            <!-- ko if: ($index()+1) < ($parent.contributors.length) -->&nbsp;- <!-- /ko -->
            </span>
        </p>
        <!-- /ko -->
        <!-- ko if: tags.length > 0 -->
        <p data-bind="visible: tags.length"><strong>Tags:</strong>
            <span class="tag-cloud" data-bind="foreach: tags">
                <span class="cloud-tag tag-sm pointer" data-bind="text: $data, click: $root.addTag.bind($parentContext, $data)">
                </span>
            </span>
        </p>
        <p><strong>Jump to:</strong>
            <a data-bind="attr.href: wikiUrl">Wiki</a> -
            <a data-bind="attr.href: filesUrl">Files</a>
        </p>
        <!-- /ko -->
    </script>
    <script type="text/html" id="app">
        <h4><a data-bind="attr.href: url">{{ title }}</a></h4>
        <p data-bind="visible: description"><strong>Description:</strong> {{ description | fit:500 }}</p>

        <!-- ko if: contributors.length > 0 -->
        <p>
            <strong>Contributors:</strong> <span data-bind="foreach: contributors">
                <a data-bind="attr.href: $parent.contributors_url[$index()]">{{ $data }}</a>
            <!-- ko if: ($index()+1) < ($parent.contributors.length) -->&nbsp;- <!-- /ko -->
            </span>
        </p>
        <!-- /ko -->
        <!-- ko if: tags.length > 0 -->
        <p data-bind="visible: tags.length"><strong>Tags:</strong>
            <span class="tag-cloud" data-bind="foreach: tags">
                <span class="cloud-tag tag-sm pointer" data-bind="text: $data, click: $root.addTag.bind($parentContext, $data)">
                </span>
            </span>
        </p>
        <!-- /ko -->
    </script>
    <script type="text/html" id="component">
        <!-- ko if: parent_url -->
            <h4><a data-bind="attr.href: parent_url">{{ parent_title}}</a> / <a data-bind="attr.href: url">{{title }}</a></h4>
        <!-- /ko -->
        <!-- ko if: !parent_url -->
            <h4>{{ parent_title}} / <a data-bind="attr.href: url">{{title }}</a></h4>
        <!-- /ko -->

        <p data-bind="visible: description"><strong>Description:</strong> {{ description | fit:500 }}</p>

        <!-- ko if: contributors.length > 0 -->
        <p>
            <strong>Contributors:</strong> <span data-bind="foreach: contributors">
                <a data-bind="attr.href: $parent.contributors_url[$index()]">{{ $data }}</a>
            <!-- ko if: ($index()+1) < ($parent.contributors.length) -->&nbsp;- <!-- /ko -->
            </span>
        </p>
        <!-- /ko -->
        <!-- ko if: tags.length > 0 -->
        <p data-bind="visible: tags.length"><strong>Tags:</strong>
            <span class="tag-cloud" data-bind="foreach: tags">
                <span class="cloud-tag tag-sm pointer" data-bind="text: $data, click: $root.addTag.bind($parentContext, $data)">
                </span>
            </span>
        </p>
        <p><strong>Jump to:</strong>
            <a data-bind="attr.href: wikiUrl">Wiki</a> -
            <a data-bind="attr.href: filesUrl">Files</a>
        </p>
        <!-- /ko -->
    </script>
    <script type="text/html" id="registration">
        <h4><a data-bind="attr.href: url">{{ title }}</a>  (Registration)</h4>
        <p data-bind="visible: description"><strong>Description:</strong> {{ description | fit:500 }}</p>

        <!-- ko if: contributors.length > 0 -->
        <p>
            <strong>Contributors:</strong> <span data-bind="foreach: contributors">
                <a data-bind="attr.href: $parent.contributors_url[$index()]">{{ $data }}</a>
            <!-- ko if: ($index()+1) < ($parent.contributors.length) -->&nbsp;- <!-- /ko -->
            </span>
        </p>
        <!-- /ko -->
        <!-- ko if: tags.length > 0 -->
        <p data-bind="visible: tags.length"><strong>Tags:</strong>
            <span class="tag-cloud" data-bind="foreach: tags">
                <span class="cloud-tag tag-sm pointer" data-bind="text: $data, click: $root.addTag.bind($parentContext, $data)">
                </span>
            </span>
        </p>
        <p><strong>Jump to:</strong>
            <a data-bind="attr.href: wikiUrl">Wiki</a> -
            <a data-bind="attr.href: filesUrl">Files</a>
        </p>
        <!-- /ko -->
    </script>
</%def>

<%def name="javascript_bottom()">

        <script type='text/javascript'>
            $script(['/static/js/search.js',
                '/static/vendor/bower_components/history.js/scripts/bundled/html4+html5/jquery.history.js'], function(){
            var search =  new Search('#searchControls', '/api/v1/search/', '');
            });
        </script>


</%def>

{'fraction_non_alphanumeric': 0.1851704733531943, 'fraction_numerical': 0.005196954650777888, 'mean_word_length': 1.2095370438089665, 'pattern_counts': {'":': 0, '<': 825, '<?xml version=': 0, '>': 837, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 108, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7365778', 'n_tokens_mistral': 8284, 'n_tokens_neox': 7868, 'n_words': 1610}