<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.18.5",
      :revision => "2415bca83fbfed16a74ed718dee5aae6d9c21f92"
  head "https://github.com/solo-io/gloo.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "33dca4e5ce2feba84b5f3b1f0e5b274023b7fd0ea4c6047b298c26a53b9dbb20" => :mojave
    sha256 "9f536dd76a5135d68e3110b0adfdda1c8a406fd2fbc08501e512680463a393d0" => :high_sierra
    sha256 "dbbde8a4a346628b700d6cba19f352db4790dcdface0573c56415c4bb8434636" => :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}"
      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

    version_output = shell_output("#{bin}/glooctl --version 2>&1")
    assert_match "glooctl community edition version #{version}", version_output<commit_msg>glooctl 0.18.7<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.18.7",
      :revision => "191bc839b81d9705d11b689667c2d23e25567a36"
  head "https://github.com/solo-io/gloo.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "33dca4e5ce2feba84b5f3b1f0e5b274023b7fd0ea4c6047b298c26a53b9dbb20" => :mojave
    sha256 "9f536dd76a5135d68e3110b0adfdda1c8a406fd2fbc08501e512680463a393d0" => :high_sierra
    sha256 "dbbde8a4a346628b700d6cba19f352db4790dcdface0573c56415c4bb8434636" => :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}"
      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

    version_output = shell_output("#{bin}/glooctl --version 2>&1")
    assert_match "glooctl community edition version #{version}", version_output
{'fraction_non_alphanumeric': 0.12243316543975204, 'fraction_numerical': 0.12243316543975204, 'mean_word_length': 4.04296875, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '1155680', 'n_tokens_mistral': 1238, 'n_tokens_neox': 1051, 'n_words': 172}