<commit_before>class GopassJsonapi < Formula
  desc "Gopass Browser Bindings"
  homepage "https://github.com/gopasspw/gopass-jsonapi"
  url "https://github.com/gopasspw/gopass-jsonapi/releases/download/v1.14.11/gopass-jsonapi-1.14.11.tar.gz"
  sha256 "afb6053bd6bd628dcdef5deeb364fcabfe7830d4519b5ea71a3763cf7588760f"
  license "MIT"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_ventura:  "e0847ae52977ce2f89abcda47334bd6d0b66db67827f96e133e551857c530eaa"
    sha256 cellar: :any_skip_relocation, arm64_monterey: "d33ccae2d44dcd361c74abb236f9b75e43106780f98250b1d96df7adf4ed3f0d"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "a7929302fb1f38c263e59319480d8383a281b03e241e3a5536571a04737e6974"
    sha256 cellar: :any_skip_relocation, monterey:       "7b4f06fe30c117903f115caa12c7003c4132e57396e6ba6f937edaebaaee75b9"
    sha256 cellar: :any_skip_relocation, big_sur:        "361cce1f75914245c62581fc99125c8d1c2b241b91946ac8949ef7e25fd97be5"
    sha256 cellar: :any_skip_relocation, catalina:       "b82a33a9775e3170e3e2f933ce295d7c56bccc0e45d4c8b6648e0d9a5e842633"
  end

  depends_on "go" => :build
  depends_on "gopass"

  def install
    system "go", "build", *std_go_args(ldflags: "-s -w -X main.version=#{version}")
  end

  test do
    (testpath/"batch.gpg").write <<~EOS
      Key-Type: RSA
      Key-Length: 2048<commit_msg>gopass-jsonapi: update 1.14.11 bottle.<commit_after>class GopassJsonapi < Formula
  desc "Gopass Browser Bindings"
  homepage "https://github.com/gopasspw/gopass-jsonapi"
  url "https://github.com/gopasspw/gopass-jsonapi/releases/download/v1.14.11/gopass-jsonapi-1.14.11.tar.gz"
  sha256 "afb6053bd6bd628dcdef5deeb364fcabfe7830d4519b5ea71a3763cf7588760f"
  license "MIT"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_ventura:  "5995642a3234734e39d7e9c5e13e4c92a7ebddce12b86a947d4bc17bde7b080b"
    sha256 cellar: :any_skip_relocation, arm64_monterey: "14c39192b7ec1ddd0cf1844ab00572507d01ce43743e736395fe212ff828695b"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "d3de43e66243acd4362e56ba117b5abd294883b26e730a4e76c0f7affdb726aa"
    sha256 cellar: :any_skip_relocation, monterey:       "f493c674d668a1e00a38896d2aae81bf17ca2df383e60f9dc817a25949c65759"
    sha256 cellar: :any_skip_relocation, big_sur:        "7dd1b409a6273150a1d254e408620d4e23321e5e2255880cc2322372b69ddc7c"
    sha256 cellar: :any_skip_relocation, catalina:       "625285b45df9135f50231165e8f24203f3a3d4a81f81532d44a093814d1170e9"
  end

  depends_on "go" => :build
  depends_on "gopass"

  def install
    system "go", "build", *std_go_args(ldflags: "-s -w -X main.version=#{version}")
  end

  test do
    (testpath/"batch.gpg").write <<~EOS
      Key-Type: RSA
      Key-Length: 2048
{'fraction_non_alphanumeric': 0.08719445457862095, 'fraction_numerical': 0.24078803356439255, 'mean_word_length': 5.753694581280788, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, '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': '2194535', 'n_tokens_mistral': 1595, 'n_tokens_neox': 1241, 'n_words': 146}