<commit_before>class Consul < Formula
  desc "Tool for service discovery, monitoring and configuration"
  homepage "https://www.consul.io"
  url "https://github.com/hashicorp/consul.git",
      :tag => "v1.0.0",
      :revision => "51ea240df8476e02215d53fbfad5838bf0d44d21"

  head "https://github.com/hashicorp/consul.git",
       :shallow => false

  bottle do
    cellar :any_skip_relocation
    sha256 "babe5b2709c5e6cd60f0a2fab9682a488ef250dda9001b052054f45a578bbee7" => :high_sierra
    sha256 "abdbbd11adf26408f477e829fcf32dc6e937c5793b989b269dad1bd8e01525e5" => :sierra
    sha256 "9526896ed347c2a0a9fead692a1691b10b62a69c9625ea184f2e76546b229843" => :el_capitan
  end

  depends_on "go" => :build

  def install
    contents = Dir["{*,.git,.gitignore}"]
    gopath = buildpath/"gopath"
    (gopath/"src/github.com/hashicorp/consul").install contents

    ENV["GOPATH"] = gopath
    ENV.prepend_create_path "PATH", gopath/"bin"
<commit_msg>consul: Reduce memory usage below 4 GB for Circle CI.<commit_after>class Consul < Formula
  desc "Tool for service discovery, monitoring and configuration"
  homepage "https://www.consul.io"
  url "https://github.com/hashicorp/consul.git",
      :tag => "v1.0.0",
      :revision => "51ea240df8476e02215d53fbfad5838bf0d44d21"

  head "https://github.com/hashicorp/consul.git",
       :shallow => false

  bottle do
    cellar :any_skip_relocation
    sha256 "babe5b2709c5e6cd60f0a2fab9682a488ef250dda9001b052054f45a578bbee7" => :high_sierra
    sha256 "abdbbd11adf26408f477e829fcf32dc6e937c5793b989b269dad1bd8e01525e5" => :sierra
    sha256 "9526896ed347c2a0a9fead692a1691b10b62a69c9625ea184f2e76546b229843" => :el_capitan
  end

  depends_on "go" => :build
  depends_on "zip" => :build unless OS.mac?

  def install
    # Reduce memory usage below 4 GB for Circle CI.
    inreplace "scripts/build.sh", "-tags=\"${GOTAGS}\" \\", "-tags=\"${GOTAGS}\" -parallel=4 \\"

    contents = Dir["{*,.git,.gitignore}"]
    gopath = buildpath/"gopath"
    (gopath/"src/github.com/hashicorp/consul").install contents

    ENV["GOPATH"] = gopath
    ENV.prepend_create_path "PATH", gopath/"bin"

{'fraction_non_alphanumeric': 0.12347417840375587, 'fraction_numerical': 0.14788732394366197, 'mean_word_length': 4.3542713567839195, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, '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': '2309048', 'n_tokens_mistral': 1027, 'n_tokens_neox': 854, 'n_words': 134}