<commit_before>class User < ActiveRecord::Base
  # Include default devise modules. Others available are:
  # :confirmable, :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :registerable, :lockable, :confirmable,
         :recoverable, :rememberable, :trackable, :validatable,
         :omniauthable, :omniauth_providers => [:facebook, :google_oauth2]

  has_many :entries
  has_many :questions
  has_many :videos
  validates_presence_of :name, :email
  validates :agreement, acceptance: { accept: true }
  scope :created_in_time_count, ->(date, duration) { where(created_at: (date..(date + duration))).count }<commit_msg>add message<commit_after>class User < ActiveRecord::Base
  # Include default devise modules. Others available are:
  # :confirmable, :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :registerable, :lockable, :confirmable,
         :recoverable, :rememberable, :trackable, :validatable,
         :omniauthable, :omniauth_providers => [:facebook, :google_oauth2]

  has_many :entries
  has_many :questions
  has_many :videos
  validates_presence_of :name, :email
  validates :agreement, acceptance: { accept: true }, on: :create, message: "請閱讀後同意使用條款。"
  scope :created_in_time_count, ->(date, duration) { where(created_at: (date..(date + duration))).count }
{'fraction_non_alphanumeric': 0.11685393258426967, 'fraction_numerical': 0.00149812734082397, 'mean_word_length': 5.549019607843137, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5141136', 'n_tokens_mistral': 446, 'n_tokens_neox': 420, 'n_words': 103}