<commit_before>class Admin < ActiveRecord::Base
  # devise :database_authenticatable, :recoverable,
         # :rememberable, :trackable, :validatable,
         # :registerable

  attr_accessible :email, :password, :password_confirmation,
                  :remember_me, :first_name, :last_name, :role

  validates :first_name, :last_name, :email, :role, presence: true

  ROLES = ["Super", "Admin"]

  has_crud searchable: [:id, :first_name, :last_name, :email, :role],
           ajaxable: true, settings: false

  crud.config do
    fields role: { type: :roles }
    config :admin do<commit_msg>Fixed bug caused by commenting our admin devise due to sleepiness<commit_after>class Admin < ActiveRecord::Base
  devise :database_authenticatable, :recoverable,
         :rememberable, :trackable, :validatable,
         :registerable

  attr_accessible :email, :password, :password_confirmation,
                  :remember_me, :first_name, :last_name, :role

  validates :first_name, :last_name, :email, :role, presence: true

  ROLES = ["Super", "Admin"]

  has_crud searchable: [:id, :first_name, :last_name, :email, :role],
           ajaxable: true, settings: false

  crud.config do
    fields role: { type: :roles }
    config :admin do
{'fraction_non_alphanumeric': 0.11513687600644122, 'fraction_numerical': 0.0, 'mean_word_length': 3.7442748091603053, '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': '1831825', 'n_tokens_mistral': 405, 'n_tokens_neox': 381, 'n_words': 105}