<commit_before>{% extends 'base.html' %}

{% block title %}Login &middot; Let's Chat{% endblock %}

{% block class %}lcb-login animated fadeIn{% endblock %}

{% block attributes %}
    style="background-image: url('media/img/photos/{{ photo }}');"
{% endblock %}

{% block js %}
    <script type="text/javascript" src="media/js/vendor/md5/md5.js"></script>
    <script type="text/javascript" src="media/js/login.js"></script>
{% endblock %}

{% block body %}
    <section class="lcb-login-main">
        <h1 class="lcb-login-logo">Let<span class="flavour">'</span>s Chat</h1>
        <div class="lcb-login-boxes">
            <form class="lcb-login-box lcb-login-box-login validate" action="/account/login" method="post" data-refresh="true">
                <h2 class="lcb-login-box-heading">Sign in</h2>
                <img class="lcb-login-avatar" />
                <div class="form-group">
                    <input class="required form-control" placeholder="Username or Email" name="username" type="text" />
                </div>
                <div class="form-group">
                    <input class="required form-control" placeholder="Password" name="password" type="password" />
                </div>
                <p class="response alert"></p>
                <div class="lcb-login-box-bottom">
                    {% if auth.local %}
                    {% if auth.local.enable_registration %}
                    <div class="links pull-left">
                        <a href="#" class="lcb-show-box" data-target=".lcb-login-box-registration">I need an account</a>
                    </div>
                    {% endif %}
                    {% endif %}
                    <button class="btn-info btn btn-lg pull-right" type="submit">Sign in <i class="fa fa-sign-in"></i></button>
                </div>
            </form>
            {% if auth.local %}
            {% if auth.local.enable_registration %}
            <form class="lcb-login-box lcb-login-box-registration validate" action="/account/register" method="post" style="display: none;">
                <h2 class="lcb-login-box-heading">Register</h2>
                <div class="form-group">
                    <input class="required form-control" name="username" type="text" placeholder="Username" maxlength="24" />
                </div>
                <div class="form-group">
                    <input class="required email form-control" name="email" type="text" placeholder="Email" />
                </div>
                <div class="form-group">
                    <input class="required form-control" name="password" type="password" placeholder="Password" minlength="8" maxlength="64" /><commit_msg>Autofocus username field on pageload<commit_after>{% extends 'base.html' %}

{% block title %}Login &middot; Let's Chat{% endblock %}

{% block class %}lcb-login animated fadeIn{% endblock %}

{% block attributes %}
    style="background-image: url('media/img/photos/{{ photo }}');"
{% endblock %}

{% block js %}
    <script type="text/javascript" src="media/js/vendor/md5/md5.js"></script>
    <script type="text/javascript" src="media/js/login.js"></script>
{% endblock %}

{% block body %}
    <section class="lcb-login-main">
        <h1 class="lcb-login-logo">Let<span class="flavour">'</span>s Chat</h1>
        <div class="lcb-login-boxes">
            <form class="lcb-login-box lcb-login-box-login validate" action="/account/login" method="post" data-refresh="true">
                <h2 class="lcb-login-box-heading">Sign in</h2>
                <img class="lcb-login-avatar" />
                <div class="form-group">
                    <input class="required form-control" placeholder="Username or Email" name="username" type="text" autofocus />
                </div>
                <div class="form-group">
                    <input class="required form-control" placeholder="Password" name="password" type="password" />
                </div>
                <p class="response alert"></p>
                <div class="lcb-login-box-bottom">
                    {% if auth.local %}
                    {% if auth.local.enable_registration %}
                    <div class="links pull-left">
                        <a href="#" class="lcb-show-box" data-target=".lcb-login-box-registration">I need an account</a>
                    </div>
                    {% endif %}
                    {% endif %}
                    <button class="btn-info btn btn-lg pull-right" type="submit">Sign in <i class="fa fa-sign-in"></i></button>
                </div>
            </form>
            {% if auth.local %}
            {% if auth.local.enable_registration %}
            <form class="lcb-login-box lcb-login-box-registration validate" action="/account/register" method="post" style="display: none;">
                <h2 class="lcb-login-box-heading">Register</h2>
                <div class="form-group">
                    <input class="required form-control" name="username" type="text" placeholder="Username" maxlength="24" />
                </div>
                <div class="form-group">
                    <input class="required email form-control" name="email" type="text" placeholder="Email" />
                </div>
                <div class="form-group">
                    <input class="required form-control" name="password" type="password" placeholder="Password" minlength="8" maxlength="64" />
{'fraction_non_alphanumeric': 0.16393442622950818, 'fraction_numerical': 0.00478909559771597, 'mean_word_length': 2.0574324324324325, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 91, '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': '5750311', 'n_tokens_mistral': 1610, 'n_tokens_neox': 1464, 'n_words': 307}