<commit_before>require 'formula'

class Ssed < Formula
  homepage 'http://sed.sourceforge.net/grabbag/ssed/'
  url 'http://sed.sourceforge.net/grabbag/ssed/sed-3.62.tar.gz'
  sha1 '6bdc4cd07780e397787c0d494c962827bb407fa2'

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}",
                          "--infodir=#{info}",
                          "--program-prefix=s"
    system "make install"
  end
end<commit_msg>ssed: test added<commit_after>class Ssed < Formula
  homepage "http://sed.sourceforge.net/grabbag/ssed/"
  url "http://sed.sourceforge.net/grabbag/ssed/sed-3.62.tar.gz"
  sha256 "af7ff67e052efabf3fd07d967161c39db0480adc7c01f5100a1996fec60b8ec4"

  conflicts_with "gnu-sed", :because => "both install share/info/sed.info"

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

  test do
    assert_equal "homebrew",
      pipe_output("#{bin}/ssed s/neyd/mebr/", "honeydew", 0).chomp
  end
end
{'fraction_non_alphanumeric': 0.15110759493670886, 'fraction_numerical': 0.058544303797468354, 'mean_word_length': 2.108108108108108, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '3791593', 'n_tokens_mistral': 470, 'n_tokens_neox': 421, 'n_words': 64}