<commit_before>
require 'facter'
require 'net/http'
require 'json'

response20 = Net::HTTP.get_response("dguix.com","/timediff/" + 22)
response1 = Net::HTTP.get_response("dguix.com","/timediff/" + 1)
hour20 = JSON.parse(response20.body)['hour']
hour1 = JSON.parse(response1.body)['hour']

Facter.add('compacthour') do
  setcode do
    hour20
  end
end

Facter.add('otherhour') do
  setcode do
    hour1
  end
end<commit_msg>Updated facter fact to use HTTPS<commit_after>require 'facter'
require 'net/https'
require "uri"
require 'json'

# Get 8pm in localDC time
uri20 = URI.parse("https://dgunix.com/localhour/20")
http20 = Net:HTTP.new(uri20.host, uri20.port)
http20.use_ssl = true
http20.verify_mode = OpenSSL::SSL::VERIFY_NONE
request20 = Net::HTTP::Get.new(uri20.request_uri)
response20 = http.request(request20)
hour20 = JSON.parse(response20.body)['hour']

# Get 1am in localDC time
uri1 = URI.parse("https://dgunix.com/localhour/1")
http1 = Net:HTTP.new(uri1.host, uri1.port)
http1.use_ssl = true
http1.verify_mode = OpenSSL::SSL::VERIFY_NONE
request1 = Net::HTTP::Get.new(uri1.request_uri)
response1 = http.request(request1)
hour1 = JSON.parse(response1.body)['hour']


Facter.add('compacthour') do
  setcode do
    hour20
  end
end

Facter.add('otherhour') do
  setcode do
    hour1
  end
end
{'fraction_non_alphanumeric': 0.14746543778801843, 'fraction_numerical': 0.04531490015360983, 'mean_word_length': 5.23444976076555, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2800751', 'n_tokens_mistral': 521, 'n_tokens_neox': 494, 'n_words': 97}