<commit_before># Grab the FreeRADIUS version from the output of radiusd -v
Facter.add(:freeradius_version) do
  setcode do
    Facter::Core::Execution.exec('radiusd -v').split(/\n/)[0].match(/FreeRADIUS Version (\d\.\d\.\d)/)[1]
  end
end

<commit_msg>Make the fact work gracefully on systems that don't have FreeRADIUS installed<commit_after># Grab the FreeRADIUS version from the output of radiusd -v
if %x{which radiusd 2>/dev/null | wc -l}.chomp.to_i > 0
  Facter.add(:freeradius_version) do
    setcode do
      Facter::Core::Execution.exec('radiusd -v').split(/\n/)[0].match(/FreeRADIUS Version (\d\.\d\.\d)/)[1]
    end
  end
end


{'fraction_non_alphanumeric': 0.1536050156739812, 'fraction_numerical': 0.009404388714733543, 'mean_word_length': 3.8045112781954886, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '646633', 'n_tokens_mistral': 242, 'n_tokens_neox': 230, 'n_words': 61}