<commit_before>class User < ActiveRecord::Base
  attr_accessor :password_confirmation, :password
  validates :email, presence: true, uniqueness: true, email: true
  validates :password, presence: true, length: { minimum: 6, maximum: 64 }, on: :create
  validates :name, presence: true, uniqueness: true, length: { minimum: 4, maximum: 64 }
  validates :password_confirmation, presence: true, length: { minimum: 6, maximum: 64 }, on: :create
  validates_confirmation_of :password, on: :create
  
  before_create :encryptable
  
  def password_salt<commit_msg>add callback to user<commit_after>class User < ActiveRecord::Base
  attr_accessor :password_confirmation, :password
  validates :email, presence: true, uniqueness: true, email: true
  validates :password, presence: true, length: { minimum: 6, maximum: 64 }, on: :create
  validates :name, presence: true, uniqueness: true, length: { minimum: 4, maximum: 64 }
  validates :password_confirmation, presence: true, length: { minimum: 6, maximum: 64 }, on: :create
  validates_confirmation_of :password, on: :create
  
  before_create :encryptable
  after_create :send_confirmation_email
  
  def password_salt
{'fraction_non_alphanumeric': 0.10232158211521926, 'fraction_numerical': 0.015477214101461736, 'mean_word_length': 5.689655172413793, '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': '3781347', 'n_tokens_mistral': 366, 'n_tokens_neox': 341, 'n_words': 114}