<commit_before>module CohesiveAdmin
  class ApplicationController < ActionController::Base
    protect_from_forgery with: :exception

    layout :set_layout

    # ensure that the user is logged in as the very first filter
    prepend_before_action :load_user

    unless Rails.env.development?
      rescue_from Exception, with: lambda { |exception| render_500 }
      rescue_from ActionController::RoutingError, ActionController::UnknownController, ::AbstractController::ActionNotFound, ActiveRecord::RecordNotFound, with: lambda { |exception| render_404 }
    end


    private


      def render_error(status)
        respond_to do |format|
          format.html {<commit_msg>No more UnknownController<commit_after>module CohesiveAdmin
  class ApplicationController < ActionController::Base
    protect_from_forgery with: :exception

    layout :set_layout

    # ensure that the user is logged in as the very first filter
    prepend_before_action :load_user

    unless Rails.env.development?
      rescue_from Exception, with: lambda { |exception| render_500 }
      rescue_from ActionController::RoutingError, ::AbstractController::ActionNotFound, ActiveRecord::RecordNotFound, with: lambda { |exception| render_404 }
    end


    private


      def render_error(status)
        respond_to do |format|
          format.html {
{'fraction_non_alphanumeric': 0.0651685393258427, 'fraction_numerical': 0.008988764044943821, 'mean_word_length': 4.0606060606060606, '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': '2400012', 'n_tokens_mistral': 359, 'n_tokens_neox': 337, 'n_words': 99}