<commit_before>class Infracost < Formula
  desc "Cost estimates for Terraform"
  homepage "https://www.infracost.io/docs/"
  url "https://github.com/infracost/infracost/archive/v0.7.1.tar.gz"
  sha256 "b28379c767d1c2e94b3824c4ff34223621856b85bcb69ee2de9f9347bae6e51c"
  license "Apache-2.0"
  head "https://github.com/infracost/infracost.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "47c5b1a9e315866817d21dab999de859524cd243f4259e9e3fe871410f220f98" => :catalina
    sha256 "74465deb140a0a80237f67a83101d00da1abdf4e85c6f3511502c8afd5d2e568" => :mojave
    sha256 "602a634754477a0dff66b11eca6316139b8b8c4640b2e4adb3f87f93823b19de" => :high_sierra
  end

  depends_on "go" => :build
  depends_on "terraform" => :test

  def install
    ENV["CGO_ENABLED"] = "0"
    ldflags = "-X github.com/infracost/infracost/internal/version.Version=v#{version}"
    system "go", "build", *std_go_args, "-ldflags", ldflags, "./cmd/infracost"
  end

  test do<commit_msg>infracost: update 0.7.1 bottle.<commit_after>class Infracost < Formula
  desc "Cost estimates for Terraform"
  homepage "https://www.infracost.io/docs/"
  url "https://github.com/infracost/infracost/archive/v0.7.1.tar.gz"
  sha256 "b28379c767d1c2e94b3824c4ff34223621856b85bcb69ee2de9f9347bae6e51c"
  license "Apache-2.0"
  head "https://github.com/infracost/infracost.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "546242ad3b42048aea9a1160178893ae52d11229df0fd4623f29a869b23e6c11" => :catalina
    sha256 "2adb2267baea024818e1f708cf61881a9d38dc86ccc6b99338ff0569ad84f5c4" => :mojave
    sha256 "354f00aa5cbf5fcbf5d9851b4c9ea46af84e3bfe76a49a0783abde11ef31f531" => :high_sierra
  end

  depends_on "go" => :build
  depends_on "terraform" => :test

  def install
    ENV["CGO_ENABLED"] = "0"
    ldflags = "-X github.com/infracost/infracost/internal/version.Version=v#{version}"
    system "go", "build", *std_go_args, "-ldflags", ldflags, "./cmd/infracost"
  end

  test do
{'fraction_non_alphanumeric': 0.11349693251533742, 'fraction_numerical': 0.18762781186094069, 'mean_word_length': 5.1347962382445145, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, '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': '7016620', 'n_tokens_mistral': 1045, 'n_tokens_neox': 866, 'n_words': 112}