<commit_before>class User < ActiveRecord::Base
  # Remember to create a migration!
end<commit_msg>Create relations in User model<commit_after>class User < ActiveRecord::Base
  # Remember to create a migration!
  has_many :messages

  has_many :sent_messages, foreign_key: "sender_id", class_name: "Message"
  has_many :received_messages, foreign_key: "receiver_id", class_name: "Message"

  has_many :senders, through: :received_messages, source: :sender
  has_many :receivers, through: :sent_messages, source: :receiver

  has_one :survey

end
{'fraction_non_alphanumeric': 0.09191176470588236, 'fraction_numerical': 0.0, 'mean_word_length': 6.465753424657534, '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': '7441991', 'n_tokens_mistral': 173, 'n_tokens_neox': 167, 'n_words': 49}