<commit_before>module Flowaker
  module RSpec
    def self.included(base)
      base.instance_eval do
        alias :flow :it
      end
    end

    def step(description, &block)
      yield
      reporter.example_passed StepExample.new(description, example.execution_result)
    end

    def reporter
      ::RSpec.configuration.reporter
    end

    class StepExample < Struct.new(:description, :execution_result); end
  end
end

::RSpec.configuration.include Flowaker::RSpec<commit_msg>More robust stand-in for Rspec example<commit_after>require 'delegate'

module Flowaker
  module RSpec
    def self.included(base)
      base.instance_eval do
        alias :flow :it
      end
    end

    def step(description, &block)
      yield
      reporter.example_passed ::Flowaker::Example.new(description, example)
    end

    def reporter
      ::RSpec.configuration.reporter
    end
  end

  class Example < SimpleDelegator
    def initialize(description, example)
      @description = description
      super(example)
    end

    attr_reader :description
  end
end

::RSpec.configuration.include Flowaker::RSpec
{'fraction_non_alphanumeric': 0.07271095152603231, 'fraction_numerical': 0.0, 'mean_word_length': 3.0107913669064748, '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': '730520', 'n_tokens_mistral': 324, 'n_tokens_neox': 312, 'n_words': 82}