<commit_before># frozen_string_literal: true

class Folio::Atom::Text < Folio::Atom::Base
  STRUCTURE = {
    content: :redactor,
  }

  validates :content,
            presence: true

  def self.cell_name
    'folio/atom/text'
  end
end

# == Schema Information
#
# Table name: folio_atoms
#
#  id             :bigint(8)        not null, primary key
#  type           :string
#  content        :text
#  position       :integer
#  created_at     :datetime         not null
#  updated_at     :datetime         not null
#  placement_type :string<commit_msg>dont validate text atom content at all<commit_after># frozen_string_literal: true

class Folio::Atom::Text < Folio::Atom::Base
  STRUCTURE = {
    content: :redactor,
  }

  def self.cell_name
    'folio/atom/text'
  end
end

# == Schema Information
#
# Table name: folio_atoms
#
#  id             :bigint(8)        not null, primary key
#  type           :string
#  content        :text
#  position       :integer
#  created_at     :datetime         not null
#  updated_at     :datetime         not null
#  placement_type :string
{'fraction_non_alphanumeric': 0.09308755760368663, 'fraction_numerical': 0.0018433179723502304, 'mean_word_length': 2.3109756097560976, 'pattern_counts': {'":': 0, '<': 5, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3370097', 'n_tokens_mistral': 353, 'n_tokens_neox': 348, 'n_words': 91}