<commit_before>class ApiTestCase < Test::Unit::TestCase
  SERVICE_ROOT = 'http://localhost:9999/sipxconfig/services/'

  DUMMY_USER = "dummyAdminUserNameForTestingOnly"
  DUMMY_PASSWORD = "<PASSWORD>"

  def setup
    super
  
    # Hash of SOAP services, indexed by class
    @services = Hash.new
  end

  # Return the service for the given service_class, creating it on demand.
  # Note that the name of the service class is also the last part of the service URL.
  def service(service_class)
    # return the named service if we have already created it
    service = @services[service_class]
    return service if service
    
    # doesn't exist yet, so create it
    service_url = SERVICE_ROOT + service_class.name
    #@services[service_class] = service = service_class.new(service_url)
    service = service_class.new(service_url)<commit_msg>XCF-1066 inadvertant removing of caching soap services in unit test env. , although works either way, I didnt mean to introduce a change, was only for debugging purposes<commit_after>class ApiTestCase < Test::Unit::TestCase
  SERVICE_ROOT = 'http://localhost:9999/sipxconfig/services/'

  DUMMY_USER = "dummyAdminUserNameForTestingOnly"
  DUMMY_PASSWORD = "<PASSWORD>"

  def setup
    super
  
    # Hash of SOAP services, indexed by class
    @services = Hash.new
  end

  # Return the service for the given service_class, creating it on demand.
  # Note that the name of the service class is also the last part of the service URL.
  def service(service_class)
    # return the named service if we have already created it
    service = @services[service_class]
    return service if service
    
    # doesn't exist yet, so create it
    service_url = SERVICE_ROOT + service_class.name
    @services[service_class] = service = service_class.new(service_url)
{'fraction_non_alphanumeric': 0.06858407079646017, 'fraction_numerical': 0.00663716814159292, 'mean_word_length': 3.8629032258064515, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '2369442', 'n_tokens_mistral': 532, 'n_tokens_neox': 509, 'n_words': 187}