<commit_before>class KubernetesCli < Formula
  homepage "http://kubernetes.io/"
  url "https://github.com/GoogleCloudPlatform/kubernetes/archive/v0.10.1.tar.gz"
  sha256 "76000917bae4d8002884f24d33aa3ed23938fd1e39e89c73b8dfdd2d9c06fe24"

  bottle do
    cellar :any
    sha1 "6b5d4dcefb0bf290c68e06f9a2dde7ea73c72a45" => :yosemite
    sha1 "787545924940ca943c38ccdc2263b7b4c1b92211" => :mavericks
    sha1 "3e4b16e204f335cde95a08e27cddac7def5e6f4c" => :mountain_lion
  end

  depends_on "go" => :build

  def install
    arch = MacOS.prefer_64_bit? ? "amd64" : "x86"

    system "make", "all", "WHAT=cmd/*", "GOFLAGS=-v"

    dir = "_output/local/bin/darwin/#{arch}"
    bin.install "#{dir}/kubecfg", "#{dir}/kubectl", "#{dir}/kubernetes"
  end

  test do
    assert_match /^Usage: kubecfg/, shell_output("#{bin}/kubecfg 2>&1", 1)
    assert_match /^kubectl controls the Kubernetes cluster manager./, shell_output("#{bin}/kubectl 2>&1", 0)
    assert_match %r{^Usage of #{bin}/kubernetes:}, shell_output("#{bin}/kubernetes --help 2>&1", 2)
  end
end<commit_msg>kubernetes-cli 0.11.0<commit_after>class KubernetesCli < Formula
  homepage "http://kubernetes.io/"
  url "https://github.com/GoogleCloudPlatform/kubernetes/archive/v0.11.0.tar.gz"
  sha256 "5eceee178649b12fbbae3a484457f067468db1811945502a36778c5e8807b2ff"

  bottle do
    cellar :any
    sha1 "6b5d4dcefb0bf290c68e06f9a2dde7ea73c72a45" => :yosemite
    sha1 "787545924940ca943c38ccdc2263b7b4c1b92211" => :mavericks
    sha1 "3e4b16e204f335cde95a08e27cddac7def5e6f4c" => :mountain_lion
  end

  depends_on "go" => :build

  def install
    arch = MacOS.prefer_64_bit? ? "amd64" : "x86"

    system "make", "all", "WHAT=cmd/*", "GOFLAGS=-v"

    dir = "_output/local/bin/darwin/#{arch}"
    bin.install "#{dir}/kubectl", "#{dir}/kubernetes"
  end

  test do
    assert_match /^kubectl controls the Kubernetes cluster manager./, shell_output("#{bin}/kubectl 2>&1", 0)
    assert_match %r{^Usage of #{bin}/kubernetes:}, shell_output("#{bin}/kubernetes --help 2>&1", 2)
  end
end
{'fraction_non_alphanumeric': 0.14629356897398135, 'fraction_numerical': 0.13352970054000982, 'mean_word_length': 4.5989010989010985, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, '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': '5695324', 'n_tokens_mistral': 1002, 'n_tokens_neox': 851, 'n_words': 137}