<commit_before># Copyright (c) Universidade Federal Fluminense (UFF).
# This file is part of SAPOS. Please, consult the license terms in the LICENSE file.

class User < ApplicationRecord

  has_one :professor
  has_one :student
  belongs_to :role

  has_paper_trail

  devise :invitable, :database_authenticatable, :recoverable, :rememberable, :registerable, :trackable, :confirmable,
         :lockable

  validates :email, :presence => true, :uniqueness => true
  validates :name, :presence => true<commit_msg>#346: do not send confirmation email for invitations<commit_after># Copyright (c) Universidade Federal Fluminense (UFF).
# This file is part of SAPOS. Please, consult the license terms in the LICENSE file.

class User < ApplicationRecord

  has_one :professor
  has_one :student
  belongs_to :role

  has_paper_trail

  devise :invitable, :database_authenticatable, :recoverable, :rememberable, :registerable, :trackable, :confirmable,
         :lockable

  after_create :skip_confirmation_notification!, unless: Proc.new { self.invitation_token.nil? }

  validates :email, :presence => true, :uniqueness => true
  validates :name, :presence => true
{'fraction_non_alphanumeric': 0.08957795004306632, 'fraction_numerical': 0.002583979328165375, 'mean_word_length': 5.020725388601036, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '5129491', 'n_tokens_mistral': 365, 'n_tokens_neox': 345, 'n_words': 113}