<commit_before># require "codeclimate-test-reporter"
# CodeClimate::TestReporter.start

# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV['RAILS_ENV'] ||= 'test'
require 'spec_helper'
require File.expand_path('../../config/environment', __FILE__)
require 'rspec/rails'
require 'pry-byebug'
require 'timecop'
require 'paper_trail/frameworks/rspec'
require 'shoulda-matchers'
require 'capybara/rspec'
require 'site_prism'
require 'awesome_print'
require 'webdrivers'

unless ENV['SKIP_SIMPLECOV']
  require 'simplecov'
  require 'simplecov-rcov'
  SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
  SimpleCov.start 'rails' do
    add_filter '/gem/'
    add_filter '.bundle'
  end
  SimpleCov.minimum_coverage 95
end



Capybara.register_driver :chrome do |app|
  Capybara::Selenium::Driver.new(app, browser: :chrome)
end

Capybara.register_driver :headless_chrome do |app|
  options = Selenium::WebDriver::Chrome::Options.new

  unless ENV["CHROME_DEBUG"]
    options.add_argument('--headless')
    options.add_argument('--disable-gpu')
    options.add_argument('--no-sandbox')
    options.add_argument('--start-maximized')
    options.add_argument('--window-size=1980,2080')
    options.add_argument('--enable-features=NetworkService,NetworkServiceInProcess')
  end

  Capybara::Selenium::Driver.new(app, browser: :chrome, options: options)
end
<commit_msg>Fixed the issue of not loading simplecov<commit_after># This file is copied to spec/ when you run 'rails generate rspec:install'
ENV['RAILS_ENV'] ||= 'test'
require 'spec_helper'
require File.expand_path('../../config/environment', __FILE__)
require 'rspec/rails'
require 'pry-byebug'
require 'timecop'
require 'paper_trail/frameworks/rspec'
require 'shoulda-matchers'
require 'capybara/rspec'
require 'site_prism'
require 'awesome_print'
require 'webdrivers'

if ENV['SKIP_SIMPLECOV'].to_s.downcase == "false"
  require 'simplecov'
  require 'simplecov-rcov'
  SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
  SimpleCov.start 'rails' do
    add_filter '/gem/'
    add_filter '.bundle'
  end
  SimpleCov.minimum_coverage 95
end

Capybara.register_driver :chrome do |app|
  Capybara::Selenium::Driver.new(app, browser: :chrome)
end

Capybara.register_driver :headless_chrome do |app|
  options = Selenium::WebDriver::Chrome::Options.new

  unless ENV["CHROME_DEBUG"]
    options.add_argument('--headless')
    options.add_argument('--disable-gpu')
    options.add_argument('--no-sandbox')
    options.add_argument('--start-maximized')
    options.add_argument('--window-size=1980,2080')
    options.add_argument('--enable-features=NetworkService,NetworkServiceInProcess')
  end

  Capybara::Selenium::Driver.new(app, browser: :chrome, options: options)
end

{'fraction_non_alphanumeric': 0.13219847881202462, 'fraction_numerical': 0.007243752263672582, 'mean_word_length': 5.607655502392345, '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': '4366863', 'n_tokens_mistral': 966, 'n_tokens_neox': 928, 'n_words': 182}