<commit_before># encoding: utf-8
xml.instruct! :xml, :version => "1.0", :encoding=>"UTF-8"
xml.rss "version" => "2.0",
	"xmlns:wfw" => "http://wellformedweb.org/CommentAPI/" do
    xml.channel do
	xml.title {xml.cdata! @index.title }
	xml.link "http://" + @index.bind_domain 
	xml.generator "Chito"
	xml.description {xml.cdata! @index.info } 

	@posts.each do |post|
	    xml.item do
		xml.title {xml.cdata! post.title}
		xml.link post_url(post, :subdomain => post.user.name, :format => :html) 
		xml.description do
		    xml.cdata! post.brief.html_safe
		end
		xml.tag! 'wfw:commentRss', post_url(post, :format => :rss)
		xml.pubDate post.created_at.to_s(:rfc822)
		xml.guid post_url(post, :html, :subdomain => post.user.name, :format => :html)
        xml.author post.user.nick
	    end
	end
    end
end<commit_msg>fix nil user problem in index rss<commit_after># encoding: utf-8
xml.instruct! :xml, :version => "1.0", :encoding=>"UTF-8"
xml.rss "version" => "2.0",
	"xmlns:wfw" => "http://wellformedweb.org/CommentAPI/" do
    xml.channel do
	xml.title {xml.cdata! @index.title }
	xml.link "http://" + @index.bind_domain 
	xml.generator "Chito"
	xml.description {xml.cdata! @index.info } 

	@posts.each do |post|
        next unless post.user
	    xml.item do
		xml.title {xml.cdata! post.title}
		xml.link post_url(post, :subdomain => post.user.name, :format => :html) 
		xml.description do
		    xml.cdata! post.brief.html_safe
		end
		xml.tag! 'wfw:commentRss', post_url(post, :format => :rss)
		xml.pubDate post.created_at.to_s(:rfc822)
		xml.guid post_url(post, :html, :subdomain => post.user.name, :format => :html)
        xml.author post.user.nick
	    end
	end
    end
end
{'fraction_non_alphanumeric': 0.1668646080760095, 'fraction_numerical': 0.010688836104513063, 'mean_word_length': 3.493333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 42}, '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': '5030061', 'n_tokens_mistral': 681, 'n_tokens_neox': 648, 'n_words': 140}