<commit_before>class Admin < ActiveRecord::Base
  # Include default devise modules. Others available are:
  # :confirmable, :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :rememberable, :trackable, :validatable, :lockable

  validates :name, presence: true, uniqueness: true
end<commit_msg>Admin model RailsAdmin config<commit_after>class Admin < ActiveRecord::Base
  devise :database_authenticatable, :rememberable, :trackable, :validatable,
    :lockable

  validates :name, presence: true, uniqueness: true

  rails_admin do
    list do
      field :name
      field :email
      field :last_sign_in_at
      field :locked_at
    end

    show do
      field :name
      field :email
      field :last_sign_in_at
      field :last_sign_in_ip
      field :locked_at
    end

    edit do
      field :name
      field :email
    end
  end

  def to_s
    name
  end
end
{'fraction_non_alphanumeric': 0.06770255271920089, 'fraction_numerical': 0.0, 'mean_word_length': 3.2347417840375585, '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': '1312612', 'n_tokens_mistral': 286, 'n_tokens_neox': 268, 'n_words': 84}