<commit_before>class GlooCtl < Formula
  desc "Envoy-Powered API Gateway"
  homepage "https://gloo.solo.io"
  url "https://github.com/solo-io/gloo.git",
      :tag      => "v0.8.3",
      :revision => "0e749d0fd9b41f8606dca85b70f0a9981cb0d5ca"

  depends_on "dep" => :build
  depends_on "go" => :build

  def install
    ENV["GOPATH"] = buildpath
    dir = buildpath/"src/github.com/solo-io/gloo"
    dir.install buildpath.children - [buildpath/".brew_home"]

    cd dir do
      system "dep", "ensure", "-vendor-only"
      system "make", "glooctl", "TAGGED_VERSION=v#{version}", "RELEASE=false"
      bin.install "_output/glooctl"
    end
  end

  test do
    run_output = shell_output("#{bin}/glooctl 2>&1")
    assert_match "glooctl is the unified CLI for Gloo.", run_output
<commit_msg>gloo-ctl: add 0.8.3 bottle.<commit_after>class GlooCtl < Formula
  desc "Envoy-Powered API Gateway"
  homepage "https://gloo.solo.io"
  url "https://github.com/solo-io/gloo.git",
      :tag      => "v0.8.3",
      :revision => "0e749d0fd9b41f8606dca85b70f0a9981cb0d5ca"

  bottle do
    cellar :any_skip_relocation
    sha256 "f02d27980329ca2062f7e40d25039ba12ff742df29673cd5c863f0e8412bb7ad" => :mojave
    sha256 "94e899341c9ff3de2063edf03d9268eb3653f3b6062c3406f07815f3bf354086" => :high_sierra
    sha256 "b88446a61f585fafe883b516f349fd4c33b5d39acbafbf9f7e11da084b1f5014" => :sierra
  end

  depends_on "dep" => :build
  depends_on "go" => :build

  def install
    ENV["GOPATH"] = buildpath
    dir = buildpath/"src/github.com/solo-io/gloo"
    dir.install buildpath.children - [buildpath/".brew_home"]

    cd dir do
      system "dep", "ensure", "-vendor-only"
      system "make", "glooctl", "TAGGED_VERSION=v#{version}", "RELEASE=false"
      bin.install "_output/glooctl"
    end
  end

  test do
    run_output = shell_output("#{bin}/glooctl 2>&1")
    assert_match "glooctl is the unified CLI for Gloo.", run_output

{'fraction_non_alphanumeric': 0.13183949973944764, 'fraction_numerical': 0.10005211047420531, 'mean_word_length': 3.6601941747572817, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, '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': '5032779', 'n_tokens_mistral': 895, 'n_tokens_neox': 778, 'n_words': 137}