<commit_before>{% extends "base.html" %}
{% load compress hc_extras static %}

{% block content %}
<div class="row">
    <div class="col-xs-10 col-xs-offset-1 col-sm-12 col-sm-offset-0 col-lg-8 col-lg-offset-2">

        <h1>Sign In to {% site_name %}</h1>
        {% if bad_link %}
        <div class="alert alert-warning">
            <p>The login link you just used is either incorrect or expired.</p>
            <p>Please use the form below to request a fresh login link.</p>
        </div>
        {% endif %}

        <div class="row">
            <div class="col-sm-6">
                <form id="magic-link-form" method="post">
                    {% csrf_token %}

                    {% if magic_form.errors %}
                    <p class="text-danger">Incorrect email address.</p>
                    {% else %}
                    <p>Enter your <strong>email address</strong>.</p>
                    {% endif %}

                    <input
                        type="email"
                        class="form-control input-lg"
                        name="identity"
                        value="{{ magic_form.email.value|default:"" }}"
                        placeholder="<EMAIL>"
                        autocomplete="off">

                    <p id="link-instruction">
                        We will email you a magic sign in link.
                    </p>

                    <button type="submit" class="btn btn-lg btn-primary btn-block">
                        Email Me a Link
                    </button>
                </form>
                <div id="login-sep" class="hidden-xs"><div>or</div></div>
            </div>

            <div class="col-xs-12 visible-xs-block">
                <div id="xs-login-sep">
                    <div>or</div>
                </div>
            </div>

            <div class="col-sm-6">
                <form id="login-form" method="post">
                    {% csrf_token %}
                    <input type="hidden" name="action" value="login" />

                    {% if form.errors %}
                    <p class="text-danger">Incorrect email or password.</p>
                    {% else %}
                    <p>
                        Enter your <strong>email address</strong> and <strong>password</strong>.
                    </p>
                    {% endif %}

                    <input
                        type="email"
                        class="form-control input-lg"
                        name="email"
                        value="{{ form.email.value|default:"" }}"
                        placeholder="<EMAIL>">

                    <input
                        type="password"
                        class="form-control input-lg"
                        name="password"
                        placeholder="<PASSWORD>">

                    <button type="submit" class="btn btn-lg btn-primary btn-block">
                        Sign In
                    </button>
                </form>
            </div>
        </div>
    </div>
</div>
{% endblock %}

{% block scripts %}
{% compress js %}
<script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
<script src="{% static 'js/bootstrap.min.js' %}"></script>
<script src="{% static 'js/login.js' %}"></script>
{% endcompress %}
{% endblock %}<commit_msg>It is now OK to autocomplete email fields.<commit_after>{% extends "base.html" %}
{% load compress hc_extras static %}

{% block content %}
<div class="row">
    <div class="col-xs-10 col-xs-offset-1 col-sm-12 col-sm-offset-0 col-lg-8 col-lg-offset-2">

        <h1>Sign In to {% site_name %}</h1>
        {% if bad_link %}
        <div class="alert alert-warning">
            <p>The login link you just used is either incorrect or expired.</p>
            <p>Please use the form below to request a fresh login link.</p>
        </div>
        {% endif %}

        <div class="row">
            <div class="col-sm-6">
                <form id="magic-link-form" method="post">
                    {% csrf_token %}

                    {% if magic_form.errors %}
                    <p class="text-danger">Incorrect email address.</p>
                    {% else %}
                    <p>Enter your <strong>email address</strong>.</p>
                    {% endif %}

                    <input
                        type="email"
                        class="form-control input-lg"
                        name="identity"
                        value="{{ magic_form.email.value|default:"" }}"
                        placeholder="<EMAIL>"
                        autocomplete="email">

                    <p id="link-instruction">
                        We will email you a magic sign in link.
                    </p>

                    <button type="submit" class="btn btn-lg btn-primary btn-block">
                        Email Me a Link
                    </button>
                </form>
                <div id="login-sep" class="hidden-xs"><div>or</div></div>
            </div>

            <div class="col-xs-12 visible-xs-block">
                <div id="xs-login-sep">
                    <div>or</div>
                </div>
            </div>

            <div class="col-sm-6">
                <form id="login-form" method="post">
                    {% csrf_token %}
                    <input type="hidden" name="action" value="login" />

                    {% if form.errors %}
                    <p class="text-danger">Incorrect email or password.</p>
                    {% else %}
                    <p>
                        Enter your <strong>email address</strong> and <strong>password</strong>.
                    </p>
                    {% endif %}

                    <input
                        type="email"
                        class="form-control input-lg"
                        name="email"
                        value="{{ form.email.value|default:"" }}"
                        placeholder="<EMAIL>"
                        autocomplete="email">

                    <input
                        type="password"
                        class="form-control input-lg"
                        name="password"
                        placeholder="<PASSWORD>">

                    <button type="submit" class="btn btn-lg btn-primary btn-block">
                        Sign In
                    </button>
                </form>
            </div>
        </div>
    </div>
</div>
{% endblock %}

{% block scripts %}
{% compress js %}
<script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
<script src="{% static 'js/bootstrap.min.js' %}"></script>
<script src="{% static 'js/login.js' %}"></script>
{% endcompress %}
{% endblock %}
{'fraction_non_alphanumeric': 0.14098750743604996, 'fraction_numerical': 0.005056513979773944, 'mean_word_length': 1.1389949109414759, 'pattern_counts': {'":': 0, '<': 133, '<?xml version=': 0, '>': 133, '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': '3284213', 'n_tokens_mistral': 1880, 'n_tokens_neox': 1648, 'n_words': 396}