<commit_before>ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'rubygems'
require 'capybara/rspec'
require 'capybara/webkit'
require 'capybara/email/rspec'
require 'capybara-screenshot/rspec'
require 'database_cleaner'

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

RSpec.configure do |config|
  # webkit always has js enabled, so always use this:
  Capybara.javascript_driver = :webkit
  Capybara.default_driver = :webkit
  Capybara.default_wait_time = 5
  Capybara.automatic_reload = false

  config.pattern = "**/*_spec.rb"
  config.mock_with :rspec

  config.include Acceptance<commit_msg>trying to fix crazy errors on the ci<commit_after>ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'rubygems'
require 'capybara/rspec'
require 'capybara-webkit'
require 'capybara/email/rspec'
require 'capybara-screenshot/rspec'
require 'database_cleaner'

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

RSpec.configure do |config|
  # webkit always has js enabled, so always use this:
  Capybara.javascript_driver = :webkit
  Capybara.default_driver = :webkit
  Capybara.default_wait_time = 5
  Capybara.automatic_reload = false

  config.pattern = "**/*_spec.rb"
  config.mock_with :rspec

  config.include Acceptance
{'fraction_non_alphanumeric': 0.12430769230769231, 'fraction_numerical': 0.0012307692307692308, 'mean_word_length': 5.206106870229007, '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': '1661861', 'n_tokens_mistral': 561, 'n_tokens_neox': 540, 'n_words': 134}