<commit_before>require "language/go"

class TerraformDocs < Formula
  desc "Tool to generate documentation from Terraform modules"
  homepage "https://github.com/segmentio/terraform-docs"
  url "https://github.com/segmentio/terraform-docs/archive/v0.2.0.tar.gz"
  sha256 "8f3ed47cfedde0a6e4ab8826b1d87009d06b7c04161363490b0a6c157473a146"
  head "https://github.com/segmentio/terraform-docs.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "b257ed5c8902d1866fdfdd54450a573cf794b9dab7c6b46b53bfcfc2e194d6b5" => :sierra
    sha256 "2f837ebdd13cc095db958dbf3dcdac8fe12f4fc2bbba14e41035b791c1d5c950" => :el_capitan
    sha256 "8a79d91615019ba653775e465abf80c5856f9779b7a89ce29987a10ae57a7223" => :yosemite
  end

  depends_on "go" => :build

  go_resource "github.com/hashicorp/hcl" do
    url "https://github.com/hashicorp/hcl.git",
        :revision => "392dba7d905ed5d04a5794ba89f558b27e2ba1ca"
  end

  go_resource "github.com/tj/docopt" do
    url "https://github.com/tj/docopt.git",
        :revision => "c8470e45692f168e8b380c5d625327e756d7d0a9"
  end

  def install
    ENV["GOPATH"] = buildpath
    (buildpath/"src/github.com/segmentio/terraform-docs").install buildpath.children
    Language::Go.stage_deps resources, buildpath/"src"
    cd "src/github.com/segmentio/terraform-docs" do
      system "go", "build", "-o", "#{bin}/terraform-docs"
      prefix.install_metafiles
    end<commit_msg>terraform-docs: update 0.2.0 bottle for Linuxbrew.<commit_after>require "language/go"

class TerraformDocs < Formula
  desc "Tool to generate documentation from Terraform modules"
  homepage "https://github.com/segmentio/terraform-docs"
  url "https://github.com/segmentio/terraform-docs/archive/v0.2.0.tar.gz"
  sha256 "8f3ed47cfedde0a6e4ab8826b1d87009d06b7c04161363490b0a6c157473a146"
  head "https://github.com/segmentio/terraform-docs.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "b257ed5c8902d1866fdfdd54450a573cf794b9dab7c6b46b53bfcfc2e194d6b5" => :sierra
    sha256 "2f837ebdd13cc095db958dbf3dcdac8fe12f4fc2bbba14e41035b791c1d5c950" => :el_capitan
    sha256 "8a79d91615019ba653775e465abf80c5856f9779b7a89ce29987a10ae57a7223" => :yosemite
    sha256 "1d04ccb28d26ef97d4b058b28276c88b1f605a9d4e87e9aa0a13dbf27b15efc1" => :x86_64_linux
  end

  depends_on "go" => :build

  go_resource "github.com/hashicorp/hcl" do
    url "https://github.com/hashicorp/hcl.git",
        :revision => "392dba7d905ed5d04a5794ba89f558b27e2ba1ca"
  end

  go_resource "github.com/tj/docopt" do
    url "https://github.com/tj/docopt.git",
        :revision => "c8470e45692f168e8b380c5d625327e756d7d0a9"
  end

  def install
    ENV["GOPATH"] = buildpath
    (buildpath/"src/github.com/segmentio/terraform-docs").install buildpath.children
    Language::Go.stage_deps resources, buildpath/"src"
    cd "src/github.com/segmentio/terraform-docs" do
      system "go", "build", "-o", "#{bin}/terraform-docs"
      prefix.install_metafiles
    end
{'fraction_non_alphanumeric': 0.1083276912660799, 'fraction_numerical': 0.16756939742721733, 'mean_word_length': 4.771484375, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, 'https://': 10, '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': '7555913', 'n_tokens_mistral': 1487, 'n_tokens_neox': 1258, 'n_words': 153}