<commit_before>class Kompose < Formula
  desc "Tool to move from `docker-compose` to Kubernetes"
  homepage "http://kompose.io"
  url "https://github.com/kubernetes/kompose/archive/v1.4.0.tar.gz"
  sha256 "29ea870886bac78850a6b7a864ece63b3f67ed769358193d5ea12c8b0d197f82"

  bottle do
    cellar :any_skip_relocation
    sha256 "0386945efe36c8d20ca0ac36af7f10ab70c42cbcae741981a711da46b6318b4d" => :high_sierra
    sha256 "7a433e3aa759039c2f2340c5a2d627e295ddb27ee22ee3162c574a6be32d641a" => :sierra
    sha256 "c784ee4a5f45721e76fca2f0abc7df00d8e4c488409a6fbc1da38983cfc67cb5" => :el_capitan
  end

  depends_on "go" => :build

  def install
    ENV["GOPATH"] = buildpath
    mkdir_p buildpath/"src/github.com/kubernetes"
    ln_s buildpath, buildpath/"src/github.com/kubernetes/kompose"
    system "make", "bin"
    bin.install "kompose"
  end

  test do
    assert_match version.to_s, shell_output("#{bin}/kompose version")
  end
end<commit_msg>kompose: add bash and zsh completions<commit_after>class Kompose < Formula
  desc "Tool to move from `docker-compose` to Kubernetes"
  homepage "http://kompose.io"
  url "https://github.com/kubernetes/kompose/archive/v1.4.0.tar.gz"
  sha256 "29ea870886bac78850a6b7a864ece63b3f67ed769358193d5ea12c8b0d197f82"

  bottle do
    cellar :any_skip_relocation
    sha256 "0386945efe36c8d20ca0ac36af7f10ab70c42cbcae741981a711da46b6318b4d" => :high_sierra
    sha256 "7a433e3aa759039c2f2340c5a2d627e295ddb27ee22ee3162c574a6be32d641a" => :sierra
    sha256 "c784ee4a5f45721e76fca2f0abc7df00d8e4c488409a6fbc1da38983cfc67cb5" => :el_capitan
  end

  depends_on "go" => :build

  def install
    ENV["GOPATH"] = buildpath
    mkdir_p buildpath/"src/github.com/kubernetes"
    ln_s buildpath, buildpath/"src/github.com/kubernetes/kompose"
    system "make", "bin"
    bin.install "kompose"

    output = Utils.popen_read("#{bin}/kompose completion bash")
    (bash_completion/"kompose").write output

    output = Utils.popen_read("#{bin}/kompose completion zsh")
    (zsh_completion/"_kompose").write output
  end

  test do
    assert_match version.to_s, shell_output("#{bin}/kompose version")
  end
end
{'fraction_non_alphanumeric': 0.0986442262739598, 'fraction_numerical': 0.15988779803646563, 'mean_word_length': 5.01123595505618, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '3467559', 'n_tokens_mistral': 1068, 'n_tokens_neox': 880, 'n_words': 130}