<commit_before>class User < ApplicationRecord
  #validates :real_name, presence: true
  enum role: [ :reader, :mod, :admin ]# admins can delete all users, mods can view all users
  has_many :books, :dependent => :destroy
  accepts_nested_attributes_for :books
  has_many :genres, through: :books

  has_many :trades

  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable, :omniauthable, :omniauth_providers => [:facebook]<commit_msg>added validations to the user model<commit_after>class User < ApplicationRecord
  validates :real_name, :street, :city, :state, :zipcode, presence: true
  enum role: [ :reader, :mod, :admin ]# admins can delete all users, mods can view all users
  has_many :books, :dependent => :destroy
  accepts_nested_attributes_for :books
  has_many :genres, through: :books

  has_many :trades

  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable, :omniauthable, :omniauth_providers => [:facebook]
{'fraction_non_alphanumeric': 0.10278578290105668, 'fraction_numerical': 0.0, 'mean_word_length': 5.67948717948718, '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': '3781364', 'n_tokens_mistral': 329, 'n_tokens_neox': 317, 'n_words': 96}