<commit_before>$:.unshift(File.expand_path('../../lib', __FILE__))

require 'pathname'
require 'rubygems'
require 'bundler'

Bundler.require :default
Dotenv.load

require 'cassanity'

root = Pathname(__FILE__).dirname.join('..').expand_path

Dir[root.join("spec/support/**/*.rb")].each { |f| require f }

RSpec.configure do |config|
  config.order = :random

  config.filter_run :focused => true
  config.alias_example_to :fit, :focused => true
  config.alias_example_to :xit, :pending => true
  config.run_all_when_everything_filtered = true
  config.fail_fast = true

  config.backtrace_clean_patterns = [
    /lib\/rspec\/(core|expectations|matchers|mocks)/,
  ]

  config.include CassanityHelpers
end

CassanityHost = Array(ENV.fetch('CASSANITY_HOST', '127.0.0.1'))
CassanityPort = ENV.fetch('CASSANITY_PORT', '9042').to_i
<commit_msg>Stop failing fast for rspec<commit_after>$:.unshift(File.expand_path('../../lib', __FILE__))

require 'pathname'
require 'rubygems'
require 'bundler'

Bundler.require :default
Dotenv.load

require 'cassanity'

root = Pathname(__FILE__).dirname.join('..').expand_path

Dir[root.join("spec/support/**/*.rb")].each { |f| require f }

RSpec.configure do |config|
  config.order = :random

  config.filter_run :focused => true
  config.alias_example_to :fit, :focused => true
  config.alias_example_to :xit, :pending => true
  config.run_all_when_everything_filtered = true

  config.backtrace_clean_patterns = [
    /lib\/rspec\/(core|expectations|matchers|mocks)/,
  ]

  config.include CassanityHelpers
end

CassanityHost = Array(ENV.fetch('CASSANITY_HOST', '127.0.0.1'))
CassanityPort = ENV.fetch('CASSANITY_PORT', '9042').to_i

{'fraction_non_alphanumeric': 0.15366146458583432, 'fraction_numerical': 0.012004801920768308, 'mean_word_length': 5.0618181818181816, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6386490', 'n_tokens_mistral': 625, 'n_tokens_neox': 592, 'n_words': 102}