<commit_before>class NatsServer < Formula
  desc "Lightweight cloud messaging system"
  homepage "https://nats.io"
  url "https://github.com/nats-io/nats-server/archive/v2.9.1.tar.gz"
  sha256 "e6287f1d038a2df3ec37d00d936e967ca7f5eec9de37558d79e87a49d153d3ae"
  license "Apache-2.0"
  head "https://github.com/nats-io/nats-server.git", branch: "main"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "4f419225db72d72f61022f11d9461e8a790932e9d461a0502d0bf6bd70e32dc2"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "a096a54fdcdb93b4025590834c2d2611c4e876dbfa35ef2af3e9bc6742c3d95c"
    sha256 cellar: :any_skip_relocation, monterey:       "1ce0179087664139da5e6db497df7440de1d9f1fe33ce11167195246109a4715"
    sha256 cellar: :any_skip_relocation, big_sur:        "eac302cb7db52a14f09c2114227b6f2368953b58cf69a2872446d41850b7955b"
    sha256 cellar: :any_skip_relocation, catalina:       "71a206af53c96d1bf4b8576f56903208dbfc3c622b9ac56ba86c08b8aa2f30fe"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "1f992686981383db75ae6679d65bce4ef25b813a4499ddd916d14bf9a9e610b6"
  end

  depends_on "go" => :build

  def install
    system "go", "build", *std_go_args(ldflags: "-s -w")
  end

  service do
    run opt_bin/"nats-server"
  end

  test do
    port = free_port
    http_port = free_port
    fork do
      exec bin/"nats-server",
           "--port=#{port}",
           "--http_port=#{http_port}",
           "--pid=#{testpath}/pid",
           "--log=#{testpath}/log"
    end
    sleep 3

    assert_match version.to_s, shell_output("curl localhost:#{http_port}/varz")
    assert_predicate testpath/"log", :exist?
  end
end<commit_msg>nats-server: update 2.9.1 bottle.<commit_after>class NatsServer < Formula
  desc "Lightweight cloud messaging system"
  homepage "https://nats.io"
  url "https://github.com/nats-io/nats-server/archive/v2.9.1.tar.gz"
  sha256 "e6287f1d038a2df3ec37d00d936e967ca7f5eec9de37558d79e87a49d153d3ae"
  license "Apache-2.0"
  head "https://github.com/nats-io/nats-server.git", branch: "main"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "847e928f6e921fdd189962f9382455256fc5a32c8ad6569be910cec137923a06"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "f3e9d1ef25c9f9b14cb94e44b3eac97bab551aaee01b571f9e5227906948ec0a"
    sha256 cellar: :any_skip_relocation, monterey:       "4d05c129e6bec9ee4410a98710817bcf53098f1ee77c0f4428ece4bcc100c57c"
    sha256 cellar: :any_skip_relocation, big_sur:        "d82bfcfdecf81d0b9f4b757f7e875553c7d899f7ae905ca5fa721cb65b9bf10f"
    sha256 cellar: :any_skip_relocation, catalina:       "92b01338ca01f75eba16b5e4705d737544dc36a59c1a3d638685a83515966a71"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "3a72137b04cd0196a4f83304dd3389d82d7e08ff69a6ba74d64e0aefaf33ad69"
  end

  depends_on "go" => :build

  def install
    system "go", "build", *std_go_args(ldflags: "-s -w")
  end

  service do
    run opt_bin/"nats-server"
  end

  test do
    port = free_port
    http_port = free_port
    fork do
      exec bin/"nats-server",
           "--port=#{port}",
           "--http_port=#{http_port}",
           "--pid=#{testpath}/pid",
           "--log=#{testpath}/log"
    end
    sleep 3

    assert_match version.to_s, shell_output("curl localhost:#{http_port}/varz")
    assert_predicate testpath/"log", :exist?
  end
end
{'fraction_non_alphanumeric': 0.1016597510373444, 'fraction_numerical': 0.1899822169531713, 'mean_word_length': 4.340189873417722, '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': '6162810', 'n_tokens_mistral': 1777, 'n_tokens_neox': 1445, 'n_words': 194}