<commit_before>ENV["RACK_ENV"] ||= 'test'

require 'rack/test'
require 'logger'
require 'webmock/rspec'

require 'travis/listener'
require 'support/webmock'
require 'payloads'

Travis.logger = ::Logger.new(StringIO.new)

Travis::Listener.setup

Support::Webmock.urls = %w(
  https://api.github.com/users/svenfuchs
)

RSpec.configure do |c|
  c.include Rack::Test::Methods

  c.alias_example_to :fit, :focused => true
  c.filter_run :focus => true
  c.run_all_when_everything_filtered = true

  c.before :all do
    Support::Webmock.mock!
  end
end
<commit_msg>require sidekiq testing<commit_after>ENV["RACK_ENV"] ||= 'test'

require 'rack/test'
require 'logger'
require 'webmock/rspec'

require 'travis/listener'
require 'support/webmock'
require 'payloads'

require 'sidekiq/testing'

Travis.logger = ::Logger.new(StringIO.new)

Travis::Listener.setup

Support::Webmock.urls = %w(
  https://api.github.com/users/svenfuchs
)

RSpec.configure do |c|
  c.include Rack::Test::Methods

  c.alias_example_to :fit, :focused => true
  c.filter_run :focus => true
  c.run_all_when_everything_filtered = true

  c.before :all do
    Support::Webmock.mock!
  end
end

{'fraction_non_alphanumeric': 0.13915298184961106, 'fraction_numerical': 0.0, 'mean_word_length': 4.878172588832487, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '4469838', 'n_tokens_mistral': 441, 'n_tokens_neox': 442, 'n_words': 84}