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

{% block content %}
    <div class="page-header">
        <h1>Log In</h1>
    </div>

    <form class="form" method="post" action="{% url 'core:login' %}">
        {% csrf_token %}
        <div class="form-group">
            <label for="Username">{{ form.username.label_tag }}</label>
            {{ form.username }}
        </div>
        <div class="form-group">
            <label for="Password">{{ form.password.label_tag }}</label>
            {{ form.password }}
        </div>
        <input class="btn btn-primary" type="submit" value="login"/>
        <a class="btn btn-default" href={% url 'core:register' %}>Register</a>
        <input type="hidden" name="next" value="{% if next %}{{ next }}{% else %}{% url 'core:home' %}{% endif %}"/>
    </form>
{% endblock %}<commit_msg>Use crispy forms for login form<commit_after>{% extends 'base.html' %}
{% load crispy_forms_tags %}

{% block content %}
  <div class="page-header">
    <h1>Log In</h1>
  </div>
  <form method="post" action="{% url 'core:login' %}" class="form-signin">{% csrf_token %}
    {{ form|crispy }}
    {# Hide the next URL in the form #}
    <input type="hidden" name="next" value="{% if next %}{{ next }}{% else %}{% url 'core:home' %}{% endif %}"/>
    <div>
      <button type="submit" class="btn btn-primary">Login</button>
      <a class="btn btn-default" href={% url 'core:register' %}>Register</a>
    </div>
  </form>
{% endblock %}
{'fraction_non_alphanumeric': 0.21736158578263842, 'fraction_numerical': 0.002734107997265892, 'mean_word_length': 2.989100817438692, 'pattern_counts': {'":': 0, '<': 34, '<?xml version=': 0, '>': 34, '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': '3384118', 'n_tokens_mistral': 511, 'n_tokens_neox': 485, 'n_words': 116}