<commit_before>require 'cucumber/ast/has_steps'
require 'cucumber/ast/names'
require 'cucumber/ast/empty_background'

module Cucumber
  module Ast
    class Scenario #:nodoc:
      include HasSteps
      include Names

      attr_reader :line
      attr_accessor :feature

      def initialize(background, comment, tags, line, keyword, title, description, raw_steps)
        @background = background || EmptyBackground.new
        @comment, @tags, @line, @keyword, @title, @description, @raw_steps = comment, tags, line, keyword, title, description, raw_steps
        @exception = @executed = nil
      end

      def init
        return if @steps
        @background.feature_elements << self
        attach_steps(@raw_steps)
        steps
      end

      def steps
        step_invocations = @raw_steps.map{|step| step.step_invocation}
        @steps ||= @background.step_collection(step_invocations)
      end

      def accept(visitor)
        return if Cucumber.wants_to_quit

        visitor.visit_comment(@comment) unless @comment.empty?
        visitor.visit_tags(@tags)
        visitor.visit_scenario_name(@keyword, name, file_colon_line(@line), source_indent(first_line_length))

        skip_invoke! if @background.failed?
        with_visitor(visitor) do
          visitor.execute(self, skip_hooks?)
        end
        @executed = true<commit_msg>Remove more dead code<commit_after>require 'cucumber/ast/has_steps'
require 'cucumber/ast/names'
require 'cucumber/ast/empty_background'

module Cucumber
  module Ast
    class Scenario #:nodoc:
      include HasSteps
      include Names

      attr_reader :line
      attr_accessor :feature

      def initialize(background, comment, tags, line, keyword, title, description, raw_steps)
        @background = background || EmptyBackground.new
        @comment, @tags, @line, @keyword, @title, @description, @raw_steps = comment, tags, line, keyword, title, description, raw_steps
        @exception = @executed = nil
      end

      def init
        return if @steps
        attach_steps(@raw_steps)
        steps
      end

      def steps
        step_invocations = @raw_steps.map{|step| step.step_invocation}
        @steps ||= @background.step_collection(step_invocations)
      end

      def accept(visitor)
        return if Cucumber.wants_to_quit

        visitor.visit_comment(@comment) unless @comment.empty?
        visitor.visit_tags(@tags)
        visitor.visit_scenario_name(@keyword, name, file_colon_line(@line), source_indent(first_line_length))

        skip_invoke! if @background.failed?
        with_visitor(visitor) do
          visitor.execute(self, skip_hooks?)
        end
        @executed = true
{'fraction_non_alphanumeric': 0.0887066716362281, 'fraction_numerical': 0.0, 'mean_word_length': 2.947058823529412, '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': '215254', 'n_tokens_mistral': 790, 'n_tokens_neox': 775, 'n_words': 184}