<commit_before>class Mpw < Formula
  desc "Master Password for the terminal"
  homepage "https://ssl.masterpasswordapp.com/"
  url "https://ssl.masterpasswordapp.com/mpw-2.1-cli4-0-gf6b2287.tar.gz"
  version "2.1-cli4"
  sha256 "6ea76592eb8214329072d04f651af99d73de188a59ef76975d190569c7fa2b90"

  bottle do
    cellar :any
    rebuild 1
    sha256 "03d033152f2da377654b0dabd823e304827fad58d08ab3c945978f61c5aba5bf" => :sierra
    sha256 "23055a80705a261f15bf1f36cce7919dda62457b06c4af1bc1137ed172aa6844" => :el_capitan
    sha256 "34b22632d5d225bcbc6b24dada0ce2b526c6739b9b0e55e9b1209f265d0a6888" => :yosemite
    sha256 "290586cc77c94562e08977227209e16b9b821cb84e068bcf748b2e0ce07bdb0f" => :mavericks
  end

  depends_on "automake" => :build
  depends_on "autoconf" => :build
  depends_on "openssl"

  resource "libscrypt" do
    url "https://ssl.masterpasswordapp.com/libscrypt-b12b554.tar.gz"
    sha256 "c726daec68a345e420896f005394a948dc5a6924713ed94b684c856d4c247f0b"
  end

  def install
    resource("libscrypt").stage buildpath/"lib/scrypt"
    touch "lib/scrypt/.unpacked"

    ENV["targets"] = "mpw mpw-tests"
    system "./build"
    system "./mpw-tests"

    bin.install "mpw"
  end

  test do
    assert_equal "RoliQeka7/Deqi",
      shell_output("mpw -u user -P password test.com 2>/dev/null").strip
  end
end<commit_msg>mpw: fully scope test shell_output call<commit_after>class Mpw < Formula
  desc "Master Password for the terminal"
  homepage "https://ssl.masterpasswordapp.com/"
  url "https://ssl.masterpasswordapp.com/mpw-2.1-cli4-0-gf6b2287.tar.gz"
  version "2.1-cli4"
  sha256 "6ea76592eb8214329072d04f651af99d73de188a59ef76975d190569c7fa2b90"

  bottle do
    cellar :any
    rebuild 1
    sha256 "03d033152f2da377654b0dabd823e304827fad58d08ab3c945978f61c5aba5bf" => :sierra
    sha256 "23055a80705a261f15bf1f36cce7919dda62457b06c4af1bc1137ed172aa6844" => :el_capitan
    sha256 "34b22632d5d225bcbc6b24dada0ce2b526c6739b9b0e55e9b1209f265d0a6888" => :yosemite
    sha256 "290586cc77c94562e08977227209e16b9b821cb84e068bcf748b2e0ce07bdb0f" => :mavericks
  end

  depends_on "automake" => :build
  depends_on "autoconf" => :build
  depends_on "openssl"

  resource "libscrypt" do
    url "https://ssl.masterpasswordapp.com/libscrypt-b12b554.tar.gz"
    sha256 "c726daec68a345e420896f005394a948dc5a6924713ed94b684c856d4c247f0b"
  end

  def install
    resource("libscrypt").stage buildpath/"lib/scrypt"
    touch "lib/scrypt/.unpacked"

    ENV["targets"] = "mpw mpw-tests"
    system "./build"
    system "./mpw-tests"

    bin.install "mpw"
  end

  test do
    assert_equal "RoliQeka7/Deqi",
      shell_output("#{bin}/mpw -u user -P password test.com 2>/dev/null").strip
  end
end
{'fraction_non_alphanumeric': 0.09937199852234946, 'fraction_numerical': 0.2157369782046546, 'mean_word_length': 4.560574948665297, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 6, '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': '7410272', 'n_tokens_mistral': 1491, 'n_tokens_neox': 1186, 'n_words': 166}