<commit_before>xml.instruct! :xml, version: '1.0'
xml.rss version: '2.0' do
  xml.channel do
    xml.title get_setting('title')
    xml.description { xml.cdata!(get_setting('description')) }
    xml.link rss_feed_url

    @rss_records.each do |rss_record|
      if rss_record.owner
        xml.item do
          xml.title { xml.cdata!(rss_record.owner.title) }
          xml.description { xml.cdata!((render "#{rss_record.owner_type.underscore.pluralize}/#{rss_record.owner_type.underscore}", rss_record.owner_type.underscore.to_sym => rss_record.owner).html_safe) }
          xml.pubDate rss_record.owner.created_at.to_s(:rfc822)
          xml.link image_url(rss_record.owner)
          xml.guid image_url(rss_record.owner)
        end
      end
    end
  end
end<commit_msg>fixed links in rss<commit_after>xml.instruct! :xml, version: '1.0'
xml.rss version: '2.0' do
  xml.channel do
    xml.title get_setting('title')
    xml.description { xml.cdata!(get_setting('description')) }
    xml.link rss_feed_url

    @rss_records.each do |rss_record|
      if rss_record.owner
        xml.item do
          xml.title { xml.cdata!(rss_record.owner.title) }
          xml.description { xml.cdata!((render "#{rss_record.owner_type.underscore.pluralize}/#{rss_record.owner_type.underscore}", rss_record.owner_type.underscore.to_sym => rss_record.owner).html_safe) }
          xml.pubDate rss_record.owner.created_at.to_s(:rfc822)
          xml.link send("#{rss_record.owner_type.underscore}_url".to_sym, rss_record.owner)
          xml.guid send("#{rss_record.owner_type.underscore}_url".to_sym, rss_record.owner)
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.12629022465088038, 'fraction_numerical': 0.008500303582270795, 'mean_word_length': 3.2694300518134716, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 32}, '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': '2737084', 'n_tokens_mistral': 591, 'n_tokens_neox': 580, 'n_words': 86}