<commit_before>---
---
!!! XML

%feed{ 'xml:lang'=>'en-US', :xmlns=>'http://www.w3.org/2005/Atom' }
  %id= "#{site.base_url}/"
  %title= escape_once( page.title )
  - if ( defined?( site.author ) )
    %author
      - if ( defined?( site.author.name ) )
        %name= site.author.name
        - if ( site.author.email )
          %email= site.author.email
      - else
        %name= site.author
  - unless page.entries.empty?
    %updated= page.entries.first.date.xmlschema
    %link{:rel=>"self",      :type=>"application/atom+xml", :href=>"#{site.base_url}#{page.url}" }
    %link{:rel=>"alternate", :type=>"text/html",            :href=>"#{site.base_url}/" }
    - for entry in page.entries
      %entry
        %id #{site.base_url}#{entry.url}
        %title= escape_once( entry.title )
        %updated= entry.date.xmlschema
        %link{:rel=>"alternate", :type=>"text/html", :href=>"#{site.base_url}#{entry.url}" }
        - if ( defined?( entry.author ) )
          %author
            - if ( defined?( entry.author.name ) )
              %name= entry.author.name
              - if ( entry.author.email )
                %email= entry.author.email
            - else
              %name= entry.author
        %summary
          #{summarize( html_to_text( entry.content ), 100 )}...
        %content{:type=>'html'}
          = clean_html( escape_once( fully_qualify_urls( site.base_url, find_and_preserve( entry.content ) ) ) )
  <commit_msg>Fix issue with entities in the content of atom feeds.<commit_after>---
---
!!! XML

%feed{ 'xml:lang'=>'en-US', :xmlns=>'http://www.w3.org/2005/Atom' }
  %id= "#{site.base_url}/"
  %title= escape_once( page.title )
  - if ( defined?( site.author ) )
    %author
      - if ( defined?( site.author.name ) )
        %name= site.author.name
        - if ( site.author.email )
          %email= site.author.email
      - else
        %name= site.author
  - unless page.entries.empty?
    %updated= page.entries.first.date.xmlschema
    %link{:rel=>"self",      :type=>"application/atom+xml", :href=>"#{site.base_url}#{page.url}" }
    %link{:rel=>"alternate", :type=>"text/html",            :href=>"#{site.base_url}/" }
    - for entry in page.entries
      %entry
        %id #{site.base_url}#{entry.url}
        %title= escape_once( entry.title )
        %updated= entry.date.xmlschema
        %link{:rel=>"alternate", :type=>"text/html", :href=>"#{site.base_url}#{entry.url}" }
        - if ( defined?( entry.author ) )
          %author
            - if ( defined?( entry.author.name ) )
              %name= entry.author.name
              - if ( entry.author.email )
                %email= entry.author.email
            - else
              %name= entry.author
        %summary
          #{summarize( html_to_text( entry.content ), 100 )}...
        %content{:type=>'html'}
          = clean_html( html_escape( fully_qualify_urls( site.base_url, find_and_preserve( entry.content ) ) ) )
  
{'fraction_non_alphanumeric': 0.18024439918533605, 'fraction_numerical': 0.005431093007467753, 'mean_word_length': 2.1654135338345863, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, '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': '6334629', 'n_tokens_mistral': 995, 'n_tokens_neox': 1003, 'n_words': 167}