<commit_before># Set the host name for URL creation
SitemapGenerator::Sitemap.default_host = "https://www.fablabs.io"

SitemapGenerator::Sitemap.create do
  # Put links creation logic here.
  #
  # The root path '/' and sitemap index file are added automatically for you.
  # Links are added to the Sitemap in the order they are specified.
  #
  # Usage: add(path, options={})
  #        (default options are used if you don't specify)
  #
  # Defaults: :priority => 0.5, :changefreq => 'weekly',
  #           :lastmod => Time.now, :host => default_host

    add labs_path, :priority => 0.7, :changefreq => 'daily'
    Lab.with_approved_state.find_each do |lab|
      add lab_path(lab, { locale: nil }), :lastmod => lab.updated_at
    end
end<commit_msg>sitemap<commit_after># Set the host name for URL creation
SitemapGenerator::Sitemap.default_host = "https://www.fablabs.io"

SitemapGenerator::Sitemap.create do
  # Put links creation logic here.
  #
  # The root path '/' and sitemap index file are added automatically for you.
  # Links are added to the Sitemap in the order they are specified.
  #
  # Usage: add(path, options={})
  #        (default options are used if you don't specify)
  #
  # Defaults: :priority => 0.5, :changefreq => 'weekly',
  #           :lastmod => Time.now, :host => default_host

    add labs_path, :priority => 0.7, :changefreq => 'daily'
    Lab.with_approved_state.find_each do |lab|
      add lab_path(lab, { locale: nil }), :lastmod => lab.updated_at
    end

    add machines_path, :priority => 0.6, :changefreq => 'daily'
    Machine.find_each do |machine|
      add machine_path(machine, { locale: nil }), :lastmod => machine.updated_at
    end
end
{'fraction_non_alphanumeric': 0.12108682811577082, 'fraction_numerical': 0.005906674542232723, 'mean_word_length': 3.38860103626943, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 20, 'https://': 2, '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': '7440436', 'n_tokens_mistral': 566, 'n_tokens_neox': 547, 'n_words': 171}