<commit_before>module SessionsHelper
  def is_admin?
    [1, 2, 3, 5, 25, 51].include? current_user.try :id
  end

  def autheorize_admin!
    redirect_to root_path unless is_admin?
  end
end<commit_msg>change is_admin?<commit_after>module SessionsHelper
  def is_admin?
    current_user.role == '1'
  end

  def autheorize_admin!
    redirect_to root_path unless is_admin?
  end
end
{'fraction_non_alphanumeric': 0.07571801566579635, 'fraction_numerical': 0.02349869451697128, 'mean_word_length': 4.1891891891891895, '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': '2243368', 'n_tokens_mistral': 149, 'n_tokens_neox': 137, 'n_words': 36}