<commit_before>class Znapzend < Formula
  desc "zfs backup with remote capabilities and mbuffer integration"
  homepage "http://www.znapzend.org"
  url "https://github.com/oetiker/znapzend/releases/download/v0.15.4/znapzend-0.15.4.tar.gz"
  sha256 "2716c17aa0cb07a0affdb7fc8d54bc13e04971c4ae97ef1d6911fc2016920541"

  bottle do
    cellar :any_skip_relocation
    sha256 "ee7bd50e5a2f15509cbd393d37deeef5bef96d234fe4d8b0342b737da4489b96" => :el_capitan
    sha256 "9090216f04ff5c5c71f17bdaa955b7ce3accc3e23fe5a3fb0a7468b35e2154cd" => :yosemite
    sha256 "499e13a3ecf75b3f912f30b280ad88c1108ad3e4f99972d40f7c24566aa89696" => :mavericks
  end

  depends_on "perl" if MacOS.version <= :mavericks

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

  test do
    fake_zfs = testpath/"zfs"
    fake_zfs.write <<-EOS.undent
      #!/bin/sh
      for word in "$@"; do echo $word; done >> znapzendzetup_said.txt
      exit 0
    EOS
    chmod 0755, fake_zfs
    ENV.prepend_path "PATH", testpath
    system "#{bin}/znapzendzetup", "list"
    assert_equal <<-EOS.undent, (testpath/"znapzendzetup_said.txt").read
      list
      -H
      -o
      name
      -t
      filesystem,volume
    EOS<commit_msg>znapzend: update 0.15.4 bottle.<commit_after>class Znapzend < Formula
  desc "zfs backup with remote capabilities and mbuffer integration"
  homepage "http://www.znapzend.org"
  url "https://github.com/oetiker/znapzend/releases/download/v0.15.4/znapzend-0.15.4.tar.gz"
  sha256 "2716c17aa0cb07a0affdb7fc8d54bc13e04971c4ae97ef1d6911fc2016920541"

  bottle do
    cellar :any_skip_relocation
    sha256 "accb9bb472c3f07250357a44e2189e376ec15ef5bfa7d6171f80a0efdf7173bb" => :el_capitan
    sha256 "b69841286ab242e78ee23e71de2f3b3c340e1f1f6f078a1287433ae3d1510e75" => :yosemite
    sha256 "7d91e4f9ce37d5448140b97282ef57cd857616dbb0d1e68faa35797b98e52483" => :mavericks
  end

  depends_on "perl" if MacOS.version <= :mavericks

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

  test do
    fake_zfs = testpath/"zfs"
    fake_zfs.write <<-EOS.undent
      #!/bin/sh
      for word in "$@"; do echo $word; done >> znapzendzetup_said.txt
      exit 0
    EOS
    chmod 0755, fake_zfs
    ENV.prepend_path "PATH", testpath
    system "#{bin}/znapzendzetup", "list"
    assert_equal <<-EOS.undent, (testpath/"znapzendzetup_said.txt").read
      list
      -H
      -o
      name
      -t
      filesystem,volume
    EOS
{'fraction_non_alphanumeric': 0.10437452033768227, 'fraction_numerical': 0.1419800460475825, 'mean_word_length': 3.3377703826955076, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '2533530', 'n_tokens_mistral': 1270, 'n_tokens_neox': 1075, 'n_words': 170}