<commit_before>class Assessment::Mission < ActiveRecord::Base
  is_a :assessment, as: 'as_assessment_assessment', class_name: 'Assessment::Assessment'

  has_many :dependent, class_name: Assessment::Mission, foreign_key: :id
  has_many :files, as: :owner, class_name: 'FileUpload', dependent: :destroy

  attr_accessible :title, :description, :exp, :open_at, :close_at, :publish, :file_submission, :dependent_id

  alias :get_all_questions :questions

  # @deprecated
  def get_final_sbm_by_std(std_course_id)
    submissions.final(std_course_id)
  end
<commit_msg>Missions required to complete the current one are dependent, missions which will be unlocked by completing the current one are required for.<commit_after>class Assessment::Mission < ActiveRecord::Base
  is_a :assessment, as: 'as_assessment_assessment', class_name: 'Assessment::Assessment'

  has_many :dependent, class_name: Assessment::Mission, foreign_key: :id
  has_many :files, as: :owner, class_name: 'FileUpload', dependent: :destroy
  has_many :required_for, class_name: 'Mission', foreign_key: :dependent_id

  attr_accessible :title, :description, :exp, :open_at, :close_at, :publish, :file_submission, :dependent_id

  alias :get_all_questions :questions

  # @deprecated
  def get_final_sbm_by_std(std_course_id)
    submissions.final(std_course_id)
  end

{'fraction_non_alphanumeric': 0.1005251312828207, 'fraction_numerical': 0.0, 'mean_word_length': 7.084848484848485, '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': '223553', 'n_tokens_mistral': 443, 'n_tokens_neox': 425, 'n_words': 107}