<commit_before>#!/usr/bin/env ruby

#mac_encryption_enabled.rb
require 'facter'
Facter.add(:mac_encryption_enabled) do
  confine :kernel => "Darwin"
  setcode do
      osver = Facter.value('macosx_productversion_major')
      if osver == "10.8" or osver =="10.9" or osver == "10.10"
        output = Facter::Util::Resolution.exec("/usr/bin/fdesetup status")
        enabled = output.split("\n").first
        if enabled=="FileVault is On."
          "true"
        else
          "false"
        end
      else<commit_msg>Update mac_encryption_enabled.rb<commit_after>#!/usr/bin/env ruby

#mac_encryption_enabled.rb
require 'facter'
Facter.add(:mac_encryption_enabled) do
  confine :kernel => "Darwin"
  setcode do
      osver = Facter.value('macosx_productversion_major')
      if osver == "10.8" or osver =="10.9" or osver == "10.10" or osver == "10.11"
        output = Facter::Util::Resolution.exec("/usr/bin/fdesetup status")
        enabled = output.split("\n").first
        if enabled=="FileVault is On."
          "true"
        else
          "false"
        end
      else
{'fraction_non_alphanumeric': 0.13850415512465375, 'fraction_numerical': 0.0221606648199446, 'mean_word_length': 2.712328767123288, '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': '4537057', 'n_tokens_mistral': 388, 'n_tokens_neox': 371, 'n_words': 77}