<commit_before># frozen_string_literal: true

# Gems from the gemspec.
require 'webmock'
require 'webmock/rspec'
require 'rspec/wait'
require 'rack'
require 'rack/test'
require 'rake'
require 'pry'

require 'airbrake'
require 'airbrake/rake/tasks'

Dir[
  File.expand_path(File.join(File.dirname(__FILE__), 'support', '**', '*.rb'))
].each do |file|
  require file
end

Airbrake.configure do |c|
  c.project_id = 113743
  c.project_key = 'fd04e13d806a90f96614ad8e529b2822'
  c.app_version = '1.2.3'
  c.workers = 5
  c.performance_stats = true
  c.performance_stats_flush_period = 1
  c.query_stats = true
end

RSpec.configure do |c|
  c.order = 'random'
  c.color = true
  c.disable_monkey_patching!
  c.wait_timeout = 3

  c.include Rack::Test::Methods
end

# Load integration tests only when they're run through appraisals.
if ENV['APPRAISAL_INITIALIZED']
  # Gems from appraisals that every application uses.
  require 'warden'

  # Load a Rails app or skip.<commit_msg>spec_helper: set remote_config_host to nil<commit_after># frozen_string_literal: true

# Gems from the gemspec.
require 'webmock'
require 'webmock/rspec'
require 'rspec/wait'
require 'rack'
require 'rack/test'
require 'rake'
require 'pry'

require 'airbrake'
require 'airbrake/rake/tasks'

Dir[
  File.expand_path(File.join(File.dirname(__FILE__), 'support', '**', '*.rb'))
].each do |file|
  require file
end

Airbrake.configure do |c|
  c.project_id = 113743
  c.project_key = 'fd04e13d806a90f96614ad8e529b2822'
  c.app_version = '1.2.3'
  c.workers = 5
  c.performance_stats = true
  c.performance_stats_flush_period = 1
  c.query_stats = true
  c.remote_config_host = nil
end

RSpec.configure do |c|
  c.order = 'random'
  c.color = true
  c.disable_monkey_patching!
  c.wait_timeout = 3

  c.include Rack::Test::Methods
end

# Load integration tests only when they're run through appraisals.
if ENV['APPRAISAL_INITIALIZED']
  # Gems from appraisals that every application uses.
  require 'warden'

  # Load a Rails app or skip.
{'fraction_non_alphanumeric': 0.11216350947158524, 'fraction_numerical': 0.03389830508474576, 'mean_word_length': 4.46866485013624, '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': '7617321', 'n_tokens_mistral': 806, 'n_tokens_neox': 757, 'n_words': 189}