<commit_before>class Teleport < Formula
  desc "Modern SSH server for teams managing distributed infrastructure"
  homepage "https://gravitational.com/teleport"
  url "https://github.com/gravitational/teleport/archive/v10.3.1.tar.gz"
  sha256 "1546a7ad535732fd6d6e80d54bca31b6f02195cf5f58b6930801a1b457d47516"
  license "Apache-2.0"
  head "https://github.com/gravitational/teleport.git", branch: "master"

  # We check the Git tags instead of using the `GithubLatest` strategy, as the
  # "latest" version can be incorrect. As of writing, two major versions of
  # `teleport` are being maintained side by side and the "latest" tag can point
  # to a release from the older major version.
  livecheck do
    url :stable
    regex(/^v?(\d+(?:\.\d+)+)$/i)
  end

  bottle do
    sha256 cellar: :any,                 arm64_monterey: "b9464d2d0014b41691c38591c20436c066a63f7bc59f9b682b03cae4e7736e13"
    sha256 cellar: :any,                 arm64_big_sur:  "ee0b44f52867c0b1cd604ba9aeff75371b88a202aa23e22eb961651ef7473ee8"
    sha256 cellar: :any,                 monterey:       "971f976f40ce6c9dc3a176a0a1e194b115b94dd4d52a4f1018c1d7a26c37afec"
    sha256 cellar: :any,                 big_sur:        "d94e4259bca60f964aed4dbb4f56ce8587e4688eef86d7b1d2dfc0b5aae6cb2f"
    sha256 cellar: :any,                 catalina:       "09e508d63dac34929587d250adafd12b8c36b72e2ed51c47f3a0b15397c3e8e0"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "b4f900afaace691d303ce9aca6b5af9ea61682eaa06abf11a8fa6fd4f075ff71"
  end

  depends_on "go" => :build
  depends_on "pkg-config" => :build
  depends_on "libfido2"

  uses_from_macos "curl" => :test
  uses_from_macos "netcat" => :test
  uses_from_macos "zip"

  conflicts_with "etsh", because: "both install `tsh` binaries"

  # Keep this in sync with https://github.com/gravitational/teleport/tree/v#{version}
  resource "webassets" do
    url "https://github.com/gravitational/webassets/archive/6710dcd0dc19ad101bac3259c463ef940f2ab1f3.tar.gz"
    sha256 "29115a3be8f570dd0951484435fa56166d7fa352f18399e8d20f5ba8242f11f7"
  end

  def install
    (buildpath/"webassets").install resource("webassets")<commit_msg>teleport 10.3.2<commit_after>class Teleport < Formula
  desc "Modern SSH server for teams managing distributed infrastructure"
  homepage "https://gravitational.com/teleport"
  url "https://github.com/gravitational/teleport/archive/v10.3.2.tar.gz"
  sha256 "e830ceb17cd27b61cb50f1aadf87697179f714b2f9ff81fff0746b41c9d70845"
  license "Apache-2.0"
  head "https://github.com/gravitational/teleport.git", branch: "master"

  # We check the Git tags instead of using the `GithubLatest` strategy, as the
  # "latest" version can be incorrect. As of writing, two major versions of
  # `teleport` are being maintained side by side and the "latest" tag can point
  # to a release from the older major version.
  livecheck do
    url :stable
    regex(/^v?(\d+(?:\.\d+)+)$/i)
  end

  bottle do
    sha256 cellar: :any,                 arm64_monterey: "b9464d2d0014b41691c38591c20436c066a63f7bc59f9b682b03cae4e7736e13"
    sha256 cellar: :any,                 arm64_big_sur:  "ee0b44f52867c0b1cd604ba9aeff75371b88a202aa23e22eb961651ef7473ee8"
    sha256 cellar: :any,                 monterey:       "971f976f40ce6c9dc3a176a0a1e194b115b94dd4d52a4f1018c1d7a26c37afec"
    sha256 cellar: :any,                 big_sur:        "d94e4259bca60f964aed4dbb4f56ce8587e4688eef86d7b1d2dfc0b5aae6cb2f"
    sha256 cellar: :any,                 catalina:       "09e508d63dac34929587d250adafd12b8c36b72e2ed51c47f3a0b15397c3e8e0"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "b4f900afaace691d303ce9aca6b5af9ea61682eaa06abf11a8fa6fd4f075ff71"
  end

  depends_on "go" => :build
  depends_on "pkg-config" => :build
  depends_on "libfido2"

  uses_from_macos "curl" => :test
  uses_from_macos "netcat" => :test
  uses_from_macos "zip"

  conflicts_with "etsh", because: "both install `tsh` binaries"

  # Keep this in sync with https://github.com/gravitational/teleport/tree/v#{version}
  resource "webassets" do
    url "https://github.com/gravitational/webassets/archive/c4f689e451bc0b389ec3b8833b33997fa55d949c.tar.gz"
    sha256 "6df41b234508bdf086cfb523247397a0b1d54642fe8d18a09d5a9353d1cbb67a"
  end

  def install
    (buildpath/"webassets").install resource("webassets")
{'fraction_non_alphanumeric': 0.08830328247803976, 'fraction_numerical': 0.17337031900138697, 'mean_word_length': 4.225845410628019, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 10, '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': '3665933', 'n_tokens_mistral': 2109, 'n_tokens_neox': 1741, 'n_words': 300}