<commit_before>class Newsesque < Announcement
  include Edition::FactCheckable
  include Edition::FirstImagePulledOut

  def apply_any_extra_validations_when_converting_from_imported_to_draft
    class << self
      validates :first_published_at, presence: true
    end
  end
end

require_relative 'news_article'
require_relative 'world_location_news_article'<commit_msg>Make sure Newsesque can be STI'd<commit_after>class Newsesque < Announcement
  include Edition::FactCheckable
  include Edition::FirstImagePulledOut

  def self.sti_names
    ([self] + descendants).map { |model| model.sti_name }
  end

  def apply_any_extra_validations_when_converting_from_imported_to_draft
    class << self
      validates :first_published_at, presence: true
    end
  end
end

require_relative 'news_article'
require_relative 'world_location_news_article'
{'fraction_non_alphanumeric': 0.05548996458087367, 'fraction_numerical': 0.0, 'mean_word_length': 5.950819672131147, 'pattern_counts': {'":': 0, '<': 9, '<?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': '5359508', 'n_tokens_mistral': 270, 'n_tokens_neox': 254, 'n_words': 55}