<commit_before>{% macro register() %}
        <h2>Register</h2>
        <form action="{{url_for("register")}}" method="post">
            <input type="hidden" name="token" value="{{g.csrf_token}}">
            {% if "register_error" in request.args: %}
            {% if request.args["register_error"] == "ip": %}
            <p class="error">It looks like you've already registered recently. Please wait before trying again.</p>
            {% elif request.args["register_error"] == "blank": %}
            <p class="error">Please enter a username and password.</p>
            {% elif request.args["register_error"] == "passwords_didnt_match": %}
            <p class="error">The two passwords didn't match.</p>
            {% elif request.args["register_error"] == "invalid_username": %}
            <p class="error">Usernames can only contain letters, numbers, hyphens and underscores.</p>
            {% elif request.args["register_error"] == "username_taken": %}
            <p class="error">That username has already been taken.</p>
            {% elif request.args["register_error"] == "invalid_email": %}
            <p class="error">That doesn't look like a valid e-mail address.</p>
            {% endif %}
            {% endif %}
            <div class="input_table">
                <p>
                    <label for="register_username_input">Username:</label>
                    <input type="text" name="username" id="register_username_input" maxlength="50" required>
                </p>
                <p>
                    <label for="register_password_input">Password:</label>
                    <input type="password" name="password" id="register_password_input" required>
                </p>
                <p>
                    <label for="register_password_again_input">Password again:</label>
                    <input type="password" name="password_again" id="register_password_again_input" required>
                </p>
                <p>
                    <label for="register_show_password_input">Show password?</label>
                    <input type="checkbox" id="register_show_password_input">
                </p>
                <p>
                    <label for="register_email_address_input">E-mail address (optional):</label>
                    <input type="email" name="email_address" id="register_email_address_input" maxlength="100">
                </p>
                <p>
                    <label>Is Gamquius canon?</label>
                    <span><label><input type="checkbox" name="bot_yes"> Yes</label> <label><input type="checkbox" name="bot_no"> No</label></span>
                </p>
            </div>
            <p><button type="submit">Register</button> <a href="http://help.msparp.com/">Having problems? Get help here.</a></p>
        </form>
{% endmacro %}
{% macro log_in() %}
        <h2>Log in</h2>
        <form action="{{url_for("log_in")}}" method="post">
            <input type="hidden" name="token" value="{{g.csrf_token}}">
            {% if "log_in_error" in request.args: %}
            {% if request.args["log_in_error"] == "no_user": %}
            <p class="error">There doesn't seem to be an account with that username.</p>
            {% elif request.args["log_in_error"] == "wrong_password": %}
            <p class="error">That password is incorrect.</p>
            {% endif %}
            {% endif %}
            <div class="input_table">
                <p>
                    <label for="log_in_username_input">Username:</label>
                    <input type="text" name="username" id="log_in_username_input" maxlength="50" required>
                </p>
                <p>
                    <label for="log_in_password_input">Password:</label>
                    <input type="password" name="password" id="log_in_password_input" required>
                </p>
                <p>
                    <label for="log_in_show_password_input">Show password?</label>
                    <input type="checkbox" id="log_in_show_password_input">
                </p>
            </div><commit_msg>Changed a few minor things<commit_after>{% macro register() %}
        <h2>Register</h2>
        <form action="{{url_for("register")}}" method="post">
            <input type="hidden" name="token" value="{{g.csrf_token}}">
            {% if "register_error" in request.args: %}
            {% if request.args["register_error"] == "ip": %}
            <p class="error">It looks like you've already registered recently. Please wait before trying again.</p>
            {% elif request.args["register_error"] == "blank": %}
            <p class="error">Please enter a username and password.</p>
            {% elif request.args["register_error"] == "passwords_didnt_match": %}
            <p class="error">The two passwords didn't match.</p>
            {% elif request.args["register_error"] == "invalid_username": %}
            <p class="error">Usernames can only contain letters, numbers, hyphens and underscores.</p>
            {% elif request.args["register_error"] == "username_taken": %}
            <p class="error">That username has already been taken.</p>
            {% elif request.args["register_error"] == "invalid_email": %}
            <p class="error">That doesn't look like a valid e-mail address.</p>
            {% endif %}
            {% endif %}
            <div class="input_table">
                <p>
                    <label for="register_username_input">Username:</label>
                    <input type="text" name="username" id="register_username_input" maxlength="50" required>
                </p>
                <p>
                    <label for="register_password_input">Password:</label>
                    <input type="password" name="password" id="register_password_input" required>
                </p>
                <p>
                    <label for="register_password_again_input">Password again:</label>
                    <input type="password" name="password_again" id="register_password_again_input" required>
                </p>
                <p>
                    <label for="register_show_password_input">Show password?</label>
                    <input type="checkbox" id="register_show_password_input">
                </p>
                <p>
                    <label for="register_email_address_input">E-mail address (Required):</label>
                    <input type="email" name="email_address" id="register_email_address_input" maxlength="100">
                </p>
                <p>
                    <label>Are you a Robot?</label>
                    <span><label><input type="checkbox" name="bot_yes"> Yes</label> <label><input type="checkbox" name="bot_no"> No</label></span>
                </p>
            </div>
            <p><button type="submit">Register</button> <a href="http://help.msparp.com/">Having problems? Get help here.</a></p>
        </form>
{% endmacro %}
{% macro log_in() %}
        <h2>Log in</h2>
        <form action="{{url_for("log_in")}}" method="post">
            <input type="hidden" name="token" value="{{g.csrf_token}}">
            {% if "log_in_error" in request.args: %}
            {% if request.args["log_in_error"] == "no_user": %}
            <p class="error">There doesn't seem to be an account with that username.</p>
            {% elif request.args["log_in_error"] == "wrong_password": %}
            <p class="error">That password is incorrect.</p>
            {% endif %}
            {% endif %}
            <div class="input_table">
                <p>
                    <label for="log_in_username_input">Username:</label>
                    <input type="text" name="username" id="log_in_username_input" maxlength="50" required>
                </p>
                <p>
                    <label for="log_in_password_input">Password:</label>
                    <input type="password" name="password" id="log_in_password_input" required>
                </p>
                <p>
                    <label for="log_in_show_password_input">Show password?</label>
                    <input type="checkbox" id="log_in_show_password_input">
                </p>
            </div>
{'fraction_non_alphanumeric': 0.149457515543094, 'fraction_numerical': 0.0026819456296476897, 'mean_word_length': 1.9832727272727273, 'pattern_counts': {'":': 16, '<': 177, '<?xml version=': 0, '>': 177, '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': '5269071', 'n_tokens_mistral': 2314, 'n_tokens_neox': 2139, 'n_words': 464}