<commit_before>class Daylite::Contact < Daylite::Base
  belongs_to :category, foreign_key: "categoryid"
    
  has_one :user, foreign_key: "contactid"

  has_many :contacttaskjoins, foreign_key: "contactid"
  has_many :tasks, through: :contacttaskjoins
  has_many :notes, through: :contactnotejoins
  has_many :roles, foreign_key: "contactid"
  has_many :roletypes, through: :roles
  has_many :organizations, through: :roles

  has_many :phones, foreign_key: "contactid"
  has_many :electronic_addresses, foreign_key: "contactid"<commit_msg>Added owner to Daylite::Contact class<commit_after>class Daylite::Contact < Daylite::Base
  belongs_to :category, foreign_key: "categoryid"
  belongs_to :owner, class_name: "User", foreign_key: "assignedtoid"

  has_one :user, foreign_key: "contactid"

  has_many :contacttaskjoins, foreign_key: "contactid"
  has_many :tasks, through: :contacttaskjoins
  has_many :notes, through: :contactnotejoins
  has_many :roles, foreign_key: "contactid"
  has_many :roletypes, through: :roles
  has_many :organizations, through: :roles

  has_many :phones, foreign_key: "contactid"
  has_many :electronic_addresses, foreign_key: "contactid"
{'fraction_non_alphanumeric': 0.10162254483347566, 'fraction_numerical': 0.0, 'mean_word_length': 6.865771812080537, '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': '2061233', 'n_tokens_mistral': 405, 'n_tokens_neox': 395, 'n_words': 95}