<commit_before>class User < ActiveRecord::Base

  belongs_to :room, counter_cache: true
  has_many :suggested_answers, dependent: :destroy
  has_many :daily_statisticses, dependent: :destroy
  after_initialize :init

  def authentificate(auth_hash)
    auth = Authentication.find_or_create_by_hash(auth_hash, self)
    auth.user
  end<commit_msg>Fixed deleting of users.<commit_after>class User < ActiveRecord::Base

  belongs_to :room, counter_cache: true
  has_many :suggested_answers, dependent: :destroy
  has_many :daily_statisticses, class_name: 'DailyStatistics', dependent: :destroy
  after_initialize :init

  def authentificate(auth_hash)
    auth = Authentication.find_or_create_by_hash(auth_hash, self)
    auth.user
  end
{'fraction_non_alphanumeric': 0.0776566757493188, 'fraction_numerical': 0.0, 'mean_word_length': 6.0, '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': '871939', 'n_tokens_mistral': 242, 'n_tokens_neox': 233, 'n_words': 52}