<commit_before><?xml version="1.0" encoding="utf-8"?>
{% if site.url %}
  {% assign url_base = site.url | append: site.baseurl %}
{% else %}
  {% assign url_base = site.github.url %}
{% endif %}
<feed xmlns="http://www.w3.org/2005/Atom">
  <generator uri="http://jekyllrb.com" version="{{ jekyll.version }}">Jekyll</generator>
  <link href="{{ url_base }}{{ page.url }}" rel="self" type="application/atom+xml" />
  <link href="{{ url_base }}/" rel="alternate" type="text/html" />
  <updated>{{ site.time | date_to_xmlschema }}</updated>
  <id>{{ url_base }}</id>

  {% if site.name %}
    <title>{{ site.name }}</title>
  {% endif %}

  {% if site.description %}
    <subtitle>{{ site.description }}</subtitle>
  {% endif %}

  {% if site.author %}
    <author>
      <name>{{ site.author }}</name>
    </author>
  {% endif %}

  {% for post in site.posts %}
    <entry>
      <title>{{ post.title | xml_escape }}</title>
      <link href="{{ url_base }}{{ post.url }}" rel="alternate" type="text/html" title="{{ post.title | xml_escape }}" />
      <published>{{ post.date | date_to_xmlschema }}</published>
      <updated>{{ post.date | date_to_xmlschema }}</updated>

      <id>{{ url_base }}{{ post.id }}</id>
      <content type="html">{{ post.content | xml_escape }}</content>

      {% if post.author %}
        <author>
            <name>{{ post.author }}</name>
        </author>
      {% endif %}

      {% if post.category %}
        <category term="{{ post.category }}" />
      {% endif %}

      {% for tag in post.tags %}
        <category term="{{ tag }}" />
      {% endfor %}

      {% if post.excerpt %}
        <summary>{{ post.excerpt | strip_html | strip_newlines | xml_escape }}</summary>
      {% endif %}
    </entry>
  {% endfor %}
</feed>
<commit_msg>Refactor feed.xml to use prepend<commit_after><?xml version="1.0" encoding="utf-8"?>
{% if site.url %}
  {% assign url_base = site.url | append: site.baseurl %}
{% else %}
  {% assign url_base = site.github.url %}
{% endif %}
<feed xmlns="http://www.w3.org/2005/Atom">
  <generator uri="http://jekyllrb.com" version="{{ jekyll.version }}">Jekyll</generator>
  <link href="{{ page.url | prepend: url_base }}" rel="self" type="application/atom+xml" />
  <link href="{{ url_base }}/" rel="alternate" type="text/html" />
  <updated>{{ site.time | date_to_xmlschema }}</updated>
  <id>{{ url_base }}</id>

  {% if site.name %}
    <title>{{ site.name }}</title>
  {% endif %}

  {% if site.description %}
    <subtitle>{{ site.description }}</subtitle>
  {% endif %}

  {% if site.author %}
    <author>
      <name>{{ site.author }}</name>
    </author>
  {% endif %}

  {% for post in site.posts %}
    <entry>
      <title>{{ post.title | xml_escape }}</title>
      <link href="{{ post.url | prepend: url_base }}" rel="alternate" type="text/html" title="{{ post.title | xml_escape }}" />
      <published>{{ post.date | date_to_xmlschema }}</published>
      <updated>{{ post.date | date_to_xmlschema }}</updated>

      <id>{{ post.id | prepend: url_base }}</id>
      <content type="html">{{ post.content | xml_escape }}</content>

      {% if post.author %}
        <author>
            <name>{{ post.author }}</name>
        </author>
      {% endif %}

      {% if post.category %}
        <category term="{{ post.category }}" />
      {% endif %}

      {% for tag in post.tags %}
        <category term="{{ tag }}" />
      {% endfor %}

      {% if post.excerpt %}
        <summary>{{ post.excerpt | strip_html | strip_newlines | xml_escape }}</summary>
      {% endif %}
    </entry>
  {% endfor %}
</feed>

{'fraction_non_alphanumeric': 0.21736710269969384, 'fraction_numerical': 0.004453103256331756, 'mean_word_length': 2.803174603174603, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 2, '>': 83, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 21}, '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': '7095746', 'n_tokens_mistral': 1320, 'n_tokens_neox': 1167, 'n_words': 265}