<commit_before>class NomenclatureChange::StatusChangeProcessor

  def initialize(input_or_output, linked_inputs_or_outputs = [])
    @input_or_output = input_or_output
    @linked_inputs_or_outputs = linked_inputs_or_outputs
    @old_status = if @input_or_output.kind_of? NomenclatureChange::Output
      @input_or_output.name_status.dup
    else
      @input_or_output.taxon_concept.name_status.dup
    end
  end

  def summary
    unless @linked_inputs_or_outputs.empty?
      [
        summary_line_long,
        @linked_inputs_or_outputs.map do |l|
          if l.taxon_concept
            l.taxon_concept.full_name
          elsif l.new_taxon_concept
            l.new_taxon_concept.full_name
          else
            l.new_full_name
          end
        end.compact
      ]
    else
      [summary_line]
    end
  end

  private
  def create_relationships(taxon_concept, rel_type)<commit_msg>fixed display of new accepted names in status change summaries<commit_after>class NomenclatureChange::StatusChangeProcessor

  def initialize(input_or_output, linked_inputs_or_outputs = [])
    @input_or_output = input_or_output
    @linked_inputs_or_outputs = linked_inputs_or_outputs
    @old_status = if @input_or_output.kind_of? NomenclatureChange::Output
      @input_or_output.name_status.dup
    else
      @input_or_output.taxon_concept.name_status.dup
    end
  end

  def summary
    unless @linked_inputs_or_outputs.empty?
      [
        summary_line_long,
        @linked_inputs_or_outputs.map do |l|
          if l.kind_of?(NomenclatureChange::Output)
            l.display_full_name
          elsif l.taxon_concept
            l.taxon_concept.full_name
          else
            l.new_full_name
          end
        end.compact
      ]
    else
      [summary_line]
    end
  end

  private
  def create_relationships(taxon_concept, rel_type)
{'fraction_non_alphanumeric': 0.05806451612903226, 'fraction_numerical': 0.0, 'mean_word_length': 2.7595959595959596, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3432446', 'n_tokens_mistral': 612, 'n_tokens_neox': 581, 'n_words': 96}