<commit_before>class Tilt < Formula
  desc "Define your dev environment as code. For microservice apps on Kubernetes"
  homepage "https://tilt.dev/"
  url "https://github.com/tilt-dev/tilt.git",
    tag:      "v0.23.2",
    revision: "34b9d2be3392d83bbf32b587a5a9c38612651c21"
  license "Apache-2.0"
  head "https://github.com/tilt-dev/tilt.git", branch: "master"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "7add2035a9fc9172fe1fbd004cebedf926a51d9c6ddcf67414e2fcb77a363c73"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "04afa7d582253ea3581bdfdb97de47bb1809014202c0191193bbd8301e878a19"
    sha256 cellar: :any_skip_relocation, monterey:       "665047f371735a847372c9480d91ed9d1af9c3a179a8e429f3c39055cddd9853"
    sha256 cellar: :any_skip_relocation, big_sur:        "680a00c50a93ea426cb4215dfbc1f6b0e51303ccf6419a29ae6d82e09c8a33d8"
    sha256 cellar: :any_skip_relocation, catalina:       "cb9ee2d9dc56035652898ab6db6ab3ef54e09292d428c7f5fcfc21160be5dba0"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "de949b8daafa23e7353dd2b6b3c2665d977af68b34447891bd8f743bcf57d812"
  end

  depends_on "go" => :build

  def install
    ENV["CGO_ENABLED"] = "1"
    ldflags = %W[
      -s -w
      -X main.version=#{version}
      -X main.commit=#{Utils.git_head}
      -X main.date=#{time.iso8601}
    ].join(" ")
    system "go", "build", *std_go_args(ldflags: ldflags), "./cmd/tilt"
    # Install bash completion
    output = Utils.safe_popen_read("#{bin}/tilt", "completion", "bash")
    (bash_completion/"tilt").write output

    # Install zsh completion
    output = Utils.safe_popen_read("#{bin}/tilt", "completion", "zsh")
    (zsh_completion/"_tilt").write output

    # Install fish completion<commit_msg>tilt: update 0.23.2 bottle.<commit_after>class Tilt < Formula
  desc "Define your dev environment as code. For microservice apps on Kubernetes"
  homepage "https://tilt.dev/"
  url "https://github.com/tilt-dev/tilt.git",
    tag:      "v0.23.2",
    revision: "34b9d2be3392d83bbf32b587a5a9c38612651c21"
  license "Apache-2.0"
  head "https://github.com/tilt-dev/tilt.git", branch: "master"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "867679eab9a1457b61c3f90e483b523d9c883092980adad7f0cbcdfb4167a52b"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "29f5891fc4ebe2e24cf5376103de1f8463b319439218e0a7c9751d59c238ed15"
    sha256 cellar: :any_skip_relocation, monterey:       "b32620f3214fd190cac1c42ac0809b64dd4d8a2a4ea6d8d6ae5d7c00f1f8940f"
    sha256 cellar: :any_skip_relocation, big_sur:        "cb72a565d7fdba6668554c3a28cc4a45a011ca61a6c727e4098e62f5388e83f3"
    sha256 cellar: :any_skip_relocation, catalina:       "073c715505d168da31914c9e3ac6a6f61082ea6e18c986214e4807a4fbf1b9ad"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "10e486330bf3d14973180332fb2bbcdd6d6710700c6fc3327beb83c878df28a8"
  end

  depends_on "go" => :build

  def install
    ENV["CGO_ENABLED"] = "1"
    ldflags = %W[
      -s -w
      -X main.version=#{version}
      -X main.commit=#{Utils.git_head}
      -X main.date=#{time.iso8601}
    ].join(" ")
    system "go", "build", *std_go_args(ldflags: ldflags), "./cmd/tilt"
    # Install bash completion
    output = Utils.safe_popen_read("#{bin}/tilt", "completion", "bash")
    (bash_completion/"tilt").write output

    # Install zsh completion
    output = Utils.safe_popen_read("#{bin}/tilt", "completion", "zsh")
    (zsh_completion/"_tilt").write output

    # Install fish completion
{'fraction_non_alphanumeric': 0.11136363636363636, 'fraction_numerical': 0.1744318181818182, 'mean_word_length': 4.597774244833069, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '2171966', 'n_tokens_mistral': 1808, 'n_tokens_neox': 1482, 'n_words': 216}