<commit_before>require "formula"

class Tcsh < Formula
  desc "Enhanced, fully compatible version of the Berkeley C shell"
  homepage 'http://www.tcsh.org/'
  url 'ftp://ftp.astron.com/pub/tcsh/tcsh-6.18.01.tar.gz'
  sha1 'eee2035645737197ff8059c84933a75d23cd76f9'

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

  test do
    (testpath/'test.csh').write <<-EOS.undent
      #!#{bin}/tcsh
      set ARRAY=( "t" "e" "s" "t" )
      foreach i ( `seq $#ARRAY` )
        echo -n $ARRAY[$i]
      end
    EOS
    assert_equal "test", `#{bin}/tcsh ./test.csh`
  end
end<commit_msg>tcsh 6.19.00<commit_after>class Tcsh < Formula
  desc "Enhanced, fully compatible version of the Berkeley C shell"
  homepage "http://www.tcsh.org/"
  url "ftp://ftp.astron.com/pub/tcsh/tcsh-6.19.00.tar.gz"
  mirror "http://ftp.funet.fi/pub/mirrors/ftp.astron.com/pub/tcsh/tcsh-6.19.00.tar.gz"
  sha256 "12e271e0b89e4259d9d6e8d525322e77340e7244cfbd199a591e5f8146285c49"

  def install
    system "./configure", "--prefix=#{prefix}", "--sysconfdir=#{etc}"
    system "make", "install"
  end

  test do
    (testpath/"test.csh").write <<-EOS.undent
      #!#{bin}/tcsh
      set ARRAY=( "t" "e" "s" "t" )
      foreach i ( `seq $#ARRAY` )
        echo -n $ARRAY[$i]
      end
    EOS
    assert_equal "test", shell_output("#{bin}/tcsh ./test.csh")
  end
end
{'fraction_non_alphanumeric': 0.1695621959694232, 'fraction_numerical': 0.06879777623349548, 'mean_word_length': 2.789473684210526, 'pattern_counts': {'":': 0, '<': 9, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6764550', 'n_tokens_mistral': 628, 'n_tokens_neox': 571, 'n_words': 114}