<commit_before>class Brev < Formula
  desc "CLI tool for managing workspaces provided by brev.dev"
  homepage "https://docs.brev.dev"
  url "https://github.com/brevdev/brev-cli/archive/refs/tags/v0.6.110.tar.gz"
  sha256 "da813da961eef14af42d3a733e61e76d1a5ee4e5aba23c720e20967e3fa0ba14"
  license "MIT"

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

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "e52e3ff01ce9c55e391ee6cad4f2858936f7941a8769be7d309f905fad6e73d3"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "5e0078dac44a510ad57149e0b19527a91adf2aee53a4e983db681076416c8630"
    sha256 cellar: :any_skip_relocation, monterey:       "a06688abd982fe78d3345d2b6b19f9592d8261e29a728b7ec46ec2785bcb7d3f"
    sha256 cellar: :any_skip_relocation, big_sur:        "02418cd0024d0f9d8550b445fa371b513d70cd752a38b1fbe4da48e6b4370c9a"
    sha256 cellar: :any_skip_relocation, catalina:       "d5476f3bc1550671d4571826145da35a281b6e64e4d1899a9471ee7ed0bf690f"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "904e3f00e364ada41a200fc48ed9b1d4f32d88a0f37c00796a56249eba567060"
  end

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

  def install
    ldflags = "-X github.com/brevdev/brev-cli/pkg/cmd/version.Version=v#{version}"
    system "go", "build", *std_go_args(ldflags: ldflags)
  end

  test do
    system bin/"brev", "healthcheck"
  end
end<commit_msg>brev: add completions<commit_after>class Brev < Formula
  desc "CLI tool for managing workspaces provided by brev.dev"
  homepage "https://docs.brev.dev"
  url "https://github.com/brevdev/brev-cli/archive/refs/tags/v0.6.110.tar.gz"
  sha256 "da813da961eef14af42d3a733e61e76d1a5ee4e5aba23c720e20967e3fa0ba14"
  license "MIT"

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

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "e52e3ff01ce9c55e391ee6cad4f2858936f7941a8769be7d309f905fad6e73d3"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "5e0078dac44a510ad57149e0b19527a91adf2aee53a4e983db681076416c8630"
    sha256 cellar: :any_skip_relocation, monterey:       "a06688abd982fe78d3345d2b6b19f9592d8261e29a728b7ec46ec2785bcb7d3f"
    sha256 cellar: :any_skip_relocation, big_sur:        "02418cd0024d0f9d8550b445fa371b513d70cd752a38b1fbe4da48e6b4370c9a"
    sha256 cellar: :any_skip_relocation, catalina:       "d5476f3bc1550671d4571826145da35a281b6e64e4d1899a9471ee7ed0bf690f"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "904e3f00e364ada41a200fc48ed9b1d4f32d88a0f37c00796a56249eba567060"
  end

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

  def install
    ldflags = "-X github.com/brevdev/brev-cli/pkg/cmd/version.Version=v#{version}"
    system "go", "build", *std_go_args(ldflags: ldflags)

    generate_completions_from_executable(bin/"brev", "completion")
  end

  test do
    system bin/"brev", "healthcheck"
  end
end
{'fraction_non_alphanumeric': 0.09134007585335019, 'fraction_numerical': 0.20353982300884957, 'mean_word_length': 5.267326732673268, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '56793', 'n_tokens_mistral': 1735, 'n_tokens_neox': 1379, 'n_words': 197}