<commit_before>require 'simplecov'
SimpleCov.start 'rails'
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
# It is recommended to regenerate this file in the future when you upgrade to a
# newer version of cucumber-rails. Consider adding your own code to a new file
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
# files.

require 'cucumber/rails'
# require 'selenium/webdriver'


# Before do
#   if Capybara.current_driver == :selenium
#     require 'headless'

#     headless = Headless.new
#     headless.start
#   end
# end

require 'capybara/poltergeist'
Capybara.javascript_driver = :poltergeist

Capybara.register_driver :poltergeist do |app|
	Capybara::Poltergeist::Driver.new(
 		app,
		window_size: [1280, 1024]#,
		#debug:       true
	)
end<commit_msg>reconfigure phantom js path<commit_after>require 'simplecov'
SimpleCov.start 'rails'
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
# It is recommended to regenerate this file in the future when you upgrade to a
# newer version of cucumber-rails. Consider adding your own code to a new file
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
# files.

require 'cucumber/rails'
# require 'selenium/webdriver'


# Before do
#   if Capybara.current_driver == :selenium
#     require 'headless'

#     headless = Headless.new
#     headless.start
#   end
# end

require 'capybara/poltergeist'
Capybara.javascript_driver = :poltergeist

# Capybara.register_driver :poltergeist do |app|
# 	Capybara::Poltergeist::Driver.new(
# 		app,
# 		window_size: [1280, 1024]#,
# 		#debug:       true
# 	)
# end
Phantomjs.path # Force install on require
Capybara.register_driver :poltergeist do |app|
  Capybara::Poltergeist::Driver.new(app, :phantomjs => Phantomjs.path)
end
{'fraction_non_alphanumeric': 0.09531502423263329, 'fraction_numerical': 0.008616047388260635, 'mean_word_length': 4.233802816901409, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1841944', 'n_tokens_mistral': 654, 'n_tokens_neox': 608, 'n_words': 191}