<commit_before>require 'facter'

Puppet.settings.preferred_run_mode= :agent

Facter.add(:icinga2_puppet_hostcert) do
  setcode do
    Puppet.settings[:hostcert]
  end
end

Facter.add(:icinga2_puppet_hostprivkey) do
  setcode do
    Puppet.settings[:hostprivkey]
  end
end

Facter.add(:icinga2_puppet_localcacert) do
  setcode do
    Puppet.settings[:localcacert]
  end
end<commit_msg>Don't call private method preferred_run_mode= in facts<commit_after>require 'puppet'

Facter.add(:icinga2_puppet_hostcert) do
  setcode do
    Puppet.settings[:hostcert]
  end
end

Facter.add(:icinga2_puppet_hostprivkey) do
  setcode do
    Puppet.settings[:hostprivkey]
  end
end

Facter.add(:icinga2_puppet_localcacert) do
  setcode do
    Puppet.settings[:localcacert]
  end
end
{'fraction_non_alphanumeric': 0.08366013071895424, 'fraction_numerical': 0.00784313725490196, 'mean_word_length': 5.278688524590164, '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': '5602181', 'n_tokens_mistral': 310, 'n_tokens_neox': 308, 'n_words': 53}