<commit_before>cask 'logitech-unifying' do
  version '1.3.375'
  sha256 '915116757a33d3d9c5be706d12718824b4082b3e495f2a77a3ffc70db5956666'

  url "https://www.logitech.com/pub/controldevices/unifying/unifying#{version}_mac.zip"
  name 'Logitech Unifying Software'
  homepage 'https://www.logitech.com/en-us/promotions/6072'

  pkg 'Unifying Installer.app/Contents/Resources/Logitech Unifying Signed.mpkg'

  uninstall pkgutil: [
                       'com.Logitech.Unifying Software.pkg',
                       'com.Logitech.Updater.pkg',
                     ],
            delete:  '/Applications/Utilities/Logitech Unifying Software.app',
            quit:    'com.logitech.unifying.assistant'<commit_msg>Update logitech-unifying 1.3.375 version and zap (#712)<commit_after>cask 'logitech-unifying' do
  if MacOS.version <= :yosemite
    version '1.2.359'
    sha256 'e6fd9c1b536033f3346b32c391bd58587ea9f549cab7839cf8a1dbc62a739825'
  else
    version '1.3.375'
    sha256 '915116757a33d3d9c5be706d12718824b4082b3e495f2a77a3ffc70db5956666'
  end

  url "https://www.logitech.com/pub/controldevices/unifying/unifying#{version}_mac.zip"
  appcast 'https://support.logitech.com/en_us/software/unifying'
  name 'Logitech Unifying Software'
  homepage 'https://www.logitech.com/en-us/promotions/6072'

  depends_on macos: [
                      :yosemite,
                      :el_capitan,
                      :sierra,
                      :high_sierra,
                    ]

  pkg 'Unifying Installer.app/Contents/Resources/Logitech Unifying Signed.mpkg'

  uninstall pkgutil: [
                       'com.Logitech.Unifying Software.pkg',
                       'com.Logitech.Updater.pkg',
                     ],
            delete:  '/Applications/Utilities/Logitech Unifying Software.app',
            quit:    'com.logitech.unifying.assistant'

  zap trash: [
               '/Library/Application Support/Logitech.localized',
               '~/Library/Caches/com.Logitech.Updater',
               '~/Library/Preferences/com.Logitech.Updater.plist',
               '~/Library/Preferences/com.logitech.unifying.assistant.plist',
             ]
{'fraction_non_alphanumeric': 0.10724233983286909, 'fraction_numerical': 0.08031569173630455, 'mean_word_length': 2.356697819314642, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 5, 'lorem ipsum': 0, 'www.': 4, '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': '5970943', 'n_tokens_mistral': 852, 'n_tokens_neox': 735, 'n_words': 91}