<commit_before># todo: reference to lti_param_model
class RemoteEvaluationMapping < ApplicationRecord
  before_create :generate_token, unless: :validation_token?
  belongs_to :exercise
  belongs_to :user

  def generate_token
    self.validation_token = SecureRandom.urlsafe_base64
  end
end<commit_msg>Specify `ExternalUser` as class for `user` in `RemoteEvaluationMapping`<commit_after># todo: reference to lti_param_model
class RemoteEvaluationMapping < ApplicationRecord
  before_create :generate_token, unless: :validation_token?
  belongs_to :exercise
  belongs_to :user, class_name: 'ExternalUser'

  def generate_token
    self.validation_token = SecureRandom.urlsafe_base64
  end
end
{'fraction_non_alphanumeric': 0.06069364161849711, 'fraction_numerical': 0.005780346820809248, 'mean_word_length': 6.7, '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': '6525996', 'n_tokens_mistral': 208, 'n_tokens_neox': 202, 'n_words': 52}