<commit_before>class User < ActiveRecord::Base
end<commit_msg>Add relationships to User model<commit_after>class User < ActiveRecord::Base
	has_many :comments, foreign_key: :commenter_id
	has_many :likes, foreign_key: :liker_id
	has_many :friendships, foreign_key: :friend_1_id
  has_many :friends, through: :friendships, source: :friend
  has_many :checkins
  has_many :checked_in_places, through: :checkins

  validates :username, :first_name, :last_name, :email, { presence: true}
  has_secure_password
end
{'fraction_non_alphanumeric': 0.09233791748526522, 'fraction_numerical': 0.0019646365422396855, 'mean_word_length': 7.5, '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': '7085280', 'n_tokens_mistral': 171, 'n_tokens_neox': 167, 'n_words': 43}