<commit_before>module ROM
  module Commands
    class Composite
      include Equalizer.new(:left, :right)

      attr_reader :left, :right

      def initialize(left, right)
        @left, @right = left, right
      end

      def call(*args)
        right.call(left.call(*args))
      end

      def >>(other)
        self.class.new(self, other)
      end
    end
  end
end<commit_msg>Add yard docs for Commands::Composite<commit_after>module ROM
  module Commands
    # Composite command that consists of left and right commands
    #
    # @public
    class Composite
      include Equalizer.new(:left, :right)

      # @return [Proc,Command] left command
      #
      # @api private
      attr_reader :left

      # @return [Proc,Command] right command
      #
      # @api private
      attr_reader :right

      # @api private
      def initialize(left, right)
        @left, @right = left, right
      end

      # Calls the composite command
      #
      # Right command is called with a result from the left one
      #
      # @return [Object]
      #
      # @api public
      def call(*args)
        right.call(left.call(*args))
      end

      # Compose another composite command from self and other
      #
      # @param [Proc, Command] other command
      #
      # @return [Composite]
      #
      # @api public
      def >>(other)
        self.class.new(self, other)
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08962597035991532, 'fraction_numerical': 0.0, 'mean_word_length': 1.9237113402061856, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4772258', 'n_tokens_mistral': 425, 'n_tokens_neox': 410, 'n_words': 128}