<commit_before>class OperatorSdk < Formula
  desc "SDK for building Kubernetes applications"
  homepage "https://coreos.com/operators/"
  url "https://github.com/operator-framework/operator-sdk.git",
      :tag      => "v0.17.1",
      :revision => "bb0c8f0108d1fd1be896d66c2d9e9044f10565a0"
  head "https://github.com/operator-framework/operator-sdk.git"

  bottle do
    sha256 "f0c7596d6a0c850b032cdc9bce51483859b6b51a2a07442934369e42aa5fe5d7" => :catalina
    sha256 "6f9a1e273a9028b835bcb108fc2e56c0f7ea6b48342ef43d9c2b43a237004e63" => :mojave
    sha256 "a78803384227af25b4b60ab3533c8c728587aead08f927fc7c899c06a5ffbb47" => :high_sierra
  end

  depends_on "go"

  def install
    # TODO: Do not set GOROOT. This is a fix for failing tests when compiled with Go 1.13.
    # See https://github.com/Homebrew/homebrew-core/pull/43820.
    ENV["GOROOT"] = Formula["go"].opt_libexec

    ENV["GOPATH"] = buildpath

    dir = buildpath/"src/github.com/operator-framework/operator-sdk"
    dir.install buildpath.children - [buildpath/".brew_home"]
    dir.cd do
      # Make binary
      system "make", "install"
      bin.install buildpath/"bin/operator-sdk"

      # Install bash completion
      output = Utils.popen_read("#{bin}/operator-sdk completion bash")
      (bash_completion/"operator-sdk").write output
<commit_msg>operator-sdk: update 0.17.1 bottle.<commit_after>class OperatorSdk < Formula
  desc "SDK for building Kubernetes applications"
  homepage "https://coreos.com/operators/"
  url "https://github.com/operator-framework/operator-sdk.git",
      :tag      => "v0.17.1",
      :revision => "bb0c8f0108d1fd1be896d66c2d9e9044f10565a0"
  head "https://github.com/operator-framework/operator-sdk.git"

  bottle do
    sha256 "f0c7596d6a0c850b032cdc9bce51483859b6b51a2a07442934369e42aa5fe5d7" => :catalina
    sha256 "6f9a1e273a9028b835bcb108fc2e56c0f7ea6b48342ef43d9c2b43a237004e63" => :mojave
    sha256 "a78803384227af25b4b60ab3533c8c728587aead08f927fc7c899c06a5ffbb47" => :high_sierra
    sha256 "7b1d99cddd1e89dae3191d9f531878a819eb2f93643d830a3f48b68438ea659d" => :x86_64_linux
  end

  depends_on "go"

  def install
    # TODO: Do not set GOROOT. This is a fix for failing tests when compiled with Go 1.13.
    # See https://github.com/Homebrew/homebrew-core/pull/43820.
    ENV["GOROOT"] = Formula["go"].opt_libexec

    ENV["GOPATH"] = buildpath

    dir = buildpath/"src/github.com/operator-framework/operator-sdk"
    dir.install buildpath.children - [buildpath/".brew_home"]
    dir.cd do
      # Make binary
      system "make", "install"
      bin.install buildpath/"bin/operator-sdk"

      # Install bash completion
      output = Utils.popen_read("#{bin}/operator-sdk completion bash")
      (bash_completion/"operator-sdk").write output

{'fraction_non_alphanumeric': 0.1111512089498376, 'fraction_numerical': 0.14146517502706604, 'mean_word_length': 3.985611510791367, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, 'https://': 8, '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': '5594219', 'n_tokens_mistral': 1271, 'n_tokens_neox': 1065, 'n_words': 168}