<commit_before>require 'opal'
require_relative 'workaround_for_using_prerelease_gems'
require_relative 'workaround_for_binary_encoding'

Opal::Processor.dynamic_require_severity = :warning
Opal.append_path File.expand_path('../../build', __FILE__)
Opal.append_path File.expand_path('../../lib', __FILE__)
Opal.append_path File.expand_path('../../spec', __FILE__)
Opal.append_path File.expand_path('../../vendor', __FILE__)
Opal.use_gem 'shoes-core'
Opal.use_gem 'rspec-its'
#Opal.use_gem 'webmock'

require 'opal/rspec/rake_task'
Opal::RSpec::RakeTask.new('spec:dsl')
Opal::RSpec::RakeTask.new('spec:browser') do |server|
  server.debug = true
  server.index_path = File.expand_path('../../spec/browser/index.erb', __FILE__)
end
<commit_msg>WIP: Rspec<commit_after>require 'opal'
require 'opal/rspec'
require 'opal/rspec/rake_task'
require_relative 'workaround_for_using_prerelease_gems'
require_relative 'workaround_for_binary_encoding'

Opal::Processor.dynamic_require_severity = :warning
Opal.append_path File.expand_path('../../build', __FILE__)
Opal.append_path File.expand_path('../../lib', __FILE__)
Opal.append_path File.expand_path('../../spec', __FILE__)
Opal.append_path File.expand_path('../../vendor', __FILE__)
Opal.use_gem 'shoes-core'
Opal.use_gem 'rspec-its'
#Opal.use_gem 'webmock'

Opal::RSpec::RakeTask.new('spec:dsl') do |server|
  server.debug = true
end

Opal::RSpec::RakeTask.new('spec:browser') do |server|
  server.debug = true
  server.index_path = File.expand_path('../../spec/browser/index.erb', __FILE__)
end

{'fraction_non_alphanumeric': 0.1650422352176738, 'fraction_numerical': 0.0, 'mean_word_length': 6.096774193548387, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1624340', 'n_tokens_mistral': 562, 'n_tokens_neox': 552, 'n_words': 84}