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

{% block page_head %}{{ title }}{% endblock %}

{% block extra_style %}
  <style>
    h1 {
      margin: 0 0 0.25em;
    }

    .entry {
      border: 1px solid black;
      margin-bottom: 1em;
    }

    h2 {
      font-size: 1em;
      margin: 0;
    }

    p {
      margin: 0;
    }

    footer {
      font-size: 0.7em;
    }
  </style>
{% endblock %}

{% block main %}
  <h1>{{ title }} </h1>
  <p>
    <a href="feed.xml{% if search %}?q={{ search }}{% endif %}">Rss Feed</a>
    <form action="." method="GET">
      <input type="search" name="q" placeholder="search" value="{% if search %}{{ search }}{% endif %}">
    </form>
  </p>
  {% for row in object_list %}
    <article class="entry">
      <h2>
        {{ row['title'] }}
        <small>
          <a href="{{ row['url'] }}">(link)</a>
        </small>
      </h2>
      <time>{{ row['date'] }}</time>
      <p>
        {{ row['text'][:1000] }}
      </p>
      <footer>
        Scraped at: {{ row['scraped_at'] }}
      </footer>
    </article>
  {% endfor %}
{% endblock %}<commit_msg>fix displaying entries without text<commit_after>{% extends "base.html" %}

{% block page_head %}{{ title }}{% endblock %}

{% block extra_style %}
  <style>
    h1 {
      margin: 0 0 0.25em;
    }

    .entry {
      border: 1px solid black;
      margin-bottom: 1em;
    }

    h2 {
      font-size: 1em;
      margin: 0;
    }

    p {
      margin: 0;
    }

    footer {
      font-size: 0.7em;
    }
  </style>
{% endblock %}

{% block main %}
  <h1>{{ title }} </h1>
  <p>
    <a href="feed.xml{% if search %}?q={{ search }}{% endif %}">Rss Feed</a>
    <form action="." method="GET">
      <input type="search" name="q" placeholder="search" value="{% if search %}{{ search }}{% endif %}">
    </form>
  </p>
  {% for row in object_list %}
    <article class="entry">
      <h2>
        {{ row['title'] }}
        <small>
          <a href="{{ row['url'] }}">(link)</a>
        </small>
      </h2>
      <time>{{ row['date'] }}</time>
      {% if row['text'] %}
        <p>
          {{ row['text'][:1000] }}
        </p>
      {% endif %}
      <footer>
        Scraped at: {{ row['scraped_at'] }}
      </footer>
    </article>
  {% endfor %}
{% endblock %}
{'fraction_non_alphanumeric': 0.2200618647812638, 'fraction_numerical': 0.019443216968625717, 'mean_word_length': 1.925064599483204, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, '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': '2233579', 'n_tokens_mistral': 913, 'n_tokens_neox': 822, 'n_words': 193}