<commit_before>if File.exist?('/usr/bin/uptrack-uname')
  Facter.add(:ksplice_kernelrelease) do
    setcode '/usr/bin/uptrack-uname -r'
  end

  Facter.add(:ksplice_kernelversion) do
    setcode do
      Facter.value(:ksplice_kernelrelease).split('-')[0]
    end
  end

  Facter.add(:ksplice_kernelmajversion) do
    setcode do
      Facter.value(:ksplice_kernelversion).split('.')[0..1].join('.')
    end
  end

  Facter.add(:ksplice_kernel_package_version) do
    setcode do
      Facter::Util::Resolution.exec('/usr/bin/uptrack-uname --package-version').split[2]
    end
  end
end
<commit_msg>send stderr to /dev/null<commit_after>if File.exist?('/usr/bin/uptrack-uname')
  Facter.add(:ksplice_kernelrelease) do
    setcode do
      Facter::Util::Resolution.exec('/usr/bin/uptrack-uname -r 2>/dev/null')
    end
  end

  Facter.add(:ksplice_kernelversion) do
    setcode do
      Facter.value(:ksplice_kernelrelease).split('-')[0]
    end
  end

  Facter.add(:ksplice_kernelmajversion) do
    setcode do
      Facter.value(:ksplice_kernelversion).split('.')[0..1].join('.')
    end
  end

  Facter.add(:ksplice_kernel_package_version) do
    setcode do
      Facter::Util::Resolution.exec('/usr/bin/uptrack-uname --package-version 2>/dev/null').split[2]
    end
  end
end

{'fraction_non_alphanumeric': 0.14823529411764705, 'fraction_numerical': 0.00784313725490196, 'mean_word_length': 3.508833922261484, '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': '4853729', 'n_tokens_mistral': 483, 'n_tokens_neox': 482, 'n_words': 69}