<commit_before>class Format < BaseModel

  FORMAT_NAMES = ['Actuality','Aircheck','Archival','Commentary',
                  'Daily Segment','Diary','Documentary',
                  'Enterprise/Investigative','Essay','Debut',
                  'Fiction','First-Person Essay','Fundraising',
                  'Hard Feature','Interstitial','Interview',
                  'Limited Series','News Analysis','News Reporting',
                  'Soft Feature','Special','Weekly Program','Youth-Produced']

  belongs_to :story, class_name: 'Story', foreign_key: 'piece_id'

  validates_inclusion_of :name, in: FORMAT_NAMES
  validates_uniqueness_of :name, scope: :story

  def to_tag
    if name.match(/\AFundraising/)
      'Fundraising'
    elsif name.match(/\ADebut/)
      'Debut'
    else
      name
    end
  end
end
<commit_msg>restore FORMAT_NAMES to its v3 values<commit_after>class Format < BaseModel

  FORMAT_NAMES = ['Actuality','Aircheck','Archival','Commentary','Daily Segment','Debut (not aired nationally)','Diary','Documentary','Enterprise/Investigative','Essay','Fiction','First-Person Essay','Fundraising for Air','Fundraising for Air: Music','Fundraising for Air: News','Fundraising Sample','Fundraising Sample: Music','Fundraising Sample: News','Hard Feature','Interstitial','Interview','Limited Series','News Analysis','News Reporting','Soft Feature','Special','Weekly Program','Youth-Produced']

  belongs_to :story, class_name: 'Story', foreign_key: 'piece_id'

  validates_inclusion_of :name, in: FORMAT_NAMES
  validates_uniqueness_of :name, scope: :story

  def to_tag
    if name.match(/\AFundraising/)
      'Fundraising'
    elsif name.match(/\ADebut/)
      'Debut'
    else
      name
    end
  end
end

{'fraction_non_alphanumeric': 0.1394675925925926, 'fraction_numerical': 0.0005787037037037037, 'mean_word_length': 4.055555555555555, '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': '3583084', 'n_tokens_mistral': 553, 'n_tokens_neox': 509, 'n_words': 107}