<commit_before>class User
  include Mongoid::Document
  include Mongoid::Timestamps
  extend DeviseOverrides
  include NumberGenerator
  rolify

  belongs_to :account, inverse_of: :users, class_name: Account.name
  before_validation { self.account ||= Account.current }
  scope :by_account, -> { where(account: Account.current ) }

  # Include default devise modules. Others available are:
  # :recoverable, :rememberable, :confirmable, :lockable, :timeoutable and :omniauthable
  
  devise :trackable, :validatable, :omniauthable, :database_authenticatable, :confirmable
  devise :registerable unless ENV['UNABLE_REGISTERABLE'].to_b
  devise :confirmable unless ENV['UNABLE_CONFIRMABLE'].to_b

  # Database authenticatable
  field :email,              type: String, default: ""
  field :encrypted_password, type: String, default: ""

  ## Recoverable
  field :reset_password_token,   type: String
  field :reset_password_sent_at, type: Time

  ## Rememberable
  field :remember_created_at, type: Time<commit_msg>removed wrong double declaration of confirmable devise module<commit_after>class User
  include Mongoid::Document
  include Mongoid::Timestamps
  extend DeviseOverrides
  include NumberGenerator
  rolify

  belongs_to :account, inverse_of: :users, class_name: Account.name
  before_validation { self.account ||= Account.current }
  scope :by_account, -> { where(account: Account.current ) }

  # Include default devise modules. Others available are:
  # :recoverable, :rememberable, :confirmable, :lockable, :timeoutable and :omniauthable
  
  devise :trackable, :validatable, :omniauthable, :database_authenticatable
  devise :registerable unless ENV['UNABLE_REGISTERABLE'].to_b
  devise :confirmable unless ENV['UNABLE_CONFIRMABLE'].to_b

  # Database authenticatable
  field :email,              type: String, default: ""
  field :encrypted_password, type: String, default: ""

  ## Recoverable
  field :reset_password_token,   type: String
  field :reset_password_sent_at, type: Time

  ## Rememberable
  field :remember_created_at, type: Time
{'fraction_non_alphanumeric': 0.09029126213592233, 'fraction_numerical': 0.0, 'mean_word_length': 5.152238805970149, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '65975', 'n_tokens_mistral': 632, 'n_tokens_neox': 609, 'n_words': 161}