<commit_before>cask 'free-download-manager' do
  version '5.1.31'
  sha256 '845964e7172ac10e297b6734270bfbee1c7263bd8c0a6f9688bb63c1c9e000bb'

  url "http://files2.freedownloadmanager.org/#{version.major}/#{version.major_minor}-latest/fdm.dmg"
  name 'Free Download Manager'
  homepage "http://www.freedownloadmanager.org/landing#{version.major}.htm"

  depends_on macos: '>= 10.9'

  app 'Free Download Manager.app'

  zap delete: [
                '~/Library/Application Support/Free Download Manager',
                "~/Library/Caches/org.freedownloadmanager.fdm#{version.major}",
                "~/Library/Preferences/org.freedownloadmanager.fdm#{version.major}.plist",
                "~/Library/Saved Application State/org.freedownloadmanager.fdm#{version.major}.savedState",
                "~/Library/LaunchAgents/org.freedownloadmanager.fdm#{version.major}.helper.plist",
              ]
end<commit_msg>Update Free Download Manager to use Latest Link (#36311)<commit_after>cask 'free-download-manager' do
  version '5.1'
  sha256 :no_check # required as upstream package is updated in-place

  url "http://dn3.freedownloadmanager.org/#{version.major}/#{version}-latest/fdm.dmg"
  name 'Free Download Manager'
  homepage 'http://www.freedownloadmanager.org/'

  depends_on macos: '>= 10.9'

  app 'Free Download Manager.app'

  uninstall launchctl: [
                         "org.freedownloadmanager.fdm#{version.major}",
                         "org.freedownloadmanager.fdm#{version.major}.helper",
                       ],
            quit:      [
                         "org.freedownloadmanager.fdm#{version.major}",
                         "org.freedownloadmanager.fdm#{version.major}.launcher",
                       ]

  zap delete: [
                "~/Library/Caches/org.freedownloadmanager.fdm#{version.major}",
                "~/Library/Saved Application State/org.freedownloadmanager.fdm#{version.major}.savedState",
              ],
      trash:  [
                '~/Library/Application Support/Free Download Manager',
                "~/Library/Preferences/org.freedownloadmanager.fdm#{version.major}.plist",
              ]
end
{'fraction_non_alphanumeric': 0.12824074074074074, 'fraction_numerical': 0.030555555555555555, 'mean_word_length': 2.508116883116883, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4600636', 'n_tokens_mistral': 717, 'n_tokens_neox': 662, 'n_words': 91}