<commit_before>require 'formula'

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

  bottle do
    sha1 "e31e839d1199ac922616c235fd92ed6391c4ad9b" => :mavericks
    sha1 "bbc47aadab320dcdee1d75b3c7ea0c375b4dbe0a" => :mountain_lion
    sha1 "fbe9d1e3630a5bb707bf689ca78439850adb79e8" => :lion
  end

  depends_on 'go' => :build

  def install
    ENV['GOPATH'] = buildpath
    args = %w(install github.com/juju/juju/cmd/juju)
    args.insert(1, "-v") if ARGV.verbose?
    system "go", *args
    bin.install 'bin/juju'
    bash_completion.install "src/github.com/juju/juju/etc/bash_completion.d/juju-core"
  end

  test do
    system "#{bin}/juju", "version"
  end
end
<commit_msg>juju: simplify install<commit_after>require 'formula'

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

  bottle do
    sha1 "e31e839d1199ac922616c235fd92ed6391c4ad9b" => :mavericks
    sha1 "bbc47aadab320dcdee1d75b3c7ea0c375b4dbe0a" => :mountain_lion
    sha1 "fbe9d1e3630a5bb707bf689ca78439850adb79e8" => :lion
  end

  depends_on 'go' => :build

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

  test do
    system "#{bin}/juju", "version"
  end
end

{'fraction_non_alphanumeric': 0.12978056426332288, 'fraction_numerical': 0.1310344827586207, 'mean_word_length': 4.050632911392405, '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': '4176459', 'n_tokens_mistral': 856, 'n_tokens_neox': 715, 'n_words': 100}