<commit_before># encoding: utf-8

#

if ENV["CI"]
  require 'coveralls'
  Coveralls.wear!
end

$: << File.expand_path(File.join(*%w{.. .. lib}), __FILE__)

require 'chatwork'

require 'rspec/its'
require "webmock/rspec"
require "pry"

begin
  require "backport_dig"
rescue LoadError
end

Dir["#{__dir__}/support/**/*.rb"].each { |f| require f }

def spec_dir
  Pathname(__dir__)
end

def schema_file
  spec_dir.join("../api/RAML/api-ja.raml")
end

RSpec.configure do |config|
  config.before(:suite) do
    raise "Not found '#{schema_file}'. Please run `git submodule update --init` at first" unless schema_file.exist?
  end
end
<commit_msg>:cop: rubocop --auto-correct --only Lint/UnneededSplatExpansion<commit_after># encoding: utf-8

#

if ENV["CI"]
  require 'coveralls'
  Coveralls.wear!
end

$: << File.expand_path(File.join('..', '..', 'lib'), __FILE__)

require 'chatwork'

require 'rspec/its'
require "webmock/rspec"
require "pry"

begin
  require "backport_dig"
rescue LoadError
end

Dir["#{__dir__}/support/**/*.rb"].each { |f| require f }

def spec_dir
  Pathname(__dir__)
end

def schema_file
  spec_dir.join("../api/RAML/api-ja.raml")
end

RSpec.configure do |config|
  config.before(:suite) do
    raise "Not found '#{schema_file}'. Please run `git submodule update --init` at first" unless schema_file.exist?
  end
end

{'fraction_non_alphanumeric': 0.15880149812734082, 'fraction_numerical': 0.00149812734082397, 'mean_word_length': 4.23921568627451, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4359589', 'n_tokens_mistral': 505, 'n_tokens_neox': 503, 'n_words': 122}