<commit_before>class ArgocdVaultPlugin < Formula
  desc "Argo CD plugin to retrieve secrets from Secret Management tools"
  homepage "https://ibm.github.io/argocd-vault-plugin"
  url "https://github.com/IBM/argocd-vault-plugin.git",
      tag:      "v1.4.0",
      revision: "60fed6f08b363f92d61760f48ac80da704f5c1c5"
  license "Apache-2.0"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "7f935402de3f17764fdb9aa9e7c21af41934d8506331fa553a8b3670dde9796f"
    sha256 cellar: :any_skip_relocation, big_sur:       "d2e4d0929510b6c8e789a68e7776044ee0983a1e0340c6639141f2aa81ac5e32"
    sha256 cellar: :any_skip_relocation, catalina:      "d2e4d0929510b6c8e789a68e7776044ee0983a1e0340c6639141f2aa81ac5e32"
    sha256 cellar: :any_skip_relocation, mojave:        "d2e4d0929510b6c8e789a68e7776044ee0983a1e0340c6639141f2aa81ac5e32"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "e1c1ee60e7722163d06abe33c84e070ed9a3ac509a9fdd9be05aa3c059bf0fc9"
  end

  depends_on "go" => :build

  def install
    ENV["CGO_ENABLED"] = "0"

    ldflags = %W[
      -s -w
      -X github.com/IBM/argocd-vault-plugin/version.Version=#{version}
      -X github.com/IBM/argocd-vault-plugin/version.BuildDate=#{time.iso8601}
      -X github.com/IBM/argocd-vault-plugin/version.CommitSHA=#{Utils.git_head}
    ].join(" ")

    system "go", "build", *std_go_args(ldflags: ldflags)
  end

  test do
    assert_match "This is a plugin to replace <placeholders> with Vault secrets",
      shell_output("#{bin}/argocd-vault-plugin --help")

    touch testpath/"empty.yaml"
    assert_match "Error: Must provide a supported Vault Type",
      shell_output("#{bin}/argocd-vault-plugin generate ./empty.yaml 2>&1", 1)
  end
end
<commit_msg>argocd-vault-plugin: update 1.4.0 bottle.<commit_after>class ArgocdVaultPlugin < Formula
  desc "Argo CD plugin to retrieve secrets from Secret Management tools"
  homepage "https://ibm.github.io/argocd-vault-plugin"
  url "https://github.com/IBM/argocd-vault-plugin.git",
      tag:      "v1.4.0",
      revision: "60fed6f08b363f92d61760f48ac80da704f5c1c5"
  license "Apache-2.0"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "04b9d771f1ff42037fdc6111df4c9f2bafece06efd7ab0c7784dc345fbc4afdd"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "7f935402de3f17764fdb9aa9e7c21af41934d8506331fa553a8b3670dde9796f"
    sha256 cellar: :any_skip_relocation, monterey:       "a95fc28897cdb541d5445a94c36952854d11aa9dd89435601fa61812399468ff"
    sha256 cellar: :any_skip_relocation, big_sur:        "d2e4d0929510b6c8e789a68e7776044ee0983a1e0340c6639141f2aa81ac5e32"
    sha256 cellar: :any_skip_relocation, catalina:       "d2e4d0929510b6c8e789a68e7776044ee0983a1e0340c6639141f2aa81ac5e32"
    sha256 cellar: :any_skip_relocation, mojave:         "d2e4d0929510b6c8e789a68e7776044ee0983a1e0340c6639141f2aa81ac5e32"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "e1c1ee60e7722163d06abe33c84e070ed9a3ac509a9fdd9be05aa3c059bf0fc9"
  end

  depends_on "go" => :build

  def install
    ENV["CGO_ENABLED"] = "0"

    ldflags = %W[
      -s -w
      -X github.com/IBM/argocd-vault-plugin/version.Version=#{version}
      -X github.com/IBM/argocd-vault-plugin/version.BuildDate=#{time.iso8601}
      -X github.com/IBM/argocd-vault-plugin/version.CommitSHA=#{Utils.git_head}
    ].join(" ")

    system "go", "build", *std_go_args(ldflags: ldflags)
  end

  test do
    assert_match "This is a plugin to replace <placeholders> with Vault secrets",
      shell_output("#{bin}/argocd-vault-plugin --help")

    touch testpath/"empty.yaml"
    assert_match "Error: Must provide a supported Vault Type",
      shell_output("#{bin}/argocd-vault-plugin generate ./empty.yaml 2>&1", 1)
  end
end

{'fraction_non_alphanumeric': 0.10242731395038678, 'fraction_numerical': 0.1680448119498533, 'mean_word_length': 4.482456140350878, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '6319209', 'n_tokens_mistral': 1901, 'n_tokens_neox': 1576, 'n_words': 229}