<commit_before>require 'capybara'
require 'capybara/mechanize'

require 'sinatra'
require 'spec'

require 'capybara/spec/extended_test_app'

# TODO move this stuff into capybara
require 'capybara/spec/driver'
require 'capybara/spec/session'

alias :running :lambda

Capybara.default_wait_time = 0 # less timeout so tests run faster

Spec::Runner.configure do |config|
  config.after do
    Capybara.default_selector = :xpath
  end
end
REMOTE_TEST_HOST = "capybara-testapp.heroku.com"
REMOTE_TEST_URL = "http://#{REMOTE_TEST_HOST}:8070"<commit_msg>Add simple instructions to get the tests running<commit_after>require 'capybara'
require 'capybara/mechanize'

require 'sinatra'
require 'spec'

require 'capybara/spec/extended_test_app'

# TODO move this stuff into capybara
require 'capybara/spec/driver'
require 'capybara/spec/session'

alias :running :lambda

Capybara.default_wait_time = 0 # less timeout so tests run faster

Spec::Runner.configure do |config|
  config.after do
    Capybara.default_selector = :xpath
  end
end

# Until this library is merge with capybara there needs to be local app and you need to add
# 127.0.0.1 capybara-testapp.heroku.com to your host file
# Run the app with the following line: 
# ruby -rrubygems lib/capybara/spec/extended_test_app.rb
REMOTE_TEST_HOST = "capybara-testapp.heroku.com"
REMOTE_TEST_URL = "http://#{REMOTE_TEST_HOST}:8070"
{'fraction_non_alphanumeric': 0.0915032679738562, 'fraction_numerical': 0.011619462599854757, 'mean_word_length': 5.350230414746544, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '4968787', 'n_tokens_mistral': 496, 'n_tokens_neox': 472, 'n_words': 128}