<commit_before><!DOCTYPE HTML>
{% load captureas %}
{% load googleanalytics %}
{% load menu_li %}
{% load page_url %}

{% captureas title %}
  {% block title %}{% endblock %}
{% endcaptureas %}

<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{{ title }} - {{ site.name }}</title>
    <link rel="stylesheet" href="{{ STATIC_URL }}css/styles.css">
    {% block styles %}{% endblock %}

    {% captureas feed_url %}{% block feed_url %}{% endblock %}{% endcaptureas %}
    {% if feed_url %}
      <link href="{{ feed_url }}" rel="alternate" type="application/rss+xml" title="{{ title }}">
    {% endif %}
  </head>
  <body>
    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <a class="navbar-brand" href="{% url "index" %}">{{ site.name }}</a>
        </div>
        <div class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            {% menu_li "recent_links" as "Recent" %}
            {% menu_li "popular_links" as "Popular" %}
          </ul>
          <form action="{% url "haystack_search" %}" class="navbar-form navbar-right" role="form">
            <div class="form-group">
              <input name="q" type="text" class="form-control" placeholder="Search" value="{{ query }}">
              <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
            </div>
          </form>
        </div>
      </div>
    </div>
    <div class="container">
      <div class="row">
        <h1>{{ title }}</h1>
        {% block content %}{% endblock %}

        {% if is_paginated %}
          <div class="pagination">
            <ul>
              {% if page.has_previous %}
                <li><a href="{% page_url page=page.previous_page_number %}">&laquo;</a></li>
              {% endif %}

              {% for page_number in paginator.page_range %}
                <li{% ifequal page.number page_number %} class="active"{% endifequal %}>
                  <a href="{% page_url page=page_number %}">{{ page_number }}</a>
                </li>
              {% endfor %}

              {% if page.has_next %}
                <li><a href="{% page_url page=page.next_page_number %}">&raquo;</a></li>
              {% endif %}
            </ul>
          </div>
        {% endif %}
      </div>
    </div>
    {% google_analytics %}
  </body>
</html><commit_msg>Fix pagination<commit_after><!DOCTYPE HTML>
{% load captureas %}
{% load googleanalytics %}
{% load menu_li %}
{% load page_url %}

{% captureas title %}
  {% block title %}{% endblock %}
{% endcaptureas %}

<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{{ title }} - {{ site.name }}</title>
    <link rel="stylesheet" href="{{ STATIC_URL }}css/styles.css">
    {% block styles %}{% endblock %}

    {% captureas feed_url %}{% block feed_url %}{% endblock %}{% endcaptureas %}
    {% if feed_url %}
      <link href="{{ feed_url }}" rel="alternate" type="application/rss+xml" title="{{ title }}">
    {% endif %}
  </head>
  <body>
    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <a class="navbar-brand" href="{% url "index" %}">{{ site.name }}</a>
        </div>
        <div class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            {% menu_li "recent_links" as "Recent" %}
            {% menu_li "popular_links" as "Popular" %}
          </ul>
          <form action="{% url "haystack_search" %}" class="navbar-form navbar-right" role="form">
            <div class="form-group">
              <input name="q" type="text" class="form-control" placeholder="Search" value="{{ query }}">
              <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
            </div>
          </form>
        </div>
      </div>
    </div>
    <div class="container">
      <div class="row">
        <h1>{{ title }}</h1>
        {% block content %}{% endblock %}

        {% if is_paginated %}
          <ul class="pagination">
            {% if page.has_previous %}
              <li><a href="{% page_url page=page.previous_page_number %}">&laquo;</a></li>
            {% endif %}

            {% for page_number in paginator.page_range %}
              <li{% ifequal page.number page_number %} class="active"{% endifequal %}>
                <a href="{% page_url page=page_number %}">{{ page_number }}</a>
              </li>
            {% endfor %}

            {% if page.has_next %}
              <li><a href="{% page_url page=page.next_page_number %}">&raquo;</a></li>
            {% endif %}
          </ul>
        {% endif %}
      </div>
    </div>
    {% google_analytics %}
  </body>
</html>
{'fraction_non_alphanumeric': 0.19248918600078646, 'fraction_numerical': 0.0015729453401494297, 'mean_word_length': 2.3053931124106564, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 115, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3844479', 'n_tokens_mistral': 1722, 'n_tokens_neox': 1545, 'n_words': 344}