<commit_before>class Osm < Formula
  desc "Open Service Mesh (OSM)"
  homepage "https://openservicemesh.io/"
  url "https://github.com/openservicemesh/osm.git",
      tag:      "v1.1.1",
      revision: "407bbedd5edb6ff9f1f51a4cabb95bedeb567312"
  license "Apache-2.0"
  head "https://github.com/openservicemesh/osm.git", branch: "main"

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

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "3fd08295d2f98652d45bea238a4a1ed03553f61e075344093a99ade23b8e2e26"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "81172012cc84f14efc38ace7890a7659eda7fda73e4917b327c5a594726dd2e6"
    sha256 cellar: :any_skip_relocation, monterey:       "9fb4b1e2cff02963938905fe37d2bdfe4245bb7646a5f3b608a77a690b908ad8"
    sha256 cellar: :any_skip_relocation, big_sur:        "bf8152d718cf3c29a8b29326899ffdfad0bcd0c98211cacf38497fbc0f7252b4"
    sha256 cellar: :any_skip_relocation, catalina:       "23118bbcecbfc1f171e79be9e568a9f371b2e4efcfde0dd1745e06804575ffd7"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "3051189b1dcac96851d280d64f5f79db40d42a848c36f82762b55d1020d262b0"
  end

  depends_on "go" => :build
  depends_on "helm" => :build

  def install
    ENV["VERSION"] = "v"+version unless build.head?
    ENV["BUILD_DATE"] = time.strftime("%Y-%m-%d-%H:%M")
    system "make", "build-osm"
    bin.install "bin/osm"
  end

  test do
    assert_match "Error: Could not list namespaces related to osm", shell_output("#{bin}/osm namespace list 2>&1", 1)
    assert_match "Version:\"v#{version}\"", shell_output("#{bin}/osm version 2>&1", 1)
  end
end
<commit_msg>osm 1.2.0<commit_after>class Osm < Formula
  desc "Open Service Mesh (OSM)"
  homepage "https://openservicemesh.io/"
  url "https://github.com/openservicemesh/osm.git",
      tag:      "v1.2.0",
      revision: "893ff8722a65bbfc2afa6e416bdca88c58393d00"
  license "Apache-2.0"
  head "https://github.com/openservicemesh/osm.git", branch: "main"

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

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "3fd08295d2f98652d45bea238a4a1ed03553f61e075344093a99ade23b8e2e26"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "81172012cc84f14efc38ace7890a7659eda7fda73e4917b327c5a594726dd2e6"
    sha256 cellar: :any_skip_relocation, monterey:       "9fb4b1e2cff02963938905fe37d2bdfe4245bb7646a5f3b608a77a690b908ad8"
    sha256 cellar: :any_skip_relocation, big_sur:        "bf8152d718cf3c29a8b29326899ffdfad0bcd0c98211cacf38497fbc0f7252b4"
    sha256 cellar: :any_skip_relocation, catalina:       "23118bbcecbfc1f171e79be9e568a9f371b2e4efcfde0dd1745e06804575ffd7"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "3051189b1dcac96851d280d64f5f79db40d42a848c36f82762b55d1020d262b0"
  end

  depends_on "go" => :build
  depends_on "helm" => :build

  def install
    ENV["VERSION"] = "v"+version unless build.head?
    ENV["BUILD_DATE"] = time.strftime("%Y-%m-%d-%H:%M")
    system "make", "build-osm"
    bin.install "bin/osm"
  end

  test do
    assert_match "Error: Could not list namespaces related to osm", shell_output("#{bin}/osm namespace list 2>&1", 1)
    assert_match "Version:\"v#{version}\"", shell_output("#{bin}/osm version 2>&1", 1)
  end
end

{'fraction_non_alphanumeric': 0.11796733212341198, 'fraction_numerical': 0.18148820326678766, 'mean_word_length': 4.9053571428571425, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '4842094', 'n_tokens_mistral': 1745, 'n_tokens_neox': 1437, 'n_words': 211}