<commit_before>class Linkerd < Formula
  desc "Command-line utility to interact with linkerd"
  homepage "https://linkerd.io"
  url "https://github.com/linkerd/linkerd2.git",
      tag:      "stable-2.11.1",
      revision: "43fc40f545b47bd86c6800bf3895745f15902e72"
  license "Apache-2.0"

  livecheck do
    url :stable
    regex(/^stable[._-]v?(\d+(?:\.\d+)+)$/i)
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "072410b9685619fdf2fe6f69a4e3f7623af382d1060cb8212cb199fa22dede2c"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "f24abf0fa75860523155127f372b718c1f70015c1929fa58ac56cd037ac329d3"
    sha256 cellar: :any_skip_relocation, monterey:       "a1149ff3bcae9f8783d3173953c456cfdea25aa40b41b12121d987de1bf407fe"
    sha256 cellar: :any_skip_relocation, big_sur:        "a3d1e5b47ea8c6e0b1e591bf8793036f56d669c3a84a87d61f17096bc6023927"
    sha256 cellar: :any_skip_relocation, catalina:       "216c9582db9a0c44543e1bc720cbb7d8a414fb2804e97ecdb5b6d643e5537b9a"
    sha256 cellar: :any_skip_relocation, mojave:         "e26dd71cfa2cdd85a8a6fe91bf8fa836f6efa5f953532b200b5b581a4e09ba49"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "2826a7fdb324368e5ffbb756cf917cde769a4e7cbd930ddb9026eaccd108dcfb"
  end

  depends_on "go" => :build

  def install
    ENV["CI_FORCE_CLEAN"] = "1"

    system "bin/build-cli-bin"
    bin.install Dir["target/cli/*/linkerd"]

    # Install bash completion
    output = Utils.safe_popen_read("#{bin}/linkerd", "completion", "bash")
    (bash_completion/"linkerd").write output<commit_msg>linkerd: update 2.11.1 bottle.<commit_after>class Linkerd < Formula
  desc "Command-line utility to interact with linkerd"
  homepage "https://linkerd.io"
  url "https://github.com/linkerd/linkerd2.git",
      tag:      "stable-2.11.1",
      revision: "43fc40f545b47bd86c6800bf3895745f15902e72"
  license "Apache-2.0"

  livecheck do
    url :stable
    regex(/^stable[._-]v?(\d+(?:\.\d+)+)$/i)
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "1d8141e6509d626dedd542f3c88fea07576f95ea89d203bd733e947953af5a08"
    sha256 cellar: :any_skip_relocation, big_sur:       "3882a73111e96f2e17085e54bae4af320176bb1312d0de291668a339939ce841"
    sha256 cellar: :any_skip_relocation, catalina:      "ba12910b995f95847d0c92f340cd18e92e9b55cac3b2d48ea92614c2c7c97a58"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "17833ad0395edfe65a3c819bc2826aaaa2ab6d8f84022c14684f5c8f89dc14d2"
  end

  depends_on "go" => :build

  def install
    ENV["CI_FORCE_CLEAN"] = "1"

    system "bin/build-cli-bin"
    bin.install Dir["target/cli/*/linkerd"]

    # Install bash completion
    output = Utils.safe_popen_read("#{bin}/linkerd", "completion", "bash")
    (bash_completion/"linkerd").write output
{'fraction_non_alphanumeric': 0.1046970240229473, 'fraction_numerical': 0.20258157045536035, 'mean_word_length': 4.911016949152542, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '2531135', 'n_tokens_mistral': 1496, 'n_tokens_neox': 1193, 'n_words': 155}