<commit_before>{% extends 'speeches/base.html' %}
{% load url from future %}
{% load i18n %}
{% load humanize %}
{% load speech_utils %}

{% block title %}Home{% endblock %}

{% block content %}

<div class="page-content__row">

  {% if paginator.count %}

    <div class="homepage-search">
        <h2>{% block instance_search_title %}{% trans 'Search' %}{% endblock %}</h2>
        <form class="site-search site-search--homepage" action="{% url "speeches:haystack_search" %}" method="get" >
            <div class="search-wrapper">
                <input type="search" class="site-search__input" placeholder="{% trans 'Search' %}" name="q"/>
                <input type="submit" class="icon-search icon-search" value="{% trans 'Search' %}"/>
            </div>
        </form>
    </div>


        </div>
    </div>
</div> <!-- closing off the opening tags in base so we can go full width here -->
<div class="homepage-stats">
  <div class="full-page__row">
      <div class="full-page__unit">
        {% url "speeches:speaker-list" as url_speaker_list %}
        {% url "speeches:section-list" as url_section_list %}
        {% if LANGUAGE_CODE == 'en' %}
          <strong>{{ count_speeches|intcomma }}</strong>
          speech{{ count_speeches|pluralize:"es" }}{% if count_speakers %}, by
          <a href="{{ url_speaker_list }}"><strong>{{ count_speakers|intcomma }}</strong></a>
          speaker{{ count_speakers|pluralize }}{% endif %}{% if count_sections %}, in
          <a href="{{ url_section_list }}"><strong>{{ count_sections|intcomma }}</strong></a>
          section{{ count_sections|pluralize }}{% endif %}
        {% else %}
          {# Hideously long lines, until blocktrans adds trimmed option in Django 1.7... #}
          {% blocktrans with n=count_speeches|intcomma count c=count_speeches %}<strong>One</strong> speech{% plural %}<strong>{{ n }}</strong> speeches{% endblocktrans %}{% if count_speakers %};
          {% blocktrans with n=count_speakers|intcomma count c=count_speakers %}<a href="{{ url_speaker_list }}"><strong>one</strong></a> speaker{% plural %}<a href="{{ url_speaker_list }}"><strong>{{ n }}</strong></a> speakers{% endblocktrans %}{% endif %}{% if count_sections %};
          {% blocktrans with n=count_sections|intcomma count c=count_sections %}<a href="{{ url_section_list }}"><strong>one</strong></a> section{% plural %}<a href="{{ url_section_list }}"><strong>{{ n }}</strong></a> sections{% endblocktrans %}{% endif %}
        {% endif %}

{% block instance_blocks %}
{% endblock %}

  {% else %}

    <div class="nothing-here-yet-message">
        <h1>{% trans 'Welcome to SayIt!' %}</h1>
        <p class="lead">{% trans 'This SayIt doesn&rsquo;t contain any speakers or speeches yet.' %}</p>
        <p><a href="{% url "speeches:speaker-add" %}" class="button">{% trans 'Add your first speaker' %}</a></p>
    </div>

  {% endif %}

</div>

{% endblock %}
<commit_msg>make it clear why we’re asking them to create a speaker not a speech (for now!)<commit_after>{% extends 'speeches/base.html' %}
{% load url from future %}
{% load i18n %}
{% load humanize %}
{% load speech_utils %}

{% block title %}Home{% endblock %}

{% block content %}

<div class="page-content__row">

  {% if paginator.count %}

    <div class="homepage-search">
        <h2>{% block instance_search_title %}{% trans 'Search' %}{% endblock %}</h2>
        <form class="site-search site-search--homepage" action="{% url "speeches:haystack_search" %}" method="get" >
            <div class="search-wrapper">
                <input type="search" class="site-search__input" placeholder="{% trans 'Search' %}" name="q"/>
                <input type="submit" class="icon-search icon-search" value="{% trans 'Search' %}"/>
            </div>
        </form>
    </div>


        </div>
    </div>
</div> <!-- closing off the opening tags in base so we can go full width here -->
<div class="homepage-stats">
  <div class="full-page__row">
      <div class="full-page__unit">
        {% url "speeches:speaker-list" as url_speaker_list %}
        {% url "speeches:section-list" as url_section_list %}
        {% if LANGUAGE_CODE == 'en' %}
          <strong>{{ count_speeches|intcomma }}</strong>
          speech{{ count_speeches|pluralize:"es" }}{% if count_speakers %}, by
          <a href="{{ url_speaker_list }}"><strong>{{ count_speakers|intcomma }}</strong></a>
          speaker{{ count_speakers|pluralize }}{% endif %}{% if count_sections %}, in
          <a href="{{ url_section_list }}"><strong>{{ count_sections|intcomma }}</strong></a>
          section{{ count_sections|pluralize }}{% endif %}
        {% else %}
          {# Hideously long lines, until blocktrans adds trimmed option in Django 1.7... #}
          {% blocktrans with n=count_speeches|intcomma count c=count_speeches %}<strong>One</strong> speech{% plural %}<strong>{{ n }}</strong> speeches{% endblocktrans %}{% if count_speakers %};
          {% blocktrans with n=count_speakers|intcomma count c=count_speakers %}<a href="{{ url_speaker_list }}"><strong>one</strong></a> speaker{% plural %}<a href="{{ url_speaker_list }}"><strong>{{ n }}</strong></a> speakers{% endblocktrans %}{% endif %}{% if count_sections %};
          {% blocktrans with n=count_sections|intcomma count c=count_sections %}<a href="{{ url_section_list }}"><strong>one</strong></a> section{% plural %}<a href="{{ url_section_list }}"><strong>{{ n }}</strong></a> sections{% endblocktrans %}{% endif %}
        {% endif %}

{% block instance_blocks %}
{% endblock %}

  {% else %}

    <div class="nothing-here-yet-message">
        <h1>{% trans 'Welcome to SayIt!' %}</h1>
        <p class="lead">{% trans 'This SayIt doesn&rsquo;t contain any speakers or speeches yet.' %}</p>
        <p class="lead">{% trans 'Create a new speaker, then assign speeches to them.' %}</p>
        <p><a href="{% url "speeches:speaker-add" %}" class="button">{% trans 'Add your first speaker' %}</a></p>
    </div>

  {% endif %}

</div>

{% endblock %}

{'fraction_non_alphanumeric': 0.19122048553375456, 'fraction_numerical': 0.002660458929165281, 'mean_word_length': 3.4588584136397333, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 123, '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': '1067792', 'n_tokens_mistral': 2060, 'n_tokens_neox': 1843, 'n_words': 490}