<commit_before>require "formula"

class Spiped < Formula
  homepage "https://www.tarsnap.com/spiped.html"
  url "https://www.tarsnap.com/spiped/spiped-1.3.1.tgz"
  sha256 "8a58a983be460b88ed5a105201a0f0afacb83382208761837a62871dcca42fee"

  bottle do
    cellar :any
    sha1 "e4d18a28b907ad3a02199b1c72e9c78fbbcc69ec" => :mavericks
    sha1 "418827b51bda749149b4c0a9fd376f8aba9171d3" => :mountain_lion
    sha1 "1f320a1a68f9871e93bc669f53761601d2183882" => :lion
  end

  depends_on :bsdmake
  depends_on "openssl"

  def install
    man1.mkpath
    system "bsdmake", "BINDIR_DEFAULT=#{bin}", "MAN1DIR=#{man1}", "install"
    doc.install "spiped/README" => "README.spiped",
                "spipe/README" => "README.spipe"
  end
end<commit_msg>spiped 1.4.0<commit_after>require "formula"

class Spiped < Formula
  homepage "https://www.tarsnap.com/spiped.html"
  url "https://www.tarsnap.com/spiped/spiped-1.4.0.tgz"
  sha256 "d8fa13a36905337bec97e507e0689f7bbc9e5426b88d588f3ddd3d6c290dcf5f"

  depends_on :bsdmake
  depends_on "openssl"

  def install
    # Apply these minor build fixes until they are committed upstream; see
    # http://mail.tarsnap.com/spiped/msg00098.html .
    inreplace "POSIX/posix-cflags.sh", /echo "-D(.*)"/, "printf %s \"-D\\1 \""
    inreplace "Makefile", " make", " ${MAKE}"

    man1.mkpath
    system "bsdmake", "BINDIR_DEFAULT=#{bin}", "MAN1DIR=#{man1}", "install"
    doc.install "spiped/README" => "README.spiped",
                "spipe/README" => "README.spipe"
  end
end
{'fraction_non_alphanumeric': 0.13831899404367967, 'fraction_numerical': 0.12442091330244871, 'mean_word_length': 3.9411764705882355, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, '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': '2610894', 'n_tokens_mistral': 756, 'n_tokens_neox': 650, 'n_words': 97}