<commit_before>require 'formula'

class Juju < Formula
  homepage 'https://juju.ubuntu.com'
  url 'https://launchpad.net/juju-core/1.20/1.20.10/+download/juju-core_1.20.10.tar.gz'
  sha1 '0f59ba487382136f923d9be992d705db3da3e418'

  bottle do
    sha1 "683e051827f984024d87a8d9e55611103c862180" => :mavericks
    sha1 "9dc22987b545b65a787bcebcce55e456b2a1ad2a" => :mountain_lion
    sha1 "bd25350f412c097d907998a5e921c8e1cd233fa0" => :lion
  end

  depends_on 'go' => :build

  def install
    ENV["GOPATH"] = buildpath
    system "go", "build", "github.com/juju/juju/cmd/juju"
    system "go", "build", "github.com/juju/juju/cmd/plugins/juju-metadata"
    bin.install "juju", "juju-metadata"
    bash_completion.install "src/github.com/juju/juju/etc/bash_completion.d/juju-core"
  end

  test do
    system "#{bin}/juju", "version"<commit_msg>juju 1.20.11.<commit_after>require 'formula'

class Juju < Formula
  homepage 'https://juju.ubuntu.com'
  url 'https://launchpad.net/juju-core/1.20/1.20.11/+download/juju-core_1.20.11.tar.gz'
  sha1 'ce76b26648533501ed9e1918abe740116d4de73b'

  bottle do
    sha1 "683e051827f984024d87a8d9e55611103c862180" => :mavericks
    sha1 "9dc22987b545b65a787bcebcce55e456b2a1ad2a" => :mountain_lion
    sha1 "bd25350f412c097d907998a5e921c8e1cd233fa0" => :lion
  end

  depends_on 'go' => :build

  def install
    ENV["GOPATH"] = buildpath
    system "go", "build", "github.com/juju/juju/cmd/juju"
    system "go", "build", "github.com/juju/juju/cmd/plugins/juju-metadata"
    bin.install "juju", "juju-metadata"
    bash_completion.install "src/github.com/juju/juju/etc/bash_completion.d/juju-core"
  end

  test do
    system "#{bin}/juju", "version"
{'fraction_non_alphanumeric': 0.14040284360189573, 'fraction_numerical': 0.15225118483412323, 'mean_word_length': 4.2291021671826625, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6503068', 'n_tokens_mistral': 918, 'n_tokens_neox': 731, 'n_words': 98}