<commit_before>xml = Builder::XmlMarkup.new(:indent => 1)
xml.instruct!
xml.sitemapindex(:xmlns => "http://www.sitemaps.org/schemas/sitemap/0.9") do
  (@count / 500.0).ceil.times do |n|
    page = nil
    page = (n + 1) unless n == 0
    xml.sitemap do
      xml.loc nodes_url(:format => :sitemap, :page => page)
    end
  end
end<commit_msg>improved rendering of sitemap index.<commit_after>xml = Builder::XmlMarkup.new(:indent => 1)
xml.instruct!
xml.sitemapindex(:xmlns => "http://www.sitemaps.org/schemas/sitemap/0.9") do
  base_url = nodes_url(:format => :sitemap)
  ((@count / 500.0).ceil + 1).times do |n|
    next if n == 0
    xml.sitemap do
      xml.loc(base_url + "?page=#{n}")
    end
  end
end
{'fraction_non_alphanumeric': 0.1753889674681754, 'fraction_numerical': 0.02545968882602546, 'mean_word_length': 3.3703703703703702, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 12}, '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': '1767465', 'n_tokens_mistral': 292, 'n_tokens_neox': 277, 'n_words': 58}