<commit_before># Fetches the css files from Chameleon so that it can be used by this extension.
# The view layouts should be able to extract the uri from +CSS_URIS+
CSS_URIS = []
unless Rails.env.test?
  url = URI.parse(ENV['CHAMELEON_HOST']) 
  response = ""
  begin
    done_redirecting = false
    until done_redirecting
      host, port = url.host, url.port if url.host && url.port
      req = Net::HTTP::Get.new(url.path)
      response = Net::HTTP.start(host, port) do |http|
        if url.scheme == "https"
          #http.use_ssl = true
        	# This is temporary
      	  http.verify_mode = OpenSSL::SSL::VERIFY_NONE<commit_msg>Default value if env variable for host does not exist.<commit_after># Fetches the css files from Chameleon so that it can be used by this extension.
# The view layouts should be able to extract the uri from +CSS_URIS+
CSS_URIS = []
unless Rails.env.test?
  url = URI.parse(ENV['CHAMELEON_HOST'] || "http://www.anypresenceapp-staging.com/") 
  response = ""
  begin
    done_redirecting = false
    until done_redirecting
      host, port = url.host, url.port if url.host && url.port
      req = Net::HTTP::Get.new(url.path)
      response = Net::HTTP.start(host, port) do |http|
        if url.scheme == "https"
          #http.use_ssl = true
        	# This is temporary
      	  http.verify_mode = OpenSSL::SSL::VERIFY_NONE
{'fraction_non_alphanumeric': 0.10842490842490843, 'fraction_numerical': 0.0, 'mean_word_length': 3.0294985250737465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '5809236', 'n_tokens_mistral': 445, 'n_tokens_neox': 436, 'n_words': 135}