<commit_before>module Community
  class TopicsController < ::ActionController::Base
    layout 'community'

    def show
      @topic = Community::Topic.find_by_slug params[:id]
      not_found! if @topic.nil?
      @first_post = @topic.posts.order(:created_at).first
      @posts = @topic.posts.order(:created_at).page(params[:page]).per(20)
    end
  end
end<commit_msg>Fix accidental error instead of 404.<commit_after>module Community
  class TopicsController < ::ActionController::Base
    layout 'community'

    def show
      @topic = Community::Topic.find_by_slug params[:id]
      raise ActionController::RoutingError.new('Not Found') if @topic.nil?
      @first_post = @topic.posts.order(:created_at).first
      @posts = @topic.posts.order(:created_at).page(params[:page]).per(20)
    end
  end
end
{'fraction_non_alphanumeric': 0.1271604938271605, 'fraction_numerical': 0.008641975308641974, 'mean_word_length': 4.06875, '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': '5661384', 'n_tokens_mistral': 254, 'n_tokens_neox': 246, 'n_words': 50}