<commit_before>class HomeController < ApplicationController
  skip_authorize_resource

  def index
    # we were previously generating a lot of instance variables like
    # @members_count and @interesting_crops in here, but now we call
    # the relevant class methods directly in the view, so that fragment
    # caching will be effective.

    respond_to do |format|
      format.html # index.html.haml
    end
  end
end<commit_msg>DRY the homes controller<commit_after>class HomeController < ApplicationController
  skip_authorize_resource
  respond_to :html

  def index
    # we were previously generating a lot of instance variables like
    # @members_count and @interesting_crops in here, but now we call
    # the relevant class methods directly in the view, so that fragment
    # caching will be effective.
  end
end
{'fraction_non_alphanumeric': 0.03985507246376811, 'fraction_numerical': 0.0, 'mean_word_length': 3.791907514450867, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '2743982', 'n_tokens_mistral': 217, 'n_tokens_neox': 209, 'n_words': 94}