<commit_before>module OkuribitoRails
  class ApplicationController < ActionController::Base
    protect_from_forgery

    before_action :available_action!

    def available_action!
      if prohibited_env?
        render nothing: true, status: 403
        return
      end
    end

    private

    def prohibited_env?
      OkuribitoRails.config.prohibit_webui.include?(ENV["RAILS_ENV"])
    end
  end
end<commit_msg>"render nothing" is deprecated.<commit_after>module OkuribitoRails
  class ApplicationController < ActionController::Base
    protect_from_forgery

    before_action :available_action!

    def available_action!
      if prohibited_env?
        head :forbidden
      end
    end

    private

    def prohibited_env?
      OkuribitoRails.config.prohibit_webui.include?(ENV["RAILS_ENV"])
    end
  end
end
{'fraction_non_alphanumeric': 0.05953827460510328, 'fraction_numerical': 0.0036452004860267314, 'mean_word_length': 3.2694300518134716, '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': '4150652', 'n_tokens_mistral': 258, 'n_tokens_neox': 242, 'n_words': 52}