<commit_before>!!! XML
%feed(xmlns='http://www.w3.org/2005/Atom')
  %title(type='text')= @title
  %generator(uri='http://effectif.com/nesta') Nesta
  %id= atom_id
  %link(href="#{base_url}/articles.xml" rel='self')
  %link(href=base_url rel='alternate')
  %subtitle(type='text')= @subtitle
  - if @articles[0]
    %updated= @articles[0].date(:xmlschema)
  - if @author
    %author
      - if @author['name']
        %name= @author['name']
      - if @author['uri']
        %uri= @author['uri']
      - if @author['email']
        %email= @author['email']
  - @articles.each do |article|
    %entry
      %title= article.heading
      %link{ :href => url_for(article), :type => 'text/html', :rel => 'alternate' }
      %id= atom_id(article)
      %content(type='html')&= find_and_preserve(absolute_urls(article.body))
      %published= article.date(:xmlschema)
      %updated= article.date(:xmlschema)
      - article.categories.each do |category|
        %category{ :term => category.permalink }
<commit_msg>allow haml partials to be called from pages and not break feed<commit_after>!!! XML
%feed(xmlns='http://www.w3.org/2005/Atom')
  %title(type='text')= @title
  %generator(uri='http://effectif.com/nesta') Nesta
  %id= atom_id
  %link(href="#{base_url}/articles.xml" rel='self')
  %link(href=base_url rel='alternate')
  %subtitle(type='text')= @subtitle
  - if @articles[0]
    %updated= @articles[0].date(:xmlschema)
  - if @author
    %author
      - if @author['name']
        %name= @author['name']
      - if @author['uri']
        %uri= @author['uri']
      - if @author['email']
        %email= @author['email']
  - @articles.each do |article|
    %entry
      %title= article.heading
      %link{ :href => url_for(article), :type => 'text/html', :rel => 'alternate' }
      %id= atom_id(article)
      %content(type='html')&= find_and_preserve(absolute_urls(article.body(self)))
      %published= article.date(:xmlschema)
      %updated= article.date(:xmlschema)
      - article.categories.each do |category|
        %category{ :term => category.permalink }

{'fraction_non_alphanumeric': 0.18928054080154516, 'fraction_numerical': 0.006760019314340898, 'mean_word_length': 3.484848484848485, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 10}, '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': '3167788', 'n_tokens_mistral': 730, 'n_tokens_neox': 715, 'n_words': 133}