<commit_before>class StaticsController < ApplicationController
  
  # GET /
  def index
    expires_in 15.minutes, :public => true
  end
  
  # GET /legal
  def legal
    expires_in 1.hour, :public => true
  end
  
  # GET /sitemap.xml
  def sitemap
    expires_in 1.hour, :public => true
  end
end
<commit_msg>[#8] Document StaticsController.<commit_after># +StaticsController+ is the controller for so-called 'static' pages; that is,
# pages not directly belonging to another resource. This includes pages such as
# the homepage.
class StaticsController < ApplicationController
  
  # +GET /+
  #
  # The homepage.
  # Cached for 15 minutes.
  #
  # @return [void]
  def index
    expires_in 15.minutes, :public => true
  end
  
  # +GET /legal+
  #
  # The legal page, containing license and copyright information.
  # Cached for 1 hour.
  #
  # @return [void]
  def legal
    expires_in 1.hour, :public => true
  end
  
  # +GET /sitemap.xml+
  #
  # The sitemap, useful as generated score pages cannot otherwise be crawled.
  # Cached for 1 hour.
  #
  # @return [void]
  def sitemap
    expires_in 1.hour, :public => true
  end
  
end
{'fraction_non_alphanumeric': 0.09298245614035087, 'fraction_numerical': 0.011403508771929825, 'mean_word_length': 2.880952380952381, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '914379', 'n_tokens_mistral': 400, 'n_tokens_neox': 381, 'n_words': 127}