<commit_before>class Gofabric8 < Formula
  desc "CLI for fabric8 running on Kubernetes or OpenShift"
  homepage "https://github.com/fabric8io/gofabric8/"
  url "https://github.com/fabric8io/gofabric8/archive/v0.4.78.tar.gz"
  sha256 "f3b898d979837119b42f7a938ff201719c41691afebc40eb58e905f34806a7e7"

  bottle do
    cellar :any_skip_relocation
    sha256 "2c0e1460853688bab0a42b0dc95e5e4c3e52ed0c04d494b7e45d77e822b3cb71" => :sierra
    sha256 "978fc7003b66a50d037710acba6579d5cbfa39e2141d571a6261aed50939369d" => :el_capitan
    sha256 "38e2f41c21b506f540fbb3845800f85f55359f690728a7a9d05e817eebaa6a77" => :yosemite
  end

  depends_on "go" => :build

  def install
    ENV["GOPATH"] = buildpath
    dir = buildpath/"src/github.com/fabric8io/gofabric8"
    dir.install buildpath.children

    cd dir do
      system "make", "install", "REV=homebrew"
    end

    bin.install "bin/gofabric8"
  end

  test do
    Open3.popen3("#{bin}/gofabric8", "version") do |stdin, stdout, _|<commit_msg>gofabric8 0.4.103<commit_after>class Gofabric8 < Formula
  desc "CLI for fabric8 running on Kubernetes or OpenShift"
  homepage "https://github.com/fabric8io/gofabric8/"
  url "https://github.com/fabric8io/gofabric8/archive/v0.4.103.tar.gz"
  sha256 "9403171188d8ae5210d7469d56e42a45e812e88ea8c567505be887453c0d17da"

  bottle do
    cellar :any_skip_relocation
    sha256 "2c0e1460853688bab0a42b0dc95e5e4c3e52ed0c04d494b7e45d77e822b3cb71" => :sierra
    sha256 "978fc7003b66a50d037710acba6579d5cbfa39e2141d571a6261aed50939369d" => :el_capitan
    sha256 "38e2f41c21b506f540fbb3845800f85f55359f690728a7a9d05e817eebaa6a77" => :yosemite
  end

  depends_on "go" => :build

  def install
    ENV["GOPATH"] = buildpath
    dir = buildpath/"src/github.com/fabric8io/gofabric8"
    dir.install buildpath.children

    cd dir do
      system "make", "install", "REV=homebrew"
    end

    bin.install "bin/gofabric8"
  end

  test do
    Open3.popen3("#{bin}/gofabric8", "version") do |stdin, stdout, _|
{'fraction_non_alphanumeric': 0.0976346250629089, 'fraction_numerical': 0.2038248616004026, 'mean_word_length': 4.712643678160919, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6570864', 'n_tokens_mistral': 1090, 'n_tokens_neox': 879, 'n_words': 123}