<commit_before>require 'formula'

class Ant < Formula
  homepage 'http://ant.apache.org/'
  url 'http://www.apache.org/dyn/closer.cgi?path=ant/binaries/apache-ant-1.9.4-bin.tar.gz'
  sha1 '6c41481e8201f6b3f7e216146b95bb6de70208bb'

  keg_only :provided_by_osx if MacOS.version < :mavericks

  def install
    rm Dir['bin/*.{bat,cmd,dll,exe}']
    libexec.install Dir['*']
    bin.install_symlink Dir["#{libexec}/bin/*"]
  end

  test do
    (testpath/'build.xml').write <<-EOS.undent
      <project name="HomebrewTest" basedir=".">
        <property name="src" location="src"/>
        <property name="build" location="build"/>
        <target name="init">
          <mkdir dir="${build}"/>
        </target>
        <target name="compile" depends="init">
          <javac srcdir="${src}" destdir="${build}"/>
        </target>
      </project>
    EOS
    (testpath/'src/main/java/org/homebrew/AntTest.java').write <<-EOS.undent
      package org.homebrew;
      public class AntTest {
        public static void main(String[] args) {
          System.out.println("Testing Ant with Homebrew!");
        }
      }
    EOS
    system "#{bin}/ant", "compile"
  end
end
<commit_msg>ant: add 1.9.4 bottle.<commit_after>require 'formula'

class Ant < Formula
  homepage 'http://ant.apache.org/'
  url 'http://www.apache.org/dyn/closer.cgi?path=ant/binaries/apache-ant-1.9.4-bin.tar.gz'
  sha1 '6c41481e8201f6b3f7e216146b95bb6de70208bb'

  bottle do
    cellar :any
    sha1 "56eee6f32ab55854b1ccbaa3e106129517e94f7f" => :mavericks
    sha1 "f09cd5546459a6172a60ed010444dde9cc94bac1" => :mountain_lion
    sha1 "5e90ad64f1bd68024f4fec659a6734629f349ea1" => :lion
  end

  keg_only :provided_by_osx if MacOS.version < :mavericks

  def install
    rm Dir['bin/*.{bat,cmd,dll,exe}']
    libexec.install Dir['*']
    bin.install_symlink Dir["#{libexec}/bin/*"]
  end

  test do
    (testpath/'build.xml').write <<-EOS.undent
      <project name="HomebrewTest" basedir=".">
        <property name="src" location="src"/>
        <property name="build" location="build"/>
        <target name="init">
          <mkdir dir="${build}"/>
        </target>
        <target name="compile" depends="init">
          <javac srcdir="${src}" destdir="${build}"/>
        </target>
      </project>
    EOS
    (testpath/'src/main/java/org/homebrew/AntTest.java').write <<-EOS.undent
      package org.homebrew;
      public class AntTest {
        public static void main(String[] args) {
          System.out.println("Testing Ant with Homebrew!");
        }
      }
    EOS
    system "#{bin}/ant", "compile"
  end
end

{'fraction_non_alphanumeric': 0.1592920353982301, 'fraction_numerical': 0.05502116198537899, 'mean_word_length': 2.898050974512744, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 26, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '3704575', 'n_tokens_mistral': 1013, 'n_tokens_neox': 933, 'n_words': 165}