<commit_before>module Mutant
  class Mutator
    class Node

      # Mutator for while expressions
      class While < self

        handle(:while)

      private

        # Emit mutations
        #
        # @return [undefined]
        #
        # @api private
        #
        def dispatch
          emit_attribute_mutations(:condition)
          emit_attribute_mutations(:body)
        end

      end # While
    end # Node
  end # Mutator
end # Mutant<commit_msg>Port while mutator to parser<commit_after>module Mutant
  class Mutator
    class Node

      # Mutator for while expressions
      class While < self

        handle(:while)

        CONDITION_INDEX, BODY_INDEX = 0, 1

      private

        # Emit mutations
        #
        # @return [undefined]
        #
        # @api private
        #
        def dispatch
          mutate_child(CONDITION_INDEX)
          mutate_child(BODY_INDEX)
        end

      end # While
    end # Node
  end # Mutator
end # Mutant
{'fraction_non_alphanumeric': 0.0581039755351682, 'fraction_numerical': 0.0020387359836901123, 'mean_word_length': 1.6186666666666667, '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': '1534507', 'n_tokens_mistral': 283, 'n_tokens_neox': 266, 'n_words': 75}