<commit_before>class SitemapController < ApplicationController
  layout nil

  def course
    @most_recent = Course.select(:updated_at).order(updated_at: :desc).limit(1).first
    if stale?(etag: @most_recent, last_modified: @most_recent.updated_at.utc.rfc822)
      respond_to do |format|
        format.xml { @courses = Course.select(:id, :updated_at) }
      end
    end
  end
end<commit_msg>fix error<commit_after>class SitemapController < ApplicationController
  layout nil

  def course
    @most_recent = Course.select(:updated_at).order(updated_at: :desc).limit(1).first
    if stale?(etag: @most_recent, last_modified: @most_recent.updated_at)
      respond_to do |format|
        format.xml { @courses = Course.select(:id, :updated_at) }
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.10838709677419354, 'fraction_numerical': 0.0064516129032258064, 'mean_word_length': 3.9743589743589745, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7042415', 'n_tokens_mistral': 263, 'n_tokens_neox': 253, 'n_words': 52}