<commit_before>cask 'git-annex' do
  version :latest
  sha256 :no_check

  if MacOS.release <= :lion
    # kitenet.net is the official download host per the vendor homepage
    url 'https://downloads.kitenet.net/git-annex/OSX/current/10.7.5_Lion/git-annex.dmg'
  elsif MacOS.release == :mountain_lion
    # kitenet.net is the official download host per the vendor homepage
    url 'https://downloads.kitenet.net/git-annex/OSX/current/10.8.2_Mountain_Lion/git-annex.dmg.bz2'

    # This is a horrible hack to force the file extension.  The
    # backend code should be fixed so that this is not needed.
    preflight do
      system '/bin/mv', '--', staged_path.join('git-annex-latest'), staged_path.join('git-annex-latest.dmg')
    end
    container nested: 'git-annex-latest.dmg'
  elsif MacOS.release == :mavericks
    # kitenet.net is the official download host per the vendor homepage
    url 'https://downloads.kitenet.net/git-annex/OSX/current/10.9_Mavericks/git-annex.dmg'
  else
    # kitenet.net is the official download host per the vendor homepage
    url 'https://downloads.kitenet.net/git-annex/OSX/current/10.10_Yosemite/git-annex.dmg'
  end

  name 'git-annex'
  homepage 'https://git-annex.branchable.com/'
  license :gpl
  gpg "#{url}.sig",
      key_url: 'https://downloads.kitenet.net/git-annex/gpg-pubkey.asc'

  depends_on macos: %w[
                      :lion
                      :mountain_lion
                      :mavericks
                      :yosemite
                    ]

  app 'git-annex.app'
  binary 'git-annex.app/Contents/MacOS/git-annex'
  binary 'git-annex.app/Contents/MacOS/git-annex-shell'

  uninstall launchctl: 'com.branchable.git-annex.assistant'

  caveats do<commit_msg>Add 10.11/el_capitan as a supported os.<commit_after>cask 'git-annex' do
  version :latest
  sha256 :no_check

  if MacOS.release <= :lion
    # kitenet.net is the official download host per the vendor homepage
    url 'https://downloads.kitenet.net/git-annex/OSX/current/10.7.5_Lion/git-annex.dmg'
  elsif MacOS.release == :mountain_lion
    # kitenet.net is the official download host per the vendor homepage
    url 'https://downloads.kitenet.net/git-annex/OSX/current/10.8.2_Mountain_Lion/git-annex.dmg.bz2'

    # This is a horrible hack to force the file extension.  The
    # backend code should be fixed so that this is not needed.
    preflight do
      system '/bin/mv', '--', staged_path.join('git-annex-latest'), staged_path.join('git-annex-latest.dmg')
    end
    container nested: 'git-annex-latest.dmg'
  elsif MacOS.release == :mavericks
    # kitenet.net is the official download host per the vendor homepage
    url 'https://downloads.kitenet.net/git-annex/OSX/current/10.9_Mavericks/git-annex.dmg'
  else
    # kitenet.net is the official download host per the vendor homepage
    url 'https://downloads.kitenet.net/git-annex/OSX/current/10.10_Yosemite/git-annex.dmg'
  end

  name 'git-annex'
  homepage 'https://git-annex.branchable.com/'
  license :gpl
  gpg "#{url}.sig",
      key_url: 'https://downloads.kitenet.net/git-annex/gpg-pubkey.asc'

  depends_on macos: %w[
                      :lion
                      :mountain_lion
                      :mavericks
                      :yosemite
                      :el_capitan
                    ]

  app 'git-annex.app'
  binary 'git-annex.app/Contents/MacOS/git-annex'
  binary 'git-annex.app/Contents/MacOS/git-annex-shell'

  uninstall launchctl: 'com.branchable.git-annex.assistant'

  caveats do
{'fraction_non_alphanumeric': 0.11529680365296803, 'fraction_numerical': 0.011986301369863013, 'mean_word_length': 2.6434511434511436, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '463430', 'n_tokens_mistral': 1288, 'n_tokens_neox': 1225, 'n_words': 257}