<commit_before>class Flyctl < Formula
  desc "Command-line tools for fly.io services"
  homepage "https://fly.io"
  url "https://github.com/superfly/flyctl.git",
      tag:      "v0.0.389",
      revision: "b82ec99e957138a3d518a29d5dc84b188c0238dd"
  license "Apache-2.0"
  head "https://github.com/superfly/flyctl.git", branch: "master"

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

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "80095e2ce0a1fa945cb1c48d2d8819e7d3303f345f7413312a78b55f166d5dd9"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "80095e2ce0a1fa945cb1c48d2d8819e7d3303f345f7413312a78b55f166d5dd9"
    sha256 cellar: :any_skip_relocation, monterey:       "3b9694e3b2771625a26536a7fbdf2521c8d40b4bbd9d2c8c540beaee3f9aeedf"
    sha256 cellar: :any_skip_relocation, big_sur:        "3b9694e3b2771625a26536a7fbdf2521c8d40b4bbd9d2c8c540beaee3f9aeedf"
    sha256 cellar: :any_skip_relocation, catalina:       "3b9694e3b2771625a26536a7fbdf2521c8d40b4bbd9d2c8c540beaee3f9aeedf"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "2d9bda4d829db4f23ea181a97e7480688cb5fcb236560b4bcd2ea481794e41ac"
  end

  # Required latest gvisor.dev/gvisor/pkg/gohacks
  # Try to switch to the latest go on the next release
  depends_on "go@1.18" => :build

  def install
    ENV["CGO_ENABLED"] = "0"
    ldflags = %W[
      -s -w
      -X github.com/superfly/flyctl/internal/buildinfo.environment=production
      -X github.com/superfly/flyctl/internal/buildinfo.buildDate=#{time.iso8601}
      -X github.com/superfly/flyctl/internal/buildinfo.version=#{version}
      -X github.com/superfly/flyctl/internal/buildinfo.commit=#{Utils.git_short_head}
    ]
    system "go", "build", *std_go_args(ldflags: ldflags)

    bin.install_symlink "flyctl" => "fly"

    generate_completions_from_executable(bin/"flyctl", "completion")<commit_msg>flyctl: update 0.0.389 bottle.<commit_after>class Flyctl < Formula
  desc "Command-line tools for fly.io services"
  homepage "https://fly.io"
  url "https://github.com/superfly/flyctl.git",
      tag:      "v0.0.389",
      revision: "b82ec99e957138a3d518a29d5dc84b188c0238dd"
  license "Apache-2.0"
  head "https://github.com/superfly/flyctl.git", branch: "master"

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

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "7d1196370db9452df29be743273cfd1d6bf77cca1930e3ae0b3f300552b260a8"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "7d1196370db9452df29be743273cfd1d6bf77cca1930e3ae0b3f300552b260a8"
    sha256 cellar: :any_skip_relocation, monterey:       "6e3e74c34da25e1d9f46fc5309bd513400f142c2e8e7bdc274bbf0591f8e8e25"
    sha256 cellar: :any_skip_relocation, big_sur:        "6e3e74c34da25e1d9f46fc5309bd513400f142c2e8e7bdc274bbf0591f8e8e25"
    sha256 cellar: :any_skip_relocation, catalina:       "6e3e74c34da25e1d9f46fc5309bd513400f142c2e8e7bdc274bbf0591f8e8e25"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "fb2a6177c3a3412367141102b9ad06c8c3714ba28649b7cdfd28856ebe0e50b2"
  end

  # Required latest gvisor.dev/gvisor/pkg/gohacks
  # Try to switch to the latest go on the next release
  depends_on "go@1.18" => :build

  def install
    ENV["CGO_ENABLED"] = "0"
    ldflags = %W[
      -s -w
      -X github.com/superfly/flyctl/internal/buildinfo.environment=production
      -X github.com/superfly/flyctl/internal/buildinfo.buildDate=#{time.iso8601}
      -X github.com/superfly/flyctl/internal/buildinfo.version=#{version}
      -X github.com/superfly/flyctl/internal/buildinfo.commit=#{Utils.git_short_head}
    ]
    system "go", "build", *std_go_args(ldflags: ldflags)

    bin.install_symlink "flyctl" => "fly"

    generate_completions_from_executable(bin/"flyctl", "completion")
{'fraction_non_alphanumeric': 0.10681399631675875, 'fraction_numerical': 0.16022099447513813, 'mean_word_length': 4.6159527326440175, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5957311', 'n_tokens_mistral': 1917, 'n_tokens_neox': 1607, 'n_words': 212}