<commit_before><!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="css/screen.css">
    <title>Discovery</title>
</head>
<body>
    <div class="header">
        Select an institution to login to the service: <span class="serviceName">{{ displayName }}</span>
    </div>

    <div class="container">
        <form class="filter" method="get" action="http://localhost:8080/index.php?entityID=https://labrat.eduvpn.nl/saml&returnIDParam=IdP&return=https://labrat.eduvpn.nl/foo/bar?x=a">
            <input type="hidden" name="returnIDParam" value="{{ returnIDParam }}">
            <input type="hidden" name="entityID" value="{{ entityID }}">
            <input type="hidden" name="return" value="{{ return }}">

            <input {% if not lastChosen and not filter %}autofocus="autofocus"{% endif %} value="{{ filter }}" name="filter" id="filter" tabindex="1" type="text" autocomplete="off" placeholder="Search for an institution...">
        </form>

        {% if lastChosen %}
            <div class="listHeader">Previously chosen</div>
            <ul class="list">
                <li>
                    <form class="entity" method="post">
                        <button autofocus="autofocus" name="idpEntityID" value="{{ lastChosen.entityID }}" tabindex="2">
                            {% if useLogos %}<img src="logo/idp/{{ lastChosen.encodedEntityID }}.png">{% endif %}{{ lastChosen.displayName }}
                        </button>
                    </form>
                </li>
            </ul>
        {% endif %}

        <div class="listHeader">Institutes with access</div>

        <ul id="disco" class="list">
            {% for key, idp in idpList %}
                <li>
                    <form class="entity" method="post">
                        <button {% if filter and key == 0 %}autofocus="autofocus"{% endif %} name="idpEntityID" value="{{ idp.entityID }}" tabindex="{{ key + 2 }}" class="name" data-keywords="{{ idp.keywords|join(' ') }}">
                            {% if useLogos %}<img src="logo/idp/{{ idp.encodedEntityID }}.png">{% endif %}{{ idp.displayName }}
                        </button>
                    </form>
                </li>
            {% endfor %}
        </ul>
    </div> <!-- /container -->
    <!-- <script src="js/filter.js"></script> -->
</body>
</html><commit_msg>fix form submit, renable JS for now<commit_after><!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="css/screen.css">
    <title>Discovery</title>
</head>
<body>
    <div class="header">
        Select an institution to login to the service: <span class="serviceName">{{ displayName }}</span>
    </div>

    <div class="container">
        <form class="filter" method="get">
            <input type="hidden" name="returnIDParam" value="{{ returnIDParam }}">
            <input type="hidden" name="entityID" value="{{ entityID }}">
            <input type="hidden" name="return" value="{{ return }}">

            <input {% if not lastChosen and not filter %}autofocus="autofocus"{% endif %} value="{{ filter }}" name="filter" id="filter" tabindex="1" type="text" autocomplete="off" placeholder="Search for an institution...">
        </form>

        {% if lastChosen %}
            <div class="listHeader">Previously chosen</div>
            <ul class="list">
                <li>
                    <form class="entity" method="post">
                        <button autofocus="autofocus" name="idpEntityID" value="{{ lastChosen.entityID }}" tabindex="2">
                            {% if useLogos %}<img src="logo/idp/{{ lastChosen.encodedEntityID }}.png">{% endif %}{{ lastChosen.displayName }}
                        </button>
                    </form>
                </li>
            </ul>
        {% endif %}

        <div class="listHeader">Institutes with access</div>

        <ul id="disco" class="list">
            {% for key, idp in idpList %}
                <li>
                    <form class="entity" method="post">
                        <button {% if filter and key == 0 %}autofocus="autofocus"{% endif %} name="idpEntityID" value="{{ idp.entityID }}" tabindex="{{ key + 2 }}" class="name" data-keywords="{{ idp.keywords|join(' ') }}">
                            {% if useLogos %}<img src="logo/idp/{{ idp.encodedEntityID }}.png">{% endif %}{{ idp.displayName }}
                        </button>
                    </form>
                </li>
            {% endfor %}
        </ul>
    </div> <!-- /container -->
    <script src="js/filter.js"></script>
</body>
</html>
{'fraction_non_alphanumeric': 0.18118179946469012, 'fraction_numerical': 0.0032942145357216387, 'mean_word_length': 2.1897570584372947, 'pattern_counts': {'":': 0, '<': 102, '<?xml version=': 0, '>': 102, 'https://': 2, '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': '3584844', 'n_tokens_mistral': 1480, 'n_tokens_neox': 1370, 'n_words': 320}