<commit_before>require 'formula'

class AardvarkShellUtils < Formula
  homepage 'http://www.laffeycomputer.com/shellutils.html'
  url 'http://downloads.laffeycomputer.com/current_builds/shellutils/aardvark_shell_utils-1.0.tar.gz'
  sha1 '8cee29059038ebec96c3a97978d18a5a4941da06'

  def install
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}"
    system "make"
    system "make install"
  end
end
<commit_msg>aardvark_shell_utils: add test<commit_after>require 'formula'

class AardvarkShellUtils < Formula
  homepage 'http://www.laffeycomputer.com/shellutils.html'
  url 'http://downloads.laffeycomputer.com/current_builds/shellutils/aardvark_shell_utils-1.0.tar.gz'
  sha1 '8cee29059038ebec96c3a97978d18a5a4941da06'

  def install
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}"
    system "make"
    system "make install"
  end

  test do
    output = `#{bin}/filebase movcpm.com`
    assert_equal "movcpm\n", output
    assert_equal 0, $?.exitstatus

    output = `#{bin}/fileext movcpm.com`
    assert_equal "com\n", output
    assert_equal 0, $?.exitstatus

    output = `#{bin}/realpath .`
    assert_equal "#{testpath}\n", output
    assert_equal 0, $?.exitstatus
  end
end

{'fraction_non_alphanumeric': 0.13464235624123422, 'fraction_numerical': 0.042776998597475455, 'mean_word_length': 2.9971988795518207, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2862276', 'n_tokens_mistral': 524, 'n_tokens_neox': 486, 'n_words': 83}