<commit_before>cask 'jdownloader' do
  version :latest
  sha256 :no_check

  if MacOS.release <= :snow_leopard
    url 'http://installer.jdownloader.org/JD2Setup_10_6orlower.dmg'
  else
    url 'http://installer.jdownloader.org/JD2Setup.dmg'
  end

  name 'JDownloader 2'
  homepage 'http://jdownloader.org/'
  license :gpl

  app 'JDownloader 2.0/JDownloader2.app'

  preflight do
    system "\"#{staged_path}/JDownloader Installer.app/Contents/MacOS/JavaApplicationStub\" " \
           "-dir \"#{staged_path}\" " \
           '-q ' \
           '-Dinstall4j.suppressStdout=true ' \
           '-Dinstall4j.debug=false ' \
           '-VcreateDesktopLinkAction\$Boolean=false ' \
           '-VaddToDockAction\$Boolean=false ' \
           '> /dev/null 2>&1'
  end

  caveats <<-EOS.undent
    #{token} requires Java 6+, you can install the latest Java using

      brew cask install java
  EOS
end<commit_msg>jdownloader.rb: depends_on_java<commit_after>cask 'jdownloader' do
  version :latest
  sha256 :no_check

  if MacOS.release <= :snow_leopard
    url 'http://installer.jdownloader.org/JD2Setup_10_6orlower.dmg'
  else
    url 'http://installer.jdownloader.org/JD2Setup.dmg'
  end

  name 'JDownloader 2'
  homepage 'http://jdownloader.org/'
  license :gpl

  app 'JDownloader 2.0/JDownloader2.app'

  preflight do
    system "\"#{staged_path}/JDownloader Installer.app/Contents/MacOS/JavaApplicationStub\" " \
           "-dir \"#{staged_path}\" " \
           '-q ' \
           '-Dinstall4j.suppressStdout=true ' \
           '-Dinstall4j.debug=false ' \
           '-VcreateDesktopLinkAction\$Boolean=false ' \
           '-VaddToDockAction\$Boolean=false ' \
           '> /dev/null 2>&1'
  end

  caveats do
    depends_on_java
  end
end
{'fraction_non_alphanumeric': 0.1284246575342466, 'fraction_numerical': 0.018835616438356163, 'mean_word_length': 2.563008130081301, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 17, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7445224', 'n_tokens_mistral': 653, 'n_tokens_neox': 621, 'n_words': 106}