<commit_before>
{% load twitter_tags i18n %}

{% tweets_default as tweets %}

{% if tweets %}
<ul class="tweets">
    {% for tweet in tweets %}
    <li class="tweets__tweet">
        <div class="col-xxs-3">
            <img class="tweets__tweet-image" src="{{ tweet.profile_image_url|cut:"http:" }}" alt="{{ tweet.full_name }}">
        </div>
        <div class="col-xxs-13 tweets__tweet-content">
            <h4 class="tweets__tweet-author">
                {{ tweet.full_name }} <a href="http://twitter.com/{{ tweet.user_name }}" title="{{ tweet.full_name }}">@{{ tweet.user_name }}</a>
                <span>{% blocktrans with sometime=tweet.created_at|timesince %}{{ sometime }} ago{% endblocktrans %}</span>
            </h4>
            <p class="tweets__tweet-body">
                {{ tweet.text|safe }}<br>
                {% comment %}
                    <a href="http://twitter.com/{{ tweet.user_name }}/status/{{ tweet.remote_id }}"></a>
                {% endcomment %}
            </p>
        </div>
    </li>
    {% endfor %}
</ul><commit_msg>Use retweet when available<commit_after>
{% load twitter_tags i18n %}

{% tweets_default as tweets %}

{% if tweets %}
<ul class="tweets">
    {% for tweet in tweets %}
    <li class="tweets__tweet">
        <div class="col-xxs-3">
            {% if tweet.retweeter_full_name %}
                <img class="tweets__tweet-image" src="{{ tweet.retweeter_profile_image_url|cut:"http:" }}" alt="{{ tweet.retweeter_full_name }}">
            {% else %}
                <img class="tweets__tweet-image" src="{{ tweet.profile_image_url|cut:"http:" }}" alt="{{ tweet.full_name }}">
            {% endif %}
        </div>
        <div class="col-xxs-13 tweets__tweet-content">
            <h4 class="tweets__tweet-author">
                {% if tweet.retweeter_full_name %}
                    {{ tweet.retweeter_full_name }} <a href="http://twitter.com/{{ tweet.retweeter_user_name }}" title="{{ tweet.retweeter_full_name }}">@{{ tweet.retweeter_user_name }}</a>
                {% else %}
                    {{ tweet.full_name }} <a href="http://twitter.com/{{ tweet.user_name }}" title="{{ tweet.full_name }}">@{{ tweet.user_name }}</a>
                {% endif %}
                    <span>{% blocktrans with sometime=tweet.created_at|timesince %}{{ sometime }} ago{% endblocktrans %}</span>
            </h4>
            <p class="tweets__tweet-body">
                {{ tweet.text|safe }}<br>
                {% comment %}
                    <a href="http://twitter.com/{{ tweet.user_name }}/status/{{ tweet.remote_id }}"></a>
                {% endcomment %}
            </p>
        </div>
    </li>
    {% endfor %}
</ul>
{'fraction_non_alphanumeric': 0.18472998137802607, 'fraction_numerical': 0.0052141527001862194, 'mean_word_length': 2.1305361305361306, 'pattern_counts': {'":': 0, '<': 46, '<?xml version=': 0, '>': 46, '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': '4985852', 'n_tokens_mistral': 945, 'n_tokens_neox': 838, 'n_words': 154}