<commit_before>hostport = url_for(:controller => 'account', :only_path => false).gsub(/\/$/, '')
xml.instruct!
xml.rss :version => '2.0',
  'xmlns:media' => 'http://search.yahoo.com/mrss/',
  'xmlns:content' => 'http://purl.org/rss/1.0/modules/content/' do
  xml.channel do
    if @group
      # this is arguably an abuse of gibberish, but it works
      xml.title :media_for_group.t % [@type_text.t, @group.full_name]
      xml.link hostport + "/" + @group.name
      xml.description :media_for_group.t % [@type_text.t, @group.full_name]
    else
      xml.title :media_without_group.t % @type_text.t
      xml.link hostport + "/"
      xml.description :media_without_group.t % @type_text.t
    end
    if @objects.size > 0
      xml.pubDate @objects[0].updated_at.to_s(:rfc822)
    end
    xml.generator "crabgrass"
    xml.docs "http://blogs.law.harvard.edu/tech/rss"
    @objects.each do |object|
      xml.item do
        xml.title object.page.title
        xml.description object.page.summary
        xml.author "<EMAIL> (#{object.page.updated_by.login})"
        xml.link hostport + page_url(object.page)
        xml << render(:partial => @type.to_s.underscore, :locals => {:hostport => hostport, :object => object})
      end
    end
  end
end<commit_msg>include tags in rss feeds<commit_after>hostport = url_for(:controller => 'account', :only_path => false).gsub(/\/$/, '')
xml.instruct!
xml.rss :version => '2.0',
  'xmlns:media' => 'http://search.yahoo.com/mrss/',
  'xmlns:content' => 'http://purl.org/rss/1.0/modules/content/' do
  xml.channel do
    if @group
      # this is arguably an abuse of gibberish, but it works
      xml.title :media_for_group.t % [@type_text.t, @group.full_name]
      xml.link hostport + "/" + @group.name
      xml.description :media_for_group.t % [@type_text.t, @group.full_name]
    else
      xml.title :media_without_group.t % @type_text.t
      xml.link hostport + "/"
      xml.description :media_without_group.t % @type_text.t
    end
    if @objects.size > 0
      xml.pubDate @objects[0].updated_at.to_s(:rfc822)
    end
    xml.generator "crabgrass"
    xml.docs "http://blogs.law.harvard.edu/tech/rss"
    @objects.each do |object|
      xml.item do
        xml.title object.page.title
        xml.description object.page.summary
        xml.author "<EMAIL> (#{object.page.updated_by.login})"
        xml.link hostport + page_url(object.page)
        object.page.tags.each do |tag|
          xml.catgeory tag.name
        end
        xml << render(:partial => @type.to_s.underscore, :locals => {:hostport => hostport, :object => object})
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.1529950400610454, 'fraction_numerical': 0.006867607783288821, 'mean_word_length': 2.7890173410404624, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 41}, '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': '4718057', 'n_tokens_mistral': 941, 'n_tokens_neox': 915, 'n_words': 181}