<commit_before># Fact: l3_fqdn_hostname
#
# Purpose: Return FQDN or hostname if FQDN undefined
#
Facter.add(:l3_fqdn_hostname) do
  hostname_simple = Facter.value(:hostname)
  hostname_fqdn = Facter.value(:fqdn)
  setcode do
    rv = hostname_fqdn || hostname_simple
  end
end<commit_msg>recommended by QA<commit_after># Fact: l3_fqdn_hostname
#
# Purpose: Return FQDN or hostname if FQDN undefined
#
Facter.add(:l3_fqdn_hostname) do
  setcode do
    rv = Facter.value(:fqdn) || Facter.value(:hostname)
  end
end
{'fraction_non_alphanumeric': 0.09765625, 'fraction_numerical': 0.0078125, 'mean_word_length': 5.180722891566265, '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': '1886089', 'n_tokens_mistral': 208, 'n_tokens_neox': 208, 'n_words': 45}