<commit_before>{% extends "layout.html" %}
{% block content %}
<div class="container">
    <br />
    <div class="row">
        <div class="col-md">
            <h3>Projects
              {% if current_user.is_authenticated %}
              <a href="{{ url_for('project_bp.form') }}">
                <i class="fas fa-plus-circle" aria-hidden="true"></i>
              </a>
              {% endif %}
            </h3>
        </div>
        <div class="col-md">
            <form method="GET" id="searchForm">
                <div class="form-row align-items-center float-right">
                    <div class="col-auto">
                        <label class="sr-only" for="inlineFormInput">Search</label>
                        <input type="text" class="form-control mb-2" id="inlineFormInput" name="description" placeholder="Search">
                    </div>
                    <div class="col-auto">
                        <button type="submit" class="btn btn-secondary mb-2">Submit</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div id="list-projects" class="list-group"></div>
    <br />
    <nav id="navigation" style="display: none;">
        <ul class="pagination">
            <li class="page-item">
                <a class="page-link" href="#" id="paginationF">First</a>
            </li>
            <li class="page-item">
                <a class="page-link" href="#" id="pagination1"></a>
            </li>
            <li class="page-item">
                <a class="page-link" href="#" id="pagination2"></a>
            </a>
            </li>
            <li class="page-item">
                <a class="page-link" href="#" id="pagination3"></a>
            </li>
            <li class="page-item">
                <a class="page-link" href="#" id="paginationL">Last</a>
            </li>
        </ul>
    </nav>
</div><!-- /.container -->
<script>
$(document).ready(function() {
    var url = "{{ url_for('projectapi0.projectapi',) }}" + "?results_per_page=50";
    page_number = getUrlParameter('page');
    if (typeof page_number !== 'undefined') {
        url = url.concat("&page="+page_number);
    }
    var filters = [];
    tag_param = getUrlParameter('tag');
    if (typeof tag_param !== 'undefined') {
        filters.push({"name": "tag_objs", "op": "any", "val": {"name":"text","op":"eq","val": tag_param}});
    }
    organization_param = getUrlParameter('organization');
    if (typeof organization_param !== 'undefined') {
        filters.push({"name":"organization","op":"has","val":{"name":"name","op":"eq","val": organization_param}});
    }
    license_param = getUrlParameter('license');
    if (typeof license_param !== 'undefined') {
        filters.push({"name":"licenses","op":"any","val":{"name":"license_id","op":"eq","val": license_param}});
    }
    language_param = getUrlParameter('language');
    if (typeof language_param !== 'undefined') {<commit_msg>Enable case insensitive search on tags.<commit_after>{% extends "layout.html" %}
{% block content %}
<div class="container">
    <br />
    <div class="row">
        <div class="col-md">
            <h3>Projects
              {% if current_user.is_authenticated %}
              <a href="{{ url_for('project_bp.form') }}">
                <i class="fas fa-plus-circle" aria-hidden="true"></i>
              </a>
              {% endif %}
            </h3>
        </div>
        <div class="col-md">
            <form method="GET" id="searchForm">
                <div class="form-row align-items-center float-right">
                    <div class="col-auto">
                        <label class="sr-only" for="inlineFormInput">Search</label>
                        <input type="text" class="form-control mb-2" id="inlineFormInput" name="description" placeholder="Search">
                    </div>
                    <div class="col-auto">
                        <button type="submit" class="btn btn-secondary mb-2">Submit</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div id="list-projects" class="list-group"></div>
    <br />
    <nav id="navigation" style="display: none;">
        <ul class="pagination">
            <li class="page-item">
                <a class="page-link" href="#" id="paginationF">First</a>
            </li>
            <li class="page-item">
                <a class="page-link" href="#" id="pagination1"></a>
            </li>
            <li class="page-item">
                <a class="page-link" href="#" id="pagination2"></a>
            </a>
            </li>
            <li class="page-item">
                <a class="page-link" href="#" id="pagination3"></a>
            </li>
            <li class="page-item">
                <a class="page-link" href="#" id="paginationL">Last</a>
            </li>
        </ul>
    </nav>
</div><!-- /.container -->
<script>
$(document).ready(function() {
    var url = "{{ url_for('projectapi0.projectapi',) }}" + "?results_per_page=50";
    page_number = getUrlParameter('page');
    if (typeof page_number !== 'undefined') {
        url = url.concat("&page="+page_number);
    }
    var filters = [];
    tag_param = getUrlParameter('tag');
    if (typeof tag_param !== 'undefined') {
        filters.push({"name": "tag_objs", "op": "any", "val": {"name":"text","op":"ilike","val": tag_param}});
    }
    organization_param = getUrlParameter('organization');
    if (typeof organization_param !== 'undefined') {
        filters.push({"name":"organization","op":"has","val":{"name":"name","op":"eq","val": organization_param}});
    }
    license_param = getUrlParameter('license');
    if (typeof license_param !== 'undefined') {
        filters.push({"name":"licenses","op":"any","val":{"name":"license_id","op":"eq","val": license_param}});
    }
    language_param = getUrlParameter('language');
    if (typeof language_param !== 'undefined') {
{'fraction_non_alphanumeric': 0.19651532920087117, 'fraction_numerical': 0.0033506449991623386, 'mean_word_length': 2.1045241809672386, 'pattern_counts': {'":': 36, '<': 119, '<?xml version=': 0, '>': 119, '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': '498828', 'n_tokens_mistral': 1786, 'n_tokens_neox': 1728, 'n_words': 327}