<commit_before>require 'rspec'
require 'ib-ruby'

RSpec.configure do |config|
  # config.exclusion_filter = { :slow => true }
  # config.filter = { :focus => true }
  # config.include(UserExampleHelpers)
  # config.mock_with :mocha
  # config.mock_with :flexmock
  # config.mock_with :rr
end

puts
puts 'WARNING: MAKE SURE TO RUN ALL YOUR TESTS AGAINST IB PAPER ACCOUNT!'
puts 'WARNING: FINANCIAL LOSSES MAY RESULT IF YOU RUN TESTS WITH REAL IB ACCOUNT!'
puts 'WARNING: YOU HAVE BEEN WARNED!'
puts
puts 'Configure your connection to IB PAPER ACCOUNT in spec/spec_helper.rb'
puts

# Please uncomment next line if you are REALLY sure you have properly configured
# Connection to IB PAPER ACCOUNT or mock (Brokertron) account
exit

SILENT = false #true

BROKERTRON = false

CONNECTION_OPTS = BROKERTRON ?
    {:client_id => 1111,
     :host => 'free.brokertron.com',
     :port=> 10501
    } :
    {:client_id => 1111,
     :host => '127.0.0.1',
     :port=> 4001
    }

<commit_msg>Specs connectivity options needs to be changed to run tests<commit_after>require 'rspec'
require 'ib-ruby'

RSpec.configure do |config|
  # config.exclusion_filter = { :slow => true }
  # config.filter = { :focus => true }
  # config.include(UserExampleHelpers)
  # config.mock_with :mocha
  # config.mock_with :flexmock
  # config.mock_with :rr
end

puts
puts 'WARNING: MAKE SURE TO RUN ALL YOUR TESTS AGAINST IB PAPER ACCOUNT ONLY!'
puts 'WARNING: FINANCIAL LOSSES MAY RESULT IF YOU RUN TESTS WITH REAL IB ACCOUNT!'
puts 'WARNING: YOU HAVE BEEN WARNED!'
puts
puts 'Configure your connection to IB PAPER ACCOUNT in spec/spec_helper.rb'
puts

# Please uncomment next line if you are REALLY sure you have properly configured
# Connection to IB PAPER ACCOUNT or mock (Brokertron) account
#exit

SILENT = false #true

BROKERTRON = false

CONNECTION_OPTS = BROKERTRON ?
    {:client_id => 1111,
     :host => 'free.brokertron.com',
     :port=> 10501
    } :
    {:client_id => 1111,
     :host => '10.211.55.2', # localhost?
     :port=> 4001
    }


{'fraction_non_alphanumeric': 0.10113468179575728, 'fraction_numerical': 0.023680315737543166, 'mean_word_length': 3.771764705882353, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3471208', 'n_tokens_mistral': 781, 'n_tokens_neox': 704, 'n_words': 229}