<commit_before>{% extends "account/base.html" %}

{% load i18n %}
{% load account %}
{% load url from future %}

{% block head_title %}{% trans "Sign In" %}{% endblock %}

{% block content %}
<div class="row-fluid">
  <div class="span4"></div>
  <div class="span4">
    <h2>{% trans "Log In" %}</h2>

    {% if socialaccount.providers  %}
    <div class="well">
        <p>
            <h4>Option 1</h4> Sign in with one of your existing third party accounts.
        </p>

        <div class="socialaccount_ballot">
            <ul class="socialaccount_providers">
                {% include "socialaccount/snippets/provider_list.html" %}
            </ul>
        </div>

        {% include "socialaccount/snippets/login_extra.html" %}
    </div>
    {% endif %}

    <div class="well">
        <h4>Option 2</h4>
        <p>
             If you have already <a href="/auth/signup/">registered</a> for a ForestPlanner account, sign in here.
        </p>
        <form class="form-horizontal login" method="POST" action="{% url 'account_login' %}">
            {% for field in form %}
              <div class="control-group">
                <label class="control-label" for="{{field.html_name}}">{{field.label}}</label>
                <div class="controls">
                    {{field}}
                </div>
              </div>
            {% endfor %}
          <div class="control-group">
            <div class="controls">
              <button type="submit" class="btn">Sign in</button>
            </div>
          </div>
        </form>
            <!--
          <div class="control-group">
            <label class="control-label" for="inputEmail">Email</label>
            <div class="controls">
              <input type="text" id="inputEmail" placeholder="Email">
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="inputPassword">Password</label>
            <div class="controls">
              <input type="password" id="inputPassword" placeholder="Password">
            </div>
          </div>
        </form>
          -->
    </div>
  </div>
  <div class="span4"></div>
</div>
{% endblock %}

<commit_msg>login template errors when no socialapp added<commit_after>{% extends "account/base.html" %}

{% load i18n %}
{% load account %}
{% load url from future %}

{% block head_title %}{% trans "Sign In" %}{% endblock %}

{% block content %}
<div class="row-fluid">
  <div class="span4"></div>
  <div class="span4">
    <h2>{% trans "Log In" %}</h2>

    {% if socialaccount.providers  %}
    <div class="well">
        <p>
            <h4>Option 1</h4> Sign in with one of your existing third party accounts.
        </p>

        <div class="socialaccount_ballot">
            <ul class="socialaccount_providers">
                {% include "socialaccount/snippets/provider_list.html" %}
            </ul>
        </div>

        {# include "socialaccount/snippets/login_extra.html" #}
    </div>
    {% endif %}

    <div class="well">
        <h4>Option 2</h4>
        <p>
             If you have already <a href="/auth/signup/">registered</a> for a ForestPlanner account, sign in here.
        </p>
        <form class="form-horizontal login" method="POST" action="{% url 'account_login' %}">
            {% for field in form %}
              <div class="control-group">
                <label class="control-label" for="{{field.html_name}}">{{field.label}}</label>
                <div class="controls">
                    {{field}}
                </div>
              </div>
            {% endfor %}
          <div class="control-group">
            <div class="controls">
              <button type="submit" class="btn">Sign in</button>
            </div>
          </div>
        </form>
            <!--
          <div class="control-group">
            <label class="control-label" for="inputEmail">Email</label>
            <div class="controls">
              <input type="text" id="inputEmail" placeholder="Email">
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="inputPassword">Password</label>
            <div class="controls">
              <input type="password" id="inputPassword" placeholder="Password">
            </div>
          </div>
        </form>
          -->
    </div>
  </div>
  <div class="span4"></div>
</div>
{% endblock %}


{'fraction_non_alphanumeric': 0.16802168021680217, 'fraction_numerical': 0.005871725383920506, 'mean_word_length': 1.8629605688429218, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 119, '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': '2209091', 'n_tokens_mistral': 1346, 'n_tokens_neox': 1256, 'n_words': 296}