<commit_before># frozen_string_literal: true

# To run task
# bundle exec rake sitemap:refresh:no_ping
# Or production
# bundle exec rake sitemap:refresh RAILS_ENV=production
# https://www.google.com/webmasters/tools/

require 'rubygems'
require 'sitemap_generator'

SitemapGenerator.verbose = false
SitemapGenerator::Sitemap.default_host = 'https://myapnea.org'
SitemapGenerator::Sitemap.sitemaps_host = ENV['website_url']
SitemapGenerator::Sitemap.public_path = 'carrierwave/'
SitemapGenerator::Sitemap.sitemaps_path = 'sitemaps/'
SitemapGenerator::Sitemap.create do
  add '/landing', changefreq: 'daily', priority: 0.7
  add '/blog', changefreq: 'daily', priority: 0.9
  add '/forum', changefreq: 'daily', priority: 0.8
  add '/about', changefreq: 'weekly', priority: 0.7
  add '/team', changefreq: 'monthly', priority: 0.51
  add '/learn', changefreq: 'weekly', priority: 0.51
  add '/faqs', changefreq: 'monthly', priority: 0.51
  add '/partners', changefreq: 'monthly', priority: 0.3

  Broadcast.published.find_each do |broadcast|
    add "/blog/#{broadcast.to_param}", lastmod: broadcast.updated_at
  end
  Chapter.current.find_each do |chapter|
    add "/forum/#{chapter.to_param}", lastmod: chapter.updated_at
    if chapter.last_page > 1
      (2..chapter.last_page).each do |page|
        add "/forum/#{chapter.to_param}/#{page}", lastmod: chapter.updated_at
      end
    end
  end
  add '/surveys', changefreq: 'weekly', priority: 0.8
  Survey.viewable.find_each do |survey|
    add "/surveys/#{survey.to_param}", lastmod: survey.updated_at
  end
  add '/providers', changefreq: 'monthly', priority: 0.6
end
<commit_msg>Added contact page to sitemap<commit_after># frozen_string_literal: true

# To run task
# bundle exec rake sitemap:refresh:no_ping
# Or production
# bundle exec rake sitemap:refresh RAILS_ENV=production
# https://www.google.com/webmasters/tools/

require 'rubygems'
require 'sitemap_generator'

SitemapGenerator.verbose = false
SitemapGenerator::Sitemap.default_host = 'https://myapnea.org'
SitemapGenerator::Sitemap.sitemaps_host = ENV['website_url']
SitemapGenerator::Sitemap.public_path = 'carrierwave/'
SitemapGenerator::Sitemap.sitemaps_path = 'sitemaps/'
SitemapGenerator::Sitemap.create do
  add '/landing', changefreq: 'daily', priority: 0.7
  add '/blog', changefreq: 'daily', priority: 0.9
  add '/forum', changefreq: 'daily', priority: 0.8
  add '/about', changefreq: 'weekly', priority: 0.7
  add '/team', changefreq: 'monthly', priority: 0.51
  add '/learn', changefreq: 'weekly', priority: 0.51
  add '/faqs', changefreq: 'monthly', priority: 0.51
  add '/partners', changefreq: 'monthly', priority: 0.3
  add '/contact', changefreq: 'monthly', priority: 0.3

  Broadcast.published.find_each do |broadcast|
    add "/blog/#{broadcast.to_param}", lastmod: broadcast.updated_at
  end
  Chapter.current.find_each do |chapter|
    add "/forum/#{chapter.to_param}", lastmod: chapter.updated_at
    if chapter.last_page > 1
      (2..chapter.last_page).each do |page|
        add "/forum/#{chapter.to_param}/#{page}", lastmod: chapter.updated_at
      end
    end
  end
  add '/surveys', changefreq: 'weekly', priority: 0.8
  Survey.viewable.find_each do |survey|
    add "/surveys/#{survey.to_param}", lastmod: survey.updated_at
  end
  add '/providers', changefreq: 'monthly', priority: 0.6
end

{'fraction_non_alphanumeric': 0.14255765199161424, 'fraction_numerical': 0.015573525007487272, 'mean_word_length': 4.7289879931389365, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, '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': '1600832', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1148, 'n_words': 272}