<commit_before>class Sslscan < Formula
  desc "Test SSL/TLS enabled services to discover supported cipher suites"
  homepage "https://github.com/rbsec/sslscan"
  url "https://github.com/rbsec/sslscan/archive/2.0.15.tar.gz"
  sha256 "0986ac647098b877f24c863c261bfb7cf545a41fd1120047337dfc44812c69a0"
  license "GPL-3.0-or-later" => { with: "openvpn-openssl-exception" }
  head "https://github.com/rbsec/sslscan.git", branch: "master"

  bottle do
    sha256 cellar: :any,                 arm64_monterey: "a6c11ea960d56ce6637daf7c5bda05e6d6bbf6dd04b6bf4171b60f7d63fae499"
    sha256 cellar: :any,                 arm64_big_sur:  "bbef0feb49d55b17a6dc1be5d7544b7afea935cb8486a06ce1a000397082ea3f"
    sha256 cellar: :any,                 monterey:       "c6db8bd7356bc42a6762ffc3bb46f52d13c0cdc6b9873e3977b314b51cda56ca"
    sha256 cellar: :any,                 big_sur:        "a730c123c4487fe5b8d3a7a3da7fa6d3709b618f8b8269cf457d5e56c234ec01"
    sha256 cellar: :any,                 catalina:       "0c419d351ba903c3a1730e344a1d3e5b954b11fd68f339bc94fffc00c1967432"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "f447f3e86abae4d2416993b72e4a32068478203e4a2fbdb10c3de410f0dc90a4"
  end

  depends_on "openssl@1.1"

  def install
    # use `libcrypto.dylib|so` built from `openssl@1.1`
    inreplace "Makefile", "./openssl/libssl.a",
                          "#{Formula["openssl@1.1"].opt_lib}/#{shared_library("libssl")}"
    inreplace "Makefile", "./openssl/libcrypto.a",
                          "#{Formula["openssl@1.1"].opt_lib}/#{shared_library("libcrypto")}"
    inreplace "Makefile", "static: openssl/libcrypto.a",
                          "static: #{Formula["openssl@1.1"].opt_lib}/#{shared_library("libcrypto")}"

    system "make"
    system "make", "install", "PREFIX=#{prefix}"
  end

  test do
    assert_match version.to_s, shell_output("#{bin}/sslscan --version")
    system "#{bin}/sslscan", "google.com"
  end
end<commit_msg>sslscan: update 2.0.15 bottle.<commit_after>class Sslscan < Formula
  desc "Test SSL/TLS enabled services to discover supported cipher suites"
  homepage "https://github.com/rbsec/sslscan"
  url "https://github.com/rbsec/sslscan/archive/2.0.15.tar.gz"
  sha256 "0986ac647098b877f24c863c261bfb7cf545a41fd1120047337dfc44812c69a0"
  license "GPL-3.0-or-later" => { with: "openvpn-openssl-exception" }
  head "https://github.com/rbsec/sslscan.git", branch: "master"

  bottle do
    rebuild 1
    sha256 cellar: :any,                 arm64_monterey: "eb8f8ad40b64c81597429af23975a0139e5a694298b07d9490953b99b18dde47"
    sha256 cellar: :any,                 arm64_big_sur:  "adb5286beba7c576529052e28b772307356a6e3810bba69b28293d25af2a7d20"
    sha256 cellar: :any,                 monterey:       "1caaf3acce4bc823da5447ac2b7ebdaf0187e342ce517dee0031952703466ea8"
    sha256 cellar: :any,                 big_sur:        "b528f5d73f4b397ce34b045b5f1afba9d443a34e7793b0d5f5e6af71dfe564df"
    sha256 cellar: :any,                 catalina:       "81a1b69fa2b4059b214d3b3489a4383b3e6a169f712c2cdbe28752ba97a15b8e"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "944b95bab55036638b1ef17d1acd7613f6ba7357b080f777ead8e7d9b3d0ee64"
  end

  depends_on "openssl@1.1"

  def install
    # use `libcrypto.dylib|so` built from `openssl@1.1`
    inreplace "Makefile", "./openssl/libssl.a",
                          "#{Formula["openssl@1.1"].opt_lib}/#{shared_library("libssl")}"
    inreplace "Makefile", "./openssl/libcrypto.a",
                          "#{Formula["openssl@1.1"].opt_lib}/#{shared_library("libcrypto")}"
    inreplace "Makefile", "static: openssl/libcrypto.a",
                          "static: #{Formula["openssl@1.1"].opt_lib}/#{shared_library("libcrypto")}"

    system "make"
    system "make", "install", "PREFIX=#{prefix}"
  end

  test do
    assert_match version.to_s, shell_output("#{bin}/sslscan --version")
    system "#{bin}/sslscan", "google.com"
  end
end
{'fraction_non_alphanumeric': 0.11976655671149454, 'fraction_numerical': 0.1654402435929967, 'mean_word_length': 3.5258323765786455, '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': '4467087', 'n_tokens_mistral': 1899, 'n_tokens_neox': 1556, 'n_words': 206}