<commit_before># Static Pages.
#
#   * body is in markdown (extended).
#
class Page < ActiveRecord::Base
  # friendly_id, use Page's title.
  has_friendly_id :title, :use_slug => true

  # validations
  validates_uniqueness_of :title
  validates_presence_of   :title, :body

  # return true if self has been modified, false otherwise. We allow a 1 sec
  # delta because otherwise it would always return true.
  def modified_since_created?
    self.updated_at.to_i > self.created_at.to_i<commit_msg>Add more delta to diff between created_at and updated_at for Pages.<commit_after># Static Pages.
#
#   * body is in markdown (extended).
#
class Page < ActiveRecord::Base
  # friendly_id, use Page's title.
  has_friendly_id :title, :use_slug => true

  # validations
  validates_uniqueness_of :title
  validates_presence_of   :title, :body

  # return true if self has been modified, false otherwise. We allow a 1 min
  # delta because otherwise it would often return true.
  def modified_since_created?
    self.updated_at.to_i - 1.minute > self.created_at.to_i
{'fraction_non_alphanumeric': 0.07830188679245283, 'fraction_numerical': 0.002830188679245283, 'mean_word_length': 4.100961538461538, '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': '7441969', 'n_tokens_mistral': 349, 'n_tokens_neox': 334, 'n_words': 112}