<commit_before>class Atlantis < Formula
  desc "Terraform Pull Request Automation tool"
  homepage "https://www.runatlantis.io/"
  url "https://github.com/runatlantis/atlantis/archive/v0.19.9.tar.gz"
  sha256 "98e1f0f6b721fd3744eb4213673e842388956fad36cab5d91906b9ec2464d8d7"
  license "Apache-2.0"
  head "https://github.com/runatlantis/atlantis.git", branch: "master"

  livecheck do
    url :stable
    regex(/^v?(\d+(?:\.\d+)+)$/i)
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "43dd16991f6bac05a0bb05db52c27f64a36a2aed987f9a7826a663921a5fb822"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "fc50a0eb348c43ff20b5617481107f5039367207849254dac139a80ffdb98acd"
    sha256 cellar: :any_skip_relocation, monterey:       "feaef126eb624f4a14bf3512d29880c2239346bbe752f0ec2087824042182715"
    sha256 cellar: :any_skip_relocation, big_sur:        "123f85370b232a626dec386b642d793e446a94a01cb5935191e05af0fcf8aece"
    sha256 cellar: :any_skip_relocation, catalina:       "f8e169662b04a87beba6db56b667f475aa75e32a6dea1d7fb439a07ae3cc358a"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "024d68349c5631a01f076ad6f2eb2d258b1ef32686ef795029b8458decc6acbb"
  end

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

  def install
    system "go", "build", *std_go_args(ldflags: "-s -w")
  end

  test do
    system bin/"atlantis", "version"
    port = free_port
    loglevel = "info"
    gh_args = "--gh-user INVALID --gh-token INVALID --gh-webhook-secret INVALID --repo-allowlist INVALID"
    command = bin/"atlantis server --atlantis-url http://invalid/ --port #{port} #{gh_args} --log-level #{loglevel}"
    pid = Process.spawn(command)
    system "sleep", "5"<commit_msg>atlantis: update 0.19.9 bottle.<commit_after>class Atlantis < Formula
  desc "Terraform Pull Request Automation tool"
  homepage "https://www.runatlantis.io/"
  url "https://github.com/runatlantis/atlantis/archive/v0.19.9.tar.gz"
  sha256 "98e1f0f6b721fd3744eb4213673e842388956fad36cab5d91906b9ec2464d8d7"
  license "Apache-2.0"
  head "https://github.com/runatlantis/atlantis.git", branch: "master"

  livecheck do
    url :stable
    regex(/^v?(\d+(?:\.\d+)+)$/i)
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "5d5e27d20856a3bde41231a9a8d7275b28e52a94980a870985ef90003a151f00"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "5cf65246a23c47b4d13fae770932f52014468d4a05c0be894bbb2e3c6edce27b"
    sha256 cellar: :any_skip_relocation, monterey:       "b023d62b5d92cb0c18729915d871c46cffb325fce6eadd2ae487d56a77b27072"
    sha256 cellar: :any_skip_relocation, big_sur:        "65c3b11a5edd5b37b6a069929b32c80073363aff02cd09eeec881a5855a87b0a"
    sha256 cellar: :any_skip_relocation, catalina:       "754760700ca85da0e8e8bb6db060d5311a27147b7ed09e3c50fac1e5d7da9bde"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "d1f8da1b30dbb0bb193a55ababd05b63c49987ec44caf84370aa6bee1f606a4a"
  end

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

  def install
    system "go", "build", *std_go_args(ldflags: "-s -w")
  end

  test do
    system bin/"atlantis", "version"
    port = free_port
    loglevel = "info"
    gh_args = "--gh-user INVALID --gh-token INVALID --gh-webhook-secret INVALID --repo-allowlist INVALID"
    command = bin/"atlantis server --atlantis-url http://invalid/ --port #{port} #{gh_args} --log-level #{loglevel}"
    pid = Process.spawn(command)
    system "sleep", "5"
{'fraction_non_alphanumeric': 0.10821759259259259, 'fraction_numerical': 0.18547453703703703, 'mean_word_length': 4.829679595278246, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '613556', 'n_tokens_mistral': 1829, 'n_tokens_neox': 1466, 'n_words': 216}