<commit_before>require 'rubygems'
require 'spec'

require File.dirname(File.expand_path(__FILE__)) + '/../lib/sparrow.rb'

#
# Modulo com metodos uteis para as propertiess.
#
module SparrowHelperMethods

  #
  # Apenas cria, mas nao faz o setup do cliente JMS.
  #
  def create_jms_client
    jms_client = Sparrow::JMS::Connection::Client.new do |properties|
      properties.client_jar_file         = '/home/leandro/Desenvolvimento/java/servers/oc4j_extended_101330/j2ee/home/oc4jclient.jar'
      properties.initial_context_factory = 'oracle.j2ee.naming.ApplicationClientInitialContextFactory'
      properties.provider_url            = 'ormi://localhost:23791'
      properties.security_principal      = 'oc4jadmin'
      properties.security_credentials    = 'welcome'
    end<commit_msg>adicionei uma nota sobre o OC4J tambem na Spec<commit_after>require 'rubygems'
require 'spec'

require File.dirname(File.expand_path(__FILE__)) + '/../lib/sparrow.rb'

#
# Modulo com metodos uteis para as propertiess.
#
module SparrowHelperMethods

  #
  # Apenas cria, mas nao faz o setup do cliente JMS.
  #
  # WARNING: OC4J will be used as Java EE application server, but any other could
  # be used with no problems.
  #
  def create_jms_client
    jms_client = Sparrow::JMS::Connection::Client.new do |properties|
      properties.client_jar_file         = '/home/leandro/Desenvolvimento/java/servers/oc4j_extended_101330/j2ee/home/oc4jclient.jar'
      properties.initial_context_factory = 'oracle.j2ee.naming.ApplicationClientInitialContextFactory'
      properties.provider_url            = 'ormi://localhost:23791'
      properties.security_principal      = 'oc4jadmin'
      properties.security_credentials    = 'welcome'
    end
{'fraction_non_alphanumeric': 0.09358752166377816, 'fraction_numerical': 0.019641825534373193, 'mean_word_length': 3.7845303867403315, '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': '309608', 'n_tokens_mistral': 593, 'n_tokens_neox': 564, 'n_words': 112}