<commit_before>RSpec.configure do |config|
  config.after(:type => :request) do
    if Capybara::Screenshot.autosave_on_failure && example.exception
      filename_prefix = Capybara::Screenshot.filename_prefix_for(:rspec, example)

      saver = Capybara::Screenshot::Saver.new(Capybara, Capybara.page, true, filename_prefix)
      saver.save

      example.metadata[:full_description] += "\n     Screenshot: #{saver.screenshot_path}"
    end
  end
end<commit_msg>make capy-screenshot work w/ steak, which uses type :acceptance<commit_after>RSpec.configure do |config|
  config.after(:each) do
    if [:request, :acceptance].include?(example.metadata[:type])
      if Capybara::Screenshot.autosave_on_failure && example.exception
        filename_prefix = Capybara::Screenshot.filename_prefix_for(:rspec, example)

        saver = Capybara::Screenshot::Saver.new(Capybara, Capybara.page, true, filename_prefix)
        saver.save

        example.metadata[:full_description] += "\n     Screenshot: #{saver.screenshot_path}"
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.11607992388201713, 'fraction_numerical': 0.0, 'mean_word_length': 4.28643216080402, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '4894546', 'n_tokens_mistral': 350, 'n_tokens_neox': 339, 'n_words': 60}