<commit_before>require 'cucumber/core/ast/location'
require 'cucumber/core/ast/describes_itself'
require 'cucumber/core/ast/step'

module Cucumber
  module Core
    module Ast

      class OutlineStep
        include HasLocation
        include DescribesItself

        attr_reader :language, :location, :keyword, :name, :multiline_arg

        def initialize(language, location, keyword, name, multiline_arg)
          @language, @location, @keyword, @name, @multiline_arg = language, location, keyword, name, multiline_arg
          @language || raise("Language is required!")
        end

        def gherkin_statement(node = nil)
          @gherkin_statement ||= node
        end

        def to_step(row)
          step = Ast::Step.new(language, location, keyword, row.expand(name), replace_multiline_arg(row))
          step.gherkin_statement(@gherkin_statement)
          step
        end

        private

        def description_for_visitors
          :outline_step
        end

        def children
          # TODO remove duplication with Step
          # TODO spec
          [@multiline_arg]
        end

        def replace_multiline_arg(example_row)
          return unless multiline_arg
          multiline_arg.map { |cell| example_row.expand(cell) }
        end
      end

    end
  end
end

<commit_msg>Fix warning<commit_after>require 'cucumber/core/ast/location'
require 'cucumber/core/ast/describes_itself'
require 'cucumber/core/ast/step'

module Cucumber
  module Core
    module Ast

      class OutlineStep
        include HasLocation
        include DescribesItself

        attr_reader :language, :location, :keyword, :name, :multiline_arg

        def initialize(language, location, keyword, name, multiline_arg)
          @language, @location, @keyword, @name, @multiline_arg = language, location, keyword, name, multiline_arg
          @language || raise("Language is required!")
          @gherkin_statement = nil
        end

        def gherkin_statement(node = nil)
          @gherkin_statement ||= node
        end

        def to_step(row)
          step = Ast::Step.new(language, location, keyword, row.expand(name), replace_multiline_arg(row))
          step.gherkin_statement(@gherkin_statement)
          step
        end

        private

        def description_for_visitors
          :outline_step
        end

        def children
          # TODO remove duplication with Step
          # TODO spec
          [@multiline_arg]
        end

        def replace_multiline_arg(example_row)
          return unless multiline_arg
          multiline_arg.map { |cell| example_row.expand(cell) }
        end
      end

    end
  end
end


{'fraction_non_alphanumeric': 0.07482229704451927, 'fraction_numerical': 0.0, 'mean_word_length': 2.2971639950678173, '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': '5308929', 'n_tokens_mistral': 792, 'n_tokens_neox': 748, 'n_words': 185}