<commit_before>class Job < Delayed::Job
  set_table_name 'delayed_jobs'
  belongs_to :user
  
  validates_presence_of :job_name
  validates_presence_of :user_id
                         
  before_create :add_user_to_job
  
  private
  
  def add_user_to_job
    self.handler.user = self.user
  end
end<commit_msg>Changed user to user_id for handler because it was throwing an exception<commit_after>class Job < Delayed::Job
  set_table_name 'delayed_jobs'
  belongs_to :user
  
  validates_presence_of :job_name
  validates_presence_of :user_id
                         
  before_create :add_user_to_job
  
  private
  
  def add_user_to_job
    self.handler.user_id = self.user.id
  end
end
{'fraction_non_alphanumeric': 0.04775687409551375, 'fraction_numerical': 0.0, 'mean_word_length': 3.046783625730994, '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': '7103232', 'n_tokens_mistral': 246, 'n_tokens_neox': 241, 'n_words': 50}