<commit_before>class Terrahelp < Formula
  desc "Tool providing extra functionality for Terraform"
  homepage "https://github.com/opencredo/terrahelp"
  url "https://github.com/opencredo/terrahelp/archive/v0.7.4.tar.gz"
  sha256 "2d70b6471bfb4b9c8ff3bb12050ecedca8d39830fa221bf8c319a1b6144ee6e5"
  license "Apache-2.0"
  head "https://github.com/opencredo/terrahelp.git"

  bottle do
    cellar :any_skip_relocation
    rebuild 1
    sha256 "58044fae3de9a59f2420d65923e6d2619b91d026e45a1a6629699b11f9afa5be" => :big_sur
    sha256 "e8edbc804fa080128c6fdad4182eae24e3679c846bb03cfc7c71b56bba1e983a" => :catalina
    sha256 "7ba4bc44de9efe372c14e80ecb0eeed2f6b634fb1e49fa66768db616200206b8" => :mojave
  end

  depends_on "go" => :build

  def install
    system "go", "build", *std_go_args, "-mod=vendor"
  end

  test do
    tf_vars = testpath/"terraform.tfvars"
    tf_vars.write <<~EOS
      tf_sensitive_key_1         = "sensitive-value-1-AK#%DJGHS*G"
    EOS<commit_msg>terrahelp: update 0.7.4 bottle.<commit_after>class Terrahelp < Formula
  desc "Tool providing extra functionality for Terraform"
  homepage "https://github.com/opencredo/terrahelp"
  url "https://github.com/opencredo/terrahelp/archive/v0.7.4.tar.gz"
  sha256 "2d70b6471bfb4b9c8ff3bb12050ecedca8d39830fa221bf8c319a1b6144ee6e5"
  license "Apache-2.0"
  head "https://github.com/opencredo/terrahelp.git"

  bottle do
    cellar :any_skip_relocation
    rebuild 1
    sha256 "58044fae3de9a59f2420d65923e6d2619b91d026e45a1a6629699b11f9afa5be" => :big_sur
    sha256 "be14ceca5a50701b09d86ccf224def6bc98f9151847240068d3667c6e62a47a5" => :arm64_big_sur
    sha256 "e8edbc804fa080128c6fdad4182eae24e3679c846bb03cfc7c71b56bba1e983a" => :catalina
    sha256 "7ba4bc44de9efe372c14e80ecb0eeed2f6b634fb1e49fa66768db616200206b8" => :mojave
  end

  depends_on "go" => :build

  def install
    system "go", "build", *std_go_args, "-mod=vendor"
  end

  test do
    tf_vars = testpath/"terraform.tfvars"
    tf_vars.write <<~EOS
      tf_sensitive_key_1         = "sensitive-value-1-AK#%DJGHS*G"
    EOS
{'fraction_non_alphanumeric': 0.09553831231813772, 'fraction_numerical': 0.18768186226964112, 'mean_word_length': 4.778711484593837, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 12, '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': '5731388', 'n_tokens_mistral': 1103, 'n_tokens_neox': 921, 'n_words': 117}