<commit_before>require 'minitest/autorun'
require_relative '../context/wmi_application_context'
require_relative '../context/web_application_context'

class ApplicationContextTest < Minitest::Test
  
  def setup
  end

#  def test_application_context_initialization
#      Nanotek::ApplicationContext.new(
#              loop {Nanotek::ApplicationContext.configure_application_context}
#        )
#    true
#  end
  
  def test_application_context_initialization_1
      Nanotek::WmiApplicationContext.new{
                      Nanotek::WmiApplicationContext.configure_application_context
                            assert_equal($wmi_application_context_loaded , true , "Wmi Application Context not Initialized")
                 }.join
      puts "Wmi application context #{$wmi_application_context_loaded}"
    true
  end


  def test_application_context_initialization_1
       Nanotek::WebApplicationContext.new{
                       Nanotek::WebApplicationContext.configure_application_context
                             assert_equal($wmi_application_context_loaded , true , "Wmi Application Context not Initialized")
                  }.join
       puts "Wmi application context #{$wmi_application_context_loaded}"
     true
   end
  
end

#Nanotek::ApplicationContext.configure_application_context<commit_msg>fixed excessive tapping<commit_after>require 'minitest/autorun'
require_relative '../context/wmi_application_context'
require_relative '../context/web_application_context'

class ApplicationContextTest < Minitest::Test
  
  def setup
  end

#  def test_application_context_initialization
#      Nanotek::ApplicationContext.new(
#              loop {Nanotek::ApplicationContext.configure_application_context}
#        )
#    true
#  end
  
  def test_application_context_initialization_1
      Nanotek::WmiApplicationContext.new{
                      Nanotek::WmiApplicationContext.configure_application_context
                            assert_equal($wmi_application_context_loaded , true , "Wmi Application Context not Initialized")
                 }.join
      puts "Wmi application context #{$wmi_application_context_loaded}"
    true
  end


  def test_application_context_initialization_12
       Nanotek::WebApplicationContext.new{
                       Nanotek::WebApplicationContext.configure_application_context
                  }.join
     true
   end
  
end

#Nanotek::ApplicationContext.configure_application_context
{'fraction_non_alphanumeric': 0.06392508143322476, 'fraction_numerical': 0.002035830618892508, 'mean_word_length': 3.1856899488926746, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4376831', 'n_tokens_mistral': 654, 'n_tokens_neox': 631, 'n_words': 107}