<commit_before>require 'formula'

class Tomcat < Formula
  url 'http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.6/bin/apache-tomcat-7.0.6.tar.gz'
  homepage 'http://tomcat.apache.org/'
  md5 '1c54578e2e695212ab3ed75170930df4'

  skip_clean :all

  def install
    rm_rf Dir['bin/*.{cmd,bat]}']
    libexec.install Dir['*']
    (libexec+'logs').mkpath
    bin.mkpath
    Dir["#{libexec}/bin/*.sh"].each { |f| ln_s f, bin }
  end

  def caveats; <<-EOS.undent
    Note: Some of the support scripts used by Tomcat have very generic names.
    These are likely to conflict with support scripts used by other Java-based
    server software.

    You may want to `brew unlink tomcat` and add:
      #{bin}
    to your PATH instead.
    EOS
  end
end
<commit_msg>Tomcat 7.0.14<commit_after>require 'formula'

class Tomcat < Formula
  url 'http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.14/bin/apache-tomcat-7.0.14.tar.gz'
  homepage 'http://tomcat.apache.org/'
  md5 '6a4f1b7285b7366250c4e09307594451'

  skip_clean :all

  def install
    # Remove Windows scripts
    rm_rf Dir['bin/*.bat']

    # Install files
    prefix.install %w{ NOTICE LICENSE RELEASE-NOTES RUNNING.txt }
    libexec.install Dir['*']

    # Symlink binaries
    bin.mkpath
    ln_s "#{libexec}/bin/catalina.sh", bin+"catalina"
  end
end

{'fraction_non_alphanumeric': 0.130997715156131, 'fraction_numerical': 0.05407463823305408, 'mean_word_length': 3.145110410094637, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '5076845', 'n_tokens_mistral': 534, 'n_tokens_neox': 491, 'n_words': 113}