<commit_before>require 'rubygems'
gem 'rspec'
require 'spec'

$:.unshift(File.dirname(__FILE__) + '/../lib')
$:.unshift('../ruote/lib')

# For the tests to work you need to use the AMQP gem built from
# http://github.com/kennethkalmer/amqp.git
gem 'amqp', '=0.6.4'

require 'fileutils'
require 'json'

require 'ruote/engine'
require 'ruote/log/test_logger'

require 'ruote-amqp'
require 'spec/ruote'


# AMQP magic worked here
AMQP.settings[:host]  = '172.16.133.50'
AMQP.settings[:vhost] = '/ruote-test'
AMQP.settings[:user]  = 'ruote'
AMQP.settings[:pass]  = '<PASSWORD>'

#AMQP.logging = true

Spec::Runner.configure do |config|

  config.include( RuoteSpecHelpers )

  config.before(:each) do
    @tracer = Tracer.new

    ac = {}

    ac[:s_tracer] = @tracer
    ac[:ruby_eval_allowed] = true
    ac[:definition_in_launchitem_allowed] = true

    @engine = ::Ruote::Engine.new( ac )

    @engine.add_service( :s_logger, ::Ruote::TestLogger )
  end

  config.after(:each) do
    @engine.stop
    RuoteAMQP.shutdown_reactor!
  end
<commit_msg>Fool, don't commit own virtualbox configs<commit_after>require 'rubygems'
gem 'rspec'
require 'spec'

$:.unshift(File.dirname(__FILE__) + '/../lib')
$:.unshift('../ruote/lib')

# For the tests to work you need to use the AMQP gem built from
# http://github.com/kennethkalmer/amqp.git
gem 'amqp', '=0.6.4'

require 'fileutils'
require 'json'

require 'ruote/engine'
require 'ruote/log/test_logger'

require 'ruote-amqp'
require 'spec/ruote'


# AMQP magic worked here
#AMQP.settings[:host]  = '172.16.133.50'
AMQP.settings[:vhost] = '/ruote-test'
AMQP.settings[:user]  = 'ruote'
AMQP.settings[:pass]  = '<PASSWORD>'

#AMQP.logging = true

Spec::Runner.configure do |config|

  config.include( RuoteSpecHelpers )

  config.before(:each) do
    @tracer = Tracer.new

    ac = {}

    ac[:s_tracer] = @tracer
    ac[:ruby_eval_allowed] = true
    ac[:definition_in_launchitem_allowed] = true

    @engine = ::Ruote::Engine.new( ac )

    @engine.add_service( :s_logger, ::Ruote::TestLogger )
  end

  config.after(:each) do
    @engine.stop
    RuoteAMQP.shutdown_reactor!
  end

{'fraction_non_alphanumeric': 0.15794436586515795, 'fraction_numerical': 0.012258368694012258, 'mean_word_length': 4.028436018957346, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2599042', 'n_tokens_mistral': 851, 'n_tokens_neox': 799, 'n_words': 167}