<commit_before># coding:utf-8
RailsAdmin.current_user_method{ current_user }

RailsAdmin.authenticate_with{ signed_in? }

RailsAdmin.authorize_with {
  unless current_user
    flash[:error] = '権限がありません'
    redirect_to '/'
  end
}

RailsAdmin.config do |config|
  config.list.default_items_per_page = 100
end
<commit_msg>fix deprecation worning<commit_after># coding:utf-8
RailsAdmin.config do |config|
  config.default_items_per_page = 100
  config.current_user_method { current_user }
  config.authenticate_with { signed_in? }
  config.authorize_with {
    unless current_user
      flash[:error] = '権限がありません'
      redirect_to '/'
    end
  }
end

{'fraction_non_alphanumeric': 0.09384615384615384, 'fraction_numerical': 0.012307692307692308, 'mean_word_length': 4.470588235294118, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7229153', 'n_tokens_mistral': 251, 'n_tokens_neox': 233, 'n_words': 40}