<commit_before>require_relative '../lib/judopay'

require 'factory_girl'
require 'factories'
require 'webmock/rspec'

RSpec.configure do |config|
  config.include FactoryGirl::Syntax::Methods
  config.include WebMock::API
end

# Use Judopay default configuration
Judopay.configure

def stub_get(path)
  stub_request(:get, /judopay/i)<commit_msg>Added I8n setting to spec helper to avoid deprecation warning<commit_after>require_relative '../lib/judopay'

require 'factory_girl'
require 'factories'
require 'webmock/rspec'

# Added to counter deprecation warning
I18n.enforce_available_locales = true

RSpec.configure do |config|
  config.include FactoryGirl::Syntax::Methods
  config.include WebMock::API
end

# Use Judopay default configuration
Judopay.configure

def stub_get(path)
  stub_request(:get, /judopay/i)
{'fraction_non_alphanumeric': 0.09436274509803921, 'fraction_numerical': 0.003676470588235294, 'mean_word_length': 6.230088495575221, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2315219', 'n_tokens_mistral': 268, 'n_tokens_neox': 262, 'n_words': 65}