<commit_before>module Ontology::Import
  extend ActiveSupport::Concern

  def import_latest_version(user)
    import_version(versions.last, user)
  end

  def import_version(version, user, io)
    return if version.nil?
    evaluator = Hets::DG::Evaluator.new(user, version.ontology,
                                    version: version, io: io)
    evaluator.import
  end

  def import_proof(version, user, io)
    raise NotImplementedError<commit_msg>Actually import proofs.<commit_after>module Ontology::Import
  extend ActiveSupport::Concern

  def import_latest_version(user)
    import_version(versions.last, user)
  end

  def import_version(version, user, io)
    return if version.nil?
    evaluator = Hets::DG::Evaluator.new(user, version.ontology,
                                    version: version, io: io)
    evaluator.import
  end

  def import_proof(version, user, io)
    evaluator = Hets::Prove::Evaluator.new(user, version.ontology,
                                           version: version, io: io)
    evaluator.import
{'fraction_non_alphanumeric': 0.08820709491850431, 'fraction_numerical': 0.0, 'mean_word_length': 2.7963636363636364, 'pattern_counts': {'":': 0, '<': 3, '<?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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1756339', 'n_tokens_mistral': 311, 'n_tokens_neox': 302, 'n_words': 69}