<commit_before>require 'zoanthid'
require 'rspec/core'

RSpec.configure do |config|
  config.include(
    Zoanthid::ExampleGroup,
    type: :api,
    example_group: ->(example_group, metadata) do
      metadata[:type].nil? && config.escaped_path(%w[spec api]) =~ example_group[:file_path]
    end
  )

  config.include Zoanthid::DSL, type: :api

  config.after do
    if self.class.include?(Zoanthid::DSL)
      clear_history!
    end
  end
end
<commit_msg>Over-write request type if path matches api.<commit_after>require 'zoanthid'
require 'rspec/core'

RSpec.configure do |config|
  config.include(
    Zoanthid::ExampleGroup,
    type: :api,
    example_group: ->(example_group, metadata) do
      (metadata[:type].nil? || metadata[:type] == :request) && config.escaped_path(%w[spec api]) =~ example_group[:file_path]
    end
  )

  config.include Zoanthid::DSL, type: :api

  config.after do
    if self.class.include?(Zoanthid::DSL)
      clear_history!
    end
  end
end

{'fraction_non_alphanumeric': 0.1329243353783231, 'fraction_numerical': 0.0, 'mean_word_length': 3.870646766169154, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5356720', 'n_tokens_mistral': 349, 'n_tokens_neox': 342, 'n_words': 72}