<commit_before>class Document < ActiveRecord::Base
  include DC::Access

  # Accessors and constants:

  attr_accessor :highlight, :annotation_count, :remote_url, :hits
  attr_writer   :organization_name, :account_name

  SEARCHABLE_ATTRIBUTES = [:title, :description, :source, :account, :notes, :group]
  SEARCHABLE_ENTITIES   = [:city, :country, :organization, :person, :place, :state, :term]

  DEFAULT_TITLE = "Untitled Document"

  DISPLAY_DATE_FORMAT = "%b %d, %Y"

  DEFAULT_CANONICAL_OPTIONS = {:sections => true, :annotations => true}

  # If the Document.pending count is greater than this number, send a warning.
  WARN_QUEUE_LENGTH = 25

  # DB Associations:

  belongs_to :account
  belongs_to :organization<commit_msg>removing 'notes' from the list of searchable attributes.<commit_after>class Document < ActiveRecord::Base
  include DC::Access

  # Accessors and constants:

  attr_accessor :highlight, :annotation_count, :remote_url, :hits
  attr_writer   :organization_name, :account_name

  SEARCHABLE_ATTRIBUTES = [:title, :description, :source, :account, :group]
  SEARCHABLE_ENTITIES   = [:city, :country, :organization, :person, :place, :state, :term]

  DEFAULT_TITLE = "Untitled Document"

  DISPLAY_DATE_FORMAT = "%b %d, %Y"

  DEFAULT_CANONICAL_OPTIONS = {:sections => true, :annotations => true}

  # If the Document.pending count is greater than this number, send a warning.
  WARN_QUEUE_LENGTH = 25

  # DB Associations:

  belongs_to :account
  belongs_to :organization
{'fraction_non_alphanumeric': 0.10607071380920614, 'fraction_numerical': 0.00266844563042028, 'mean_word_length': 5.198347107438017, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '198824', 'n_tokens_mistral': 503, 'n_tokens_neox': 470, 'n_words': 131}