<commit_before># winbind_version.rb

Facter.add("winbind_version") do
	setcode do
		%x{wbinfo -V 2>&1 | cut -d ' ' -f 2 | cut -d '-' -f 1}.chomp
	end
end<commit_msg>Restrict to Linux and only when wbinfo is present<commit_after># winbind_version.rb

Facter.add("winbind_version") do
	confine :kernel => :Linux
        confine do
                system("which wbinfo > /dev/null 2>&1")
        end
	setcode do
		%x{wbinfo -V 2>&1 | cut -d ' ' -f 2 | cut -d '-' -f 1}.chomp
	end
end
{'fraction_non_alphanumeric': 0.14375, 'fraction_numerical': 0.020833333333333332, 'mean_word_length': 2.7, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '2948922', 'n_tokens_mistral': 199, 'n_tokens_neox': 187, 'n_words': 55}