<commit_before><!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="UTF-8" />
        <title>Header template</title>
    </head>
    <body>

        <nav class="navbar navbar-default" th:fragment="header">
            <div class="container-fluid">
                <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" th:href="@{/}">Tagger</a>
                </div>

                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="nav navbar-nav">
                        <li><a th:href="@{/}">Front page</a></li>
                    </ul>
                    <form class="navbar-form navbar-left" th:action="@{/search}" th:method="POST" name="tagsearchform">
                        <div class="form-group">
                            <input type="text" class="form-control" name="tagstring" placeholder="cat !dog" th:value="${searchquery}"/>
                        </div>
                        <button type="submit" class="btn btn-default" name="searchbutton">Search!</button>
                    </form>
                </div>
            </div>
        </nav>
    </body>
</html>
<commit_msg>Add login/register-buttons to the navbar<commit_after><!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="UTF-8" />
        <title>Header template</title>
    </head>
    <body>

        <nav class="navbar navbar-default" th:fragment="header">
            <div class="container-fluid">
                <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" th:href="@{/}">Tagger</a>
                </div>

                <div class="collapse navbar-collapse" id="navbar-collapse">
                    <ul class="nav navbar-nav">
                        <li><a th:href="@{/}">Front page</a></li>
                    </ul>
                    <form class="navbar-form navbar-left" th:action="@{/search}" th:method="POST" name="tagsearchform">
                        <div class="form-group">
                            <input type="text" class="form-control" name="tagstring" placeholder="cat !dog" th:value="${searchquery}"/>
                        </div>
                        <button type="submit" class="btn btn-default" name="searchbutton">Search!</button>
                    </form>

                    <div sec:authorize="isAnonymous()">
                        <ul class="nav navbar-nav navbar-right">
                            <li><a th:href="@{/login}">Log in</a></li>
                            <li><a th:href="@{/register}">Register</a></li>
                        </ul>
                    </div>
                    <div sec:authorize="isAuthenticated()">
                        <ul class="nav navbar-form navbar-right">
                            <li>
                                <form class="form-group" th:action="@{/logout}" name="logoutform" th:method="POST">
                                    <input class="btn btn-link" type="submit" name="logoutbutton" value="Log out"/>
                                </form>
                            </li>
                        </ul>
                    </div>
                    <div sec:authorize="isAuthenticated()">
                        <ul class="nav navbar-nav navbar-right">
                            <li>
                                <p class="nav navbar-text"> Logged in as <span sec:authentication="name" th:remove="tag"></span></p>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </nav>
    </body>
</html>

{'fraction_non_alphanumeric': 0.1565603211493767, 'fraction_numerical': 0.002957954785548278, 'mean_word_length': 1.3776996484178805, 'pattern_counts': {'":': 0, '<': 122, '<?xml version=': 0, '>': 122, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5930477', 'n_tokens_mistral': 1296, 'n_tokens_neox': 1194, 'n_words': 234}