<commit_before>ENV['MOCK_ZENDESK'] ||= 'true'

Bundler.require(:test)

require File.expand_path("../../lib/zendesk2", __FILE__)

Dir[File.expand_path("../{support,shared}/**/*.rb", __FILE__)].each {|f| require f}

if ENV["MOCK_ZENDESK"] == 'true'
  Zendesk2::Client.mock!
end

Cistern.formatter = Cistern::Formatter::AwesomePrint

RSpec.configure do |config|
  if Zendesk2::Client.mocking?
    config.before(:each) { Zendesk2::Client.reset! }
  else
    config.filter_run_excluding(mock_only: true)
  end
  config.filter_run(:focus => true)
  config.run_all_when_everything_filtered = true

  config.order = "random"
end<commit_msg>flag for Cistern deprecation warnings<commit_after>ENV['MOCK_ZENDESK'] ||= 'true'

Bundler.require(:test)

require File.expand_path("../../lib/zendesk2", __FILE__)

Dir[File.expand_path("../{support,shared}/**/*.rb", __FILE__)].each {|f| require f}

if ENV["MOCK_ZENDESK"] == 'true'
  Zendesk2::Client.mock!
end

Cistern.formatter = Cistern::Formatter::AwesomePrint
Cistern.deprecation_warnings = !!ENV['DEBUG']

RSpec.configure do |config|
  if Zendesk2::Client.mocking?
    config.before(:each) { Zendesk2::Client.reset! }
  else
    config.filter_run_excluding(mock_only: true)
  end
  config.filter_run(:focus => true)
  config.run_all_when_everything_filtered = true

  config.order = "random"
end
{'fraction_non_alphanumeric': 0.1634182908545727, 'fraction_numerical': 0.005997001499250375, 'mean_word_length': 5.449275362318841, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4469858', 'n_tokens_mistral': 512, 'n_tokens_neox': 494, 'n_words': 77}