<commit_before>class Minisign < Formula
  desc "Sign files & verify signatures. Works with signify in OpenBSD."
  homepage "https://jedisct1.github.io/minisign/"
  url "https://github.com/jedisct1/minisign/archive/0.4.tar.gz"
  sha256 "dc7695513e715654a51d07ad3e6b0083f9cb38b1a5bc9f16e1177d15af992dcc"
  revision 1

  bottle do
    cellar :any
    sha256 "fa7d3a052ade5f41d53edc114b369460f543f5676a4c6b541866b14db3ced3ff" => :el_capitan
    sha256 "2710174b100c657f71006a14a4035b533cd0bc61fd2a7699b46e6bc8a3a530b9" => :yosemite
    sha256 "a3b96531c0c259d802ea34224d642800a6c4ea95d46aa9b88eacfd23d53428df" => :mavericks
  end

  depends_on "libsodium"
  depends_on "cmake" => :build

  def install
    system "cmake", ".", *std_cmake_args
    system "make"
    system "make", "install"
  end

  test do
    (testpath/"homebrew.txt").write "Hello World!"
    (testpath/"keygen.sh").write <<-EOS.undent
      #!/usr/bin/expect -f
      set timeout -1
      spawn #{bin}/minisign -G
      expect -exact "Please enter a password to protect the secret key."
      expect -exact "\n"
      expect -exact "Password: "
      send -- "Homebrew\n"
      expect -exact "\r
      Password (one more time): "
      send -- "Homebrew\n"
      expect eof<commit_msg>minisign 0.5<commit_after>class Minisign < Formula
  desc "Sign files & verify signatures. Works with signify in OpenBSD."
  homepage "https://jedisct1.github.io/minisign/"
  url "https://github.com/jedisct1/minisign/archive/0.5.tar.gz"
  sha256 "31162b0634367d9130a44a60bdaedac1f7abf466563aa4d7dcb9260fb73f07cc"

  bottle do
    cellar :any
    sha256 "fa7d3a052ade5f41d53edc114b369460f543f5676a4c6b541866b14db3ced3ff" => :el_capitan
    sha256 "2710174b100c657f71006a14a4035b533cd0bc61fd2a7699b46e6bc8a3a530b9" => :yosemite
    sha256 "a3b96531c0c259d802ea34224d642800a6c4ea95d46aa9b88eacfd23d53428df" => :mavericks
  end

  depends_on "libsodium"
  depends_on "cmake" => :build

  def install
    system "cmake", ".", *std_cmake_args
    system "make"
    system "make", "install"
  end

  test do
    (testpath/"homebrew.txt").write "Hello World!"
    (testpath/"keygen.sh").write <<-EOS.undent
      #!/usr/bin/expect -f
      set timeout -1
      spawn #{bin}/minisign -G
      expect -exact "Please enter a password to protect the secret key."
      expect -exact "\n"
      expect -exact "Password: "
      send -- "Homebrew\n"
      expect -exact "\r
      Password (one more time): "
      send -- "Homebrew\n"
      expect eof
{'fraction_non_alphanumeric': 0.10731511254019292, 'fraction_numerical': 0.14429260450160772, 'mean_word_length': 3.405309734513274, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 4, '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': '6157304', 'n_tokens_mistral': 1184, 'n_tokens_neox': 1001, 'n_words': 190}