<commit_before>class GhzWeb < Formula
  desc "Web interface for ghz"
  homepage "https://ghz.sh"
  url "https://github.com/bojand/ghz/archive/v0.106.0.tar.gz"
  sha256 "a0ba91b2cb4ade0b1711ef43a7e358b4f27a562a132cc70e686fe2f9a5df36e2"
  license "Apache-2.0"

  livecheck do
    formula "ghz"
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "6e3912099f366892a5d15402f70331b0a101dddfbbf14dbc191a8e3439dd1968"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "889fb16e9087909d9657ecd3c77d7eae7e3e4cda4c4ea7d07ae75f93a7f19e10"
    sha256 cellar: :any_skip_relocation, monterey:       "72150d0b50fec99f8ad719f5c4e1cd72a407d4f4662e30d576026071778a1436"
    sha256 cellar: :any_skip_relocation, big_sur:        "e47448fd61944713a7856142871d5c12349519b12e47f3f7cdc2046221f2ed3d"
    sha256 cellar: :any_skip_relocation, catalina:       "0f6ba02a65297c33f7a94dde78e58992e9bc8cff24510a4a64469dd75416de2d"
    sha256 cellar: :any_skip_relocation, mojave:         "8abc477e62f5f5c9473c666873123fb5743721913ecbd3b915793ff6313f8f87"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "2ff5590f0cefb88c8a13ed03777b3a4e1494f7fe39d363f7133d16c315768670"
  end

  depends_on "go" => :build
  depends_on xcode: :build

  def install
    ENV["CGO_ENABLED"] = "1"
    system "go", "build",
      "-ldflags", "-s -w -X main.version=#{version}",
      *std_go_args,
      "cmd/ghz-web/main.go"
    prefix.install_metafiles
  end

  test do
    assert_match version.to_s, shell_output("#{bin}/ghz-web -v 2>&1")
    port = free_port
    ENV["GHZ_SERVER_PORT"] = port.to_s
    fork do
      exec "#{bin}/ghz-web"
    end
    sleep 1
    cmd = "curl -sIm3 -XGET http://localhost:#{port}/"
    assert_match "200 OK", shell_output(cmd)
  end
end
<commit_msg>ghz-web: update 0.106.0 bottle.<commit_after>class GhzWeb < Formula
  desc "Web interface for ghz"
  homepage "https://ghz.sh"
  url "https://github.com/bojand/ghz/archive/v0.106.0.tar.gz"
  sha256 "a0ba91b2cb4ade0b1711ef43a7e358b4f27a562a132cc70e686fe2f9a5df36e2"
  license "Apache-2.0"

  livecheck do
    formula "ghz"
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "8285f3633766ff837be7beeedbbf73031e380a2fb59404a79483b3d2fce6bddc"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "7a52edbc6812470044eb60d879f4e9638cad33637e005db79cc3616657ed91f7"
    sha256 cellar: :any_skip_relocation, monterey:       "591a8d1e2666da7012e5f2a881e3e3ced1b9d4a371fbdcd8c596329523122a28"
    sha256 cellar: :any_skip_relocation, big_sur:        "326a861d13a4da352c085af4a52cec37fb7a34d75981a8b35084150d595fab4b"
    sha256 cellar: :any_skip_relocation, catalina:       "d0c7703e7ed6fad69f5eb5b6d8d7e87805c647809ef89921298148331eba74ec"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "3c2c3c3d1998ebd4962be49794eda69b7bd8aa15c7f1331ec8716aad95e9c82f"
  end

  depends_on "go" => :build
  depends_on xcode: :build

  def install
    ENV["CGO_ENABLED"] = "1"
    system "go", "build",
      "-ldflags", "-s -w -X main.version=#{version}",
      *std_go_args,
      "cmd/ghz-web/main.go"
    prefix.install_metafiles
  end

  test do
    assert_match version.to_s, shell_output("#{bin}/ghz-web -v 2>&1")
    port = free_port
    ENV["GHZ_SERVER_PORT"] = port.to_s
    fork do
      exec "#{bin}/ghz-web"
    end
    sleep 1
    cmd = "curl -sIm3 -XGET http://localhost:#{port}/"
    assert_match "200 OK", shell_output(cmd)
  end
end

{'fraction_non_alphanumeric': 0.09633294528521537, 'fraction_numerical': 0.2060535506402794, 'mean_word_length': 4.46422893481717, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6673376', 'n_tokens_mistral': 1905, 'n_tokens_neox': 1538, 'n_words': 218}