<commit_before>class Item < DulHydra::Models::Base
  
  include DulHydra::Models::HasContentdm
  include DulHydra::Models::HasMarcXML
  include DulHydra::Models::HasContentMetadata
  include DulHydra::Models::HasTripodMets

  has_many :parts, :property => :is_part_of, :inbound => true, :class_name => 'Component'
  belongs_to :collection, :property => :is_member_of, :class_name => 'Collection'
    
end<commit_msg>added #components - returns parts<commit_after>class Item < DulHydra::Models::Base
  
  include DulHydra::Models::HasContentdm
  include DulHydra::Models::HasMarcXML
  include DulHydra::Models::HasContentMetadata
  include DulHydra::Models::HasTripodMets

  has_many :parts, :property => :is_part_of, :inbound => true, :class_name => 'Component'
  belongs_to :collection, :property => :is_member_of, :class_name => 'Collection'

  def components
    parts
  end
    
end
{'fraction_non_alphanumeric': 0.11963882618510158, 'fraction_numerical': 0.0, 'mean_word_length': 6.211382113821138, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '5274302', 'n_tokens_mistral': 307, 'n_tokens_neox': 293, 'n_words': 58}