<commit_before>
class Entry
  include Mongoid::Document
  include PosLike
  include SoftRemove

  has_many :meanings,
            autosave: true,
            dependent: :destroy
  belongs_to :wordset

  validates :wordset,
            :presence => true

  validates :meanings,
            :associated => true,
            :length => { :minimum => 1 },
            :on => :create

  index({wordset_id: 1})
  index({pos: 1})

  set_callback :remove, :after do |entry|
    if entry.wordset.entries.count == 0
      entry.wordset.remove!
    end
  end

  def self.pos
    %w(adv adj verb noun prep pronoun conj intj)
  end
end<commit_msg>Oh...this is really the entry model being commented out<commit_after># 
# class Entry
#   include Mongoid::Document
#   include PosLike
#   include SoftRemove
#
#   has_many :meanings,
#             autosave: true,
#             dependent: :destroy
#   belongs_to :wordset
#
#   validates :wordset,
#             :presence => true
#
#   validates :meanings,
#             :associated => true,
#             :length => { :minimum => 1 },
#             :on => :create
#
#   index({wordset_id: 1})
#   index({pos: 1})
#
#   set_callback :remove, :after do |entry|
#     if entry.wordset.entries.count == 0
#       entry.wordset.remove!
#     end
#   end
#
#   def self.pos
#     %w(adv adj verb noun prep pronoun conj intj)
#   end
# end
{'fraction_non_alphanumeric': 0.11769005847953216, 'fraction_numerical': 0.005847953216374269, 'mean_word_length': 2.244075829383886, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6394311', 'n_tokens_mistral': 460, 'n_tokens_neox': 439, 'n_words': 121}