<commit_before># Configure Rails Environment
ENV['RAILS_ENV'] = 'test'

require File.expand_path('../dummy/config/environment.rb',  __FILE__)

require 'rspec/rails'
require 'rspec/rails/example/widget_example_group'

require 'database_cleaner'
require 'ffaker'

require 'capybara/poltergeist'
Capybara.javascript_driver = :poltergeist

require 'dotenv'
Dotenv.load

require 'factory_girl'
FactoryGirl.find_definitions

require 'vcr'
VCR.configure do |vcr|
  vcr.allow_http_connections_when_no_cassette = true
  vcr.cassette_library_dir = 'spec/support/cassettes'
  vcr.hook_into :webmock
end

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }

# Requires factories defined in spree_core
require 'spree/core/testing_support/factories'
require 'spree/core/testing_support/controller_requests'
require 'spree/core/testing_support/authorization_helpers'
require 'spree/core/url_helpers'<commit_msg>Prefer ignore_localhost over allowing all http connections in VCR config<commit_after># Configure Rails Environment
ENV['RAILS_ENV'] = 'test'

require File.expand_path('../dummy/config/environment.rb',  __FILE__)

require 'rspec/rails'
require 'rspec/rails/example/widget_example_group'

require 'database_cleaner'
require 'ffaker'

require 'capybara/poltergeist'
Capybara.javascript_driver = :poltergeist

require 'dotenv'
Dotenv.load

require 'factory_girl'
FactoryGirl.find_definitions

require 'vcr'
VCR.configure do |vcr|
  vcr.ignore_localhost = true
  vcr.cassette_library_dir = 'spec/support/cassettes'
  vcr.hook_into :webmock
end

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }

# Requires factories defined in spree_core
require 'spree/core/testing_support/factories'
require 'spree/core/testing_support/controller_requests'
require 'spree/core/testing_support/authorization_helpers'
require 'spree/core/url_helpers'
{'fraction_non_alphanumeric': 0.10501419110690634, 'fraction_numerical': 0.0, 'mean_word_length': 6.447183098591549, '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': '6231816', 'n_tokens_mistral': 713, 'n_tokens_neox': 703, 'n_words': 152}