<commit_before>class EditablePage < ApplicationRecord
  include RequiredUniqueName
  include RequiredUniqueSlug

  NAME_LIMIT = 100
  SLUG_LIMIT = 100
  META_LIMIT = 250
  BODY_LIMIT = 65535

  mount_uploader :image, EditablePageImageUploader

  validates_length_of :name, maximum: NAME_LIMIT
  validates_length_of :slug, maximum: SLUG_LIMIT
  validates_length_of :title, maximum: META_LIMIT
  validates_length_of :keywords, maximum: META_LIMIT
  validates_length_of :description, maximum: META_LIMIT
  validates_length_of :body, maximum: BODY_LIMIT

  def self.page_for_administration
    ordered_by_name
  end

  def self.entity_parameters
    %i(image name title keywords description body)
  end

  def self.creation_parameters
    entity_parameters + %i(slug)
  end
end<commit_msg>Removed body size limit from editable page<commit_after>class EditablePage < ApplicationRecord
  include RequiredUniqueName
  include RequiredUniqueSlug

  NAME_LIMIT = 100
  SLUG_LIMIT = 100
  META_LIMIT = 250
  BODY_LIMIT = 65535

  mount_uploader :image, EditablePageImageUploader

  validates_length_of :name, maximum: NAME_LIMIT
  validates_length_of :slug, maximum: SLUG_LIMIT
  validates_length_of :title, maximum: META_LIMIT
  validates_length_of :keywords, maximum: META_LIMIT
  validates_length_of :description, maximum: META_LIMIT
  # validates_length_of :body, maximum: BODY_LIMIT

  def self.page_for_administration
    ordered_by_name
  end

  def self.entity_parameters
    %i(image name title keywords description body)
  end

  def self.creation_parameters
    entity_parameters + %i(slug)
  end
end
{'fraction_non_alphanumeric': 0.048094940662086194, 'fraction_numerical': 0.017489069331667707, 'mean_word_length': 5.209302325581396, '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': '2331344', 'n_tokens_mistral': 556, 'n_tokens_neox': 519, 'n_words': 127}