<commit_before>{% with m.rsc[id] as rsc %}

<!DOCTYPE html>

<head>
    <title>{{ rsc.title }}</title>
    <link rel="stylesheet" type="text/css" href="{% url embed_css use_absolute_url z_language=false %}" />
</head>

<body>

    <main>
        <article class="ginger-embed">
            <a href="{% url page use_absolute_url id=rsc.id %}" target="_blank" class="ginger-embed__from">{{ m.config.title }} »</a>
            <header>
                {% if rsc.id.depiction %}
                    <figure>
                        {% image rsc.id.depiction mediaclass="embed" %}
                    </figure>
                {% endif %}
                <div>
                    <h1>{{ rsc.title }}</h1>
                    <h2>{{ rsc.alternative }}</h2>

                    <small>
                        <time>{{ rsc.id.publication_start|date:"d M Y" }}</time>
                        {{ m.rsc[rsc.creator_id].title }}
                    </small>
                </div>
            </header>

            <section>
                <p class="ginger-embed__intro">{{ rsc.summary }}</p>
                <p>{{ rsc.body|truncate:500 }}</p>
                <p><a href="{{ rsc.uri }}" target="_blank" class="ginger-embed__readmore">Lees verder</a></p>
            </section>
        </article>
    </main>

</body>

</html>



{% endwith %}<commit_msg>[embed] page url instead of uri<commit_after>{% with m.rsc[id] as rsc %}

<!DOCTYPE html>

<head>
    <title>{{ rsc.title }}</title>
    <link rel="stylesheet" type="text/css" href="{% url embed_css use_absolute_url z_language=false %}" />
</head>

<body>

    <main>
        <article class="ginger-embed">
            <a href="{% url page use_absolute_url id=rsc.id %}" target="_blank" class="ginger-embed__from">{{ m.config.title }} »</a>
            <header>
                {% if rsc.id.depiction %}
                    <figure>
                        {% image rsc.id.depiction mediaclass="embed" %}
                    </figure>
                {% endif %}
                <div>
                    <h1>{{ rsc.title }}</h1>
                    <h2>{{ rsc.alternative }}</h2>

                    <small>
                        <time>{{ rsc.id.publication_start|date:"d M Y" }}</time>
                        {{ m.rsc[rsc.creator_id].title }}
                    </small>
                </div>
            </header>

            <section>
                <p class="ginger-embed__intro">{{ rsc.summary }}</p>
                <p>{{ rsc.body|truncate:500 }}</p>
                <p><a href="{% url page use_absolute_url id=rsc.id %}" target="_blank" class="ginger-embed__readmore">Lees verder</a></p>
            </section>
        </article>
    </main>

</body>

</html>



{% endwith %}
{'fraction_non_alphanumeric': 0.17567567567567569, 'fraction_numerical': 0.005113221329437546, 'mean_word_length': 1.4877384196185286, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 81, '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': '518346', 'n_tokens_mistral': 933, 'n_tokens_neox': 840, 'n_words': 170}