<commit_before>require "language/node"

class Terrahub < Formula
  desc "Terraform automation and orchestration tool"
  homepage "https://docs.terrahub.io"
  url "https://registry.npmjs.org/terrahub/-/terrahub-0.5.6.tgz"
  sha256 "a9d6eda1ccc5acb317a62e97d40aac47ba00f8fcbcc9f40ff456d6350b86c463"
  license "MPL-2.0"

  livecheck do
    url "https://registry.npmjs.org/terrahub/latest"
    regex(/"version":\s*?"([^"]+)"/i)
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "06c1650e2da7ea8fbde4037d522497d5f5a82e9565983610253723140e43df09"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "1258000ba0fcea8aacae546c1623b98858cbcdcf3bef406a58271134bb4b3fe6"
    sha256 cellar: :any_skip_relocation, monterey:       "795adda61afd8b014682543f6272e14bf269fa91890c33bd0b182f9bfcd5cb3d"
    sha256 cellar: :any_skip_relocation, big_sur:        "c32fed79f29e9f9dfc5ca06ff95fee401fc12be011e424102bb7cdd1fadaeb92"
    sha256 cellar: :any_skip_relocation, catalina:       "c32fed79f29e9f9dfc5ca06ff95fee401fc12be011e424102bb7cdd1fadaeb92"
    sha256 cellar: :any_skip_relocation, mojave:         "c32fed79f29e9f9dfc5ca06ff95fee401fc12be011e424102bb7cdd1fadaeb92"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "1258000ba0fcea8aacae546c1623b98858cbcdcf3bef406a58271134bb4b3fe6"
  end

  depends_on "node"

  def install
    system "npm", "install", *Language::Node.std_npm_install_args(libexec)
    bin.install_symlink Dir["#{libexec}/bin/*"]
  end

  test do<commit_msg>terrahub: update 0.5.6 bottle.<commit_after>require "language/node"

class Terrahub < Formula
  desc "Terraform automation and orchestration tool"
  homepage "https://docs.terrahub.io"
  url "https://registry.npmjs.org/terrahub/-/terrahub-0.5.6.tgz"
  sha256 "a9d6eda1ccc5acb317a62e97d40aac47ba00f8fcbcc9f40ff456d6350b86c463"
  license "MPL-2.0"

  livecheck do
    url "https://registry.npmjs.org/terrahub/latest"
    regex(/"version":\s*?"([^"]+)"/i)
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "789268e0bba0906de4628714931d067d6fa90c8cd5a3f04987546227aa8490fe"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "789268e0bba0906de4628714931d067d6fa90c8cd5a3f04987546227aa8490fe"
    sha256 cellar: :any_skip_relocation, monterey:       "14e33898a766960658e4c91ab8f86b95259593ee7002a08fc1a9ec7a4383b940"
    sha256 cellar: :any_skip_relocation, big_sur:        "14e33898a766960658e4c91ab8f86b95259593ee7002a08fc1a9ec7a4383b940"
    sha256 cellar: :any_skip_relocation, catalina:       "14e33898a766960658e4c91ab8f86b95259593ee7002a08fc1a9ec7a4383b940"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "789268e0bba0906de4628714931d067d6fa90c8cd5a3f04987546227aa8490fe"
  end

  depends_on "node"

  def install
    system "npm", "install", *Language::Node.std_npm_install_args(libexec)
    bin.install_symlink Dir["#{libexec}/bin/*"]
  end

  test do
{'fraction_non_alphanumeric': 0.09031368493622889, 'fraction_numerical': 0.22819717338848672, 'mean_word_length': 5.942583732057416, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 3, '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': '6157339', 'n_tokens_mistral': 1634, 'n_tokens_neox': 1274, 'n_words': 149}