<commit_before># 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"
# Add additional requires below this line. Rails is not loaded until this point!
require "devise"
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }

require "vcr"
require "webmock/rspec"
WebMock.disable_net_connect!(allow_localhost: true)

VCR.config do |config|
  config.cassette_library_dir = "spec/fixtures/vcr_cassettes"
  config.hook_into :webmock
  config.filter_sensitive_data("<TWITTER_CONSUMER_KEY>") { ENV["TWITTER_CONSUMER_KEY"] }
  config.filter_sensitive_data("<TWITTER_CONSUMER_SECRET>") { ENV["TWITTER_CONSUMER_SECRET"] }
  config.filter_sensitive_data("<TWITTER_ACCESS_TOKEN>") { ENV["TWITTER_ACCESS_TOKEN"] }
  config.filter_sensitive_data("<TWITTER_ACCESS_SECRET>") { ENV["TWITTER_ACCESS_SECRET"] }
end

# Requires supporting ruby files with custom matchers and macros, etc, in
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
# run as spec files by default. This means that files in spec/support that end
# in _spec.rb will both be required and run as specs, causing the specs to be
# run twice. It is recommended that you do not name files matching this glob to
# end with _spec.rb. You can configure this pattern with the --pattern<commit_msg>fix deprecation warning<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"
# Add additional requires below this line. Rails is not loaded until this point!
require "devise"
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }

require "vcr"
require "webmock/rspec"
WebMock.disable_net_connect!(allow_localhost: true)

VCR.configure do |config|
  config.cassette_library_dir = "spec/fixtures/vcr_cassettes"
  config.hook_into :webmock
  config.filter_sensitive_data("<TWITTER_CONSUMER_KEY>")    { ENV["TWITTER_CONSUMER_KEY"]    }
  config.filter_sensitive_data("<TWITTER_CONSUMER_SECRET>") { ENV["TWITTER_CONSUMER_SECRET"] }
  config.filter_sensitive_data("<TWITTER_ACCESS_TOKEN>")    { ENV["TWITTER_ACCESS_TOKEN"]    }
  config.filter_sensitive_data("<TWITTER_ACCESS_SECRET>")   { ENV["TWITTER_ACCESS_SECRET"]   }
end

# Requires supporting ruby files with custom matchers and macros, etc, in
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
# run as spec files by default. This means that files in spec/support that end
# in _spec.rb will both be required and run as specs, causing the specs to be
# run twice. It is recommended that you do not name files matching this glob to
# end with _spec.rb. You can configure this pattern with the --pattern
{'fraction_non_alphanumeric': 0.11091973820186014, 'fraction_numerical': 0.0, 'mean_word_length': 5.525842696629214, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '6471003', 'n_tokens_mistral': 975, 'n_tokens_neox': 943, 'n_words': 275}