<commit_before>class Species::CitesListingChangeSerializer < ActiveModel::Serializer
  attributes :is_current, :species_listing_name, :party_full_name,
   :effective_at_formatted, :short_note_en, :full_note_en, :auto_note,
   :change_type, :is_addition, :hash_full_note_en, :hash_display,
   :subspecies_info

  def change_type
    if object.change_type_name == ChangeType::RESERVATION_WITHDRAWAL
      "w"
    else
      object.change_type_name.downcase[0]<commit_msg>fixed change type abbreviation for deletion<commit_after>class Species::CitesListingChangeSerializer < ActiveModel::Serializer
  attributes :is_current, :species_listing_name, :party_full_name,
   :effective_at_formatted, :short_note_en, :full_note_en, :auto_note,
   :change_type, :is_addition, :hash_full_note_en, :hash_display,
   :subspecies_info

  def change_type
    if object.change_type_name == ChangeType::RESERVATION_WITHDRAWAL
      "w"
    elsif object.change_type_name == ChangeType::DELETION
      "x"
    else
      object.change_type_name.downcase[0]
{'fraction_non_alphanumeric': 0.08783783783783784, 'fraction_numerical': 0.0019305019305019305, 'mean_word_length': 6.102739726027397, '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': '371149', 'n_tokens_mistral': 360, 'n_tokens_neox': 342, 'n_words': 56}