<commit_before>cask 'soundflower' do
  version '2.0b2'
  sha256 '6b5e56d53238cf0f9075886aa40580634fc9d23368239f22eccebfd97c9f8e34'

  url "https://github.com/mattingalls/Soundflower/releases/download/#{version}/Soundflower-#{version}.dmg"
  appcast 'https://github.com/mattingalls/Soundflower/releases.atom'
  name 'Soundflower'
  homepage 'https://github.com/mattingalls/Soundflower'

  pkg 'Soundflower.pkg'

  postflight do
    system_command '/sbin/kextload',
                   args: ['-b', 'com.Cycling74.driver.Soundflower'],
                   sudo: true
  end

  # early_script is a workaround for a slowly unloading kext, see private-eye Cask
  uninstall early_script: {
                            executable:   '/sbin/kextunload',
                            args:         ['-b', 'com.Cycling74.driver.Soundflower'],
                            must_succeed: false,
                          },
            pkgutil:      'com.cycling74.soundflower.*',
            kext:         'com.Cycling74.driver.Soundflower'
end<commit_msg>soundflower: add kext caveats (#79090)<commit_after>cask 'soundflower' do
  version '2.0b2'
  sha256 '6b5e56d53238cf0f9075886aa40580634fc9d23368239f22eccebfd97c9f8e34'

  url "https://github.com/mattingalls/Soundflower/releases/download/#{version}/Soundflower-#{version}.dmg"
  appcast 'https://github.com/mattingalls/Soundflower/releases.atom'
  name 'Soundflower'
  homepage 'https://github.com/mattingalls/Soundflower'

  pkg 'Soundflower.pkg'

  postflight do
    system_command '/sbin/kextload',
                   args: ['-b', 'com.Cycling74.driver.Soundflower'],
                   sudo: true
  end

  # early_script is a workaround for a slowly unloading kext, see private-eye Cask
  uninstall early_script: {
                            executable:   '/sbin/kextunload',
                            args:         ['-b', 'com.Cycling74.driver.Soundflower'],
                            must_succeed: false,
                          },
            pkgutil:      'com.cycling74.soundflower.*',
            kext:         'com.Cycling74.driver.Soundflower'

  caveats do
    kext
  end
end
{'fraction_non_alphanumeric': 0.10871602624179943, 'fraction_numerical': 0.054826616682286784, 'mean_word_length': 2.205705705705706, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7179239', 'n_tokens_mistral': 794, 'n_tokens_neox': 673, 'n_words': 113}