<commit_before>require 'set'
require_relative 'test_case'

class MockLinkedDataClass
  include RI::Class
  attr_accessor :id, :submission
  def initialize(id, submission)
    @id = id; @submission = submission
  end
end

class MockLinkedDataSubmission
  attr_accessor :ontology
  def initialize(ontology)
    @ontology = ontology
  end
end

class MockLinkedDataOntology
  attr_accessor :acronym
  def initialize(acronym)
    @acronym = acronym
  end
end

CLASSES = {
  4259096489 => ["ACGT-MO", "http://www.ifomis.org/acgt/1.0#Normal"],
  2974317510 => ["RadLex_OWL", "http://bioontology.org/projects/ontologies/radlex/radlexOwl#RID1543"],
  3116223171 => ["SEP", "http://purl.obolibrary.org/obo/sep_00060"],
  30093454   => ["I2B2-LOINC", "http://www.regenstrief.org/loinc#LP28442-9"],
  2631822857 => ["SNOMEDCT", "http://purl.bioontology.org/ontology/SNOMEDCT/17223004"],
  1256174170 => ["EHDA", "http://purl.obolibrary.org/obo/EHDA_3667"],
  3152067627 => ["NCIT", "http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#C15227"],
  2588657372 => ["PEDTERM", "http://www.owl-ontologies.com/Ontology1358660052.owl#Fetus"],
  2466199616 => ["NCIT", "http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#C28152"],
  516089123  => ["FMA-SUBSET", "http://purl.obolibrary.org/obo/FMA_74540"],
  1514996459 => ["SNMI", "http://purl.bioontology.org/ontology/SNMI/F-60320"],
  2936938335 => ["NDDF", "http://purl.bioontology.org/ontology/NDDF/010069"],
}

class RI::TestClass < RI::TestCase
  def test_class_xxhash
    hashes = CLASS_XXHASH.dup<commit_msg>Remove unused test data<commit_after>require 'set'
require_relative 'test_case'

class MockLinkedDataClass
  include RI::Class
  attr_accessor :id, :submission
  def initialize(id, submission)
    @id = id; @submission = submission
  end
end

class MockLinkedDataSubmission
  attr_accessor :ontology
  def initialize(ontology)
    @ontology = ontology
  end
end

class MockLinkedDataOntology
  attr_accessor :acronym
  def initialize(acronym)
    @acronym = acronym
  end
end

class RI::TestClass < RI::TestCase
  def test_class_xxhash
    hashes = CLASS_XXHASH.dup
{'fraction_non_alphanumeric': 0.14448128848886785, 'fraction_numerical': 0.08716248223590715, 'mean_word_length': 4.802197802197802, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, 'xml': 2}, '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': '2804095', 'n_tokens_mistral': 945, 'n_tokens_neox': 814, 'n_words': 133}