<commit_before>require 'spec'

case PLATFORM
when /darwin/
  require 'safariwatir'
  Watir::Browser = Watir::Safari
when /win32/
  require 'watir'
  Watir::Browser = Watir::IE
else
  raise "Can't use Watir on #{PLATFORM}"
end

Before do
  @b = Watir::Browser.new
end

After do
  @b.close
end
<commit_msg>Added support for Celerity in examples<commit_after>require 'spec'

case PLATFORM
when /darwin/
  require 'safariwatir'
  Browser = Watir::Safari
when /win32/
  require 'watir'
  Browser = Watir::IE
when /java/
  require 'celerity'
  Browser = Celerity::Browser
else
  raise "Can't do web stories on #{PLATFORM}"
end

Before do
  @b = Browser.new
end

After do
  @b.close
end

{'fraction_non_alphanumeric': 0.10735294117647058, 'fraction_numerical': 0.0058823529411764705, 'mean_word_length': 3.9347826086956523, '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': '5545639', 'n_tokens_mistral': 273, 'n_tokens_neox': 260, 'n_words': 78}