<commit_before>require 'pry'
require 'Qwil'


RSpec.configure do |config|
  config.mock_with :mocha<commit_msg>setup webmock<commit_after>require 'pry'
require 'Qwil'
require 'webmock/rspec'

WebMock.disable_net_connect!(allow_localhost: true)

RSpec.configure do |config|
  config.mock_with :mocha

  config.before(:each) do
    stub_request(:get, /staging.qwil.co/).
      with(headers: {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/json', 'User-Agent'=>'Faraday v0.10.0'}).
      to_return(status: 200, body: "stubbed response", headers: {})
  end
  config.before(:each) do
    stub_request(:post, /staging.qwil.co/).
      with(headers: {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/json', 'User-Agent'=>'Faraday v0.10.0'}).
      to_return(status: 201, body: "stubbed response", headers: {})
  end
{'fraction_non_alphanumeric': 0.20043103448275862, 'fraction_numerical': 0.028017241379310345, 'mean_word_length': 5.319727891156463, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '1833163', 'n_tokens_mistral': 363, 'n_tokens_neox': 355, 'n_words': 56}