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

{% block content %}

  {% for mention in mentions %}
    <div style="margin-top: 20px">
    {% for post in mention.posts %}
      <div class="mention-metadata">
        on <a href="{{ post.permalink }}">
        {% if post.title %}
          {{ post.title }}
        {% else %}
          {{post.content | truncate(50) }}
        {% endif %}
        </a>
      </div>
    {% endfor %}
    {% include "_post_mention.html" %}
    </div>

  {% endfor %}

{% endblock %}<commit_msg>Fix weird case: mention of post without title?!? (happened)<commit_after>{% extends "base.html" %}

{% block content %}

  {% for mention in mentions %}
    <div style="margin-top: 20px">
    {% for post in mention.posts %}
      <div class="mention-metadata">
        on <a href="{{ post.permalink }}">
        {% if post.title %}
          {{ post.title }}
        {% elif post.content %}
          {{post.content | truncate(50) }}
        {% else %}
          <em>this</em>
        {% endif %}
        </a>
      </div>
    {% endfor %}
    {% include "_post_mention.html" %}
    </div>

  {% endfor %}

{% endblock %}
{'fraction_non_alphanumeric': 0.18947368421052632, 'fraction_numerical': 0.007017543859649123, 'mean_word_length': 1.986910994764398, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '5193481', 'n_tokens_mistral': 415, 'n_tokens_neox': 354, 'n_words': 85}