<commit_before># not use compression
class SitemapGenerator::FileAdapter
  def gzip(stream, data); stream.write(data); stream.close end
end
SitemapGenerator::Sitemap.namer = SitemapGenerator::SimpleNamer.new(:sitemap, extension: '.xml')

# default host
SitemapGenerator::Sitemap.default_host = Setting["url"]

# sitemap generator
SitemapGenerator::Sitemap.create do
  pages = Dir.entries(File.join(Rails.root,"app","views","pages"))
  pages.each do |page|
    page_name = page.split(".").first
    add page_name if page_name.present?
  end

  add more_info_path
  add how_to_use_path
  add faq_path
  add participation_facts_path
  add participation_world_path

  add debates_path, priority: 0.7, changefreq: "daily"<commit_msg>changes page paths on sitemap.rb<commit_after># not use compression
class SitemapGenerator::FileAdapter
  def gzip(stream, data); stream.write(data); stream.close end
end
SitemapGenerator::Sitemap.namer = SitemapGenerator::SimpleNamer.new(:sitemap, extension: '.xml')

# default host
SitemapGenerator::Sitemap.default_host = Setting["url"]

# sitemap generator
SitemapGenerator::Sitemap.create do
  pages = ["accessibility",
           "census_terms",
           "conditions",
           "general_terms",
           "privacy"]
  pages.each do |page|
    add page_path(id: page)
  end

  add more_info_path
  add how_to_use_path
  add faq_path
  add participation_facts_path
  add participation_world_path

  add debates_path, priority: 0.7, changefreq: "daily"
{'fraction_non_alphanumeric': 0.10349462365591398, 'fraction_numerical': 0.002688172043010753, 'mean_word_length': 4.932270916334661, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3465923', 'n_tokens_mistral': 497, 'n_tokens_neox': 481, 'n_words': 110}