<commit_before>class Exploitdb < Formula
  desc "Database of public exploits and corresponding vulnerable software"
  homepage "https://www.exploit-db.com/"
  url "https://github.com/offensive-security/exploitdb.git",
      tag:      "2021-10-23",
      revision: "4f2cf56b3145f4ec8e579b56db663261c3bafd78"
  version "2021-10-23"
  license "GPL-2.0-or-later"
  head "https://github.com/offensive-security/exploitdb.git"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "7765d150b559e2823fac20aaeb2b6e730c8aa6f4971c43eb461537e1741407ee"
    sha256 cellar: :any_skip_relocation, big_sur:       "4e592698ee426cb63526cf4faed9aba169eef993a9f796a98944f55a7e02d855"
    sha256 cellar: :any_skip_relocation, catalina:      "a6f1d9a7df66d0073f62f3caed5428485cc40a245cdf74ad3c0bb72ddcee512b"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "016c4a5939ab7771d9887495fc79d573d32243ee8593d2e3eef9ee3481ae3a41"
  end

  def install
    inreplace "searchsploit",
              "rc_file=\"\"", "rc_file=\"#{etc}/searchsploit_rc\""

    optpath = opt_share/"exploitdb"
    inreplace ".searchsploit_rc" do |s|
      s.gsub! "\"/opt/exploitdb\"", optpath
      s.gsub! "\"/opt/exploitdb-papers\"", "#{optpath}-papers"
    end

    bin.install "searchsploit"
    etc.install ".searchsploit_rc" => "searchsploit_rc"

    pkgshare.install %w[.git exploits files_exploits.csv files_shellcodes.csv
                        shellcodes]
  end

  test do
    system "#{bin}/searchsploit", "sendpage"
  end
end
<commit_msg>exploitdb: update 2021-10-23 bottle.<commit_after>class Exploitdb < Formula
  desc "Database of public exploits and corresponding vulnerable software"
  homepage "https://www.exploit-db.com/"
  url "https://github.com/offensive-security/exploitdb.git",
      tag:      "2021-10-23",
      revision: "4f2cf56b3145f4ec8e579b56db663261c3bafd78"
  version "2021-10-23"
  license "GPL-2.0-or-later"
  head "https://github.com/offensive-security/exploitdb.git"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "1fda585cf2b1bfc2dfe557d31694bb603f8aa523bffc199e8c1e561e9e45232f"
    sha256 cellar: :any_skip_relocation, big_sur:       "b458a94b5a854e0a71d2d15b3877a828704f19a2c3da03ae986103e0a9682606"
    sha256 cellar: :any_skip_relocation, catalina:      "8569c3c7b1502cd485d1f5019e0d8deda5cda462f22a8e1cef93efdaed8edc37"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "a1a8b1828644001ba945fb0814531b7a166310a2f7c52a1d129aea4f5f6767e7"
  end

  def install
    inreplace "searchsploit",
              "rc_file=\"\"", "rc_file=\"#{etc}/searchsploit_rc\""

    optpath = opt_share/"exploitdb"
    inreplace ".searchsploit_rc" do |s|
      s.gsub! "\"/opt/exploitdb\"", optpath
      s.gsub! "\"/opt/exploitdb-papers\"", "#{optpath}-papers"
    end

    bin.install "searchsploit"
    etc.install ".searchsploit_rc" => "searchsploit_rc"

    pkgshare.install %w[.git exploits files_exploits.csv files_shellcodes.csv
                        shellcodes]
  end

  test do
    system "#{bin}/searchsploit", "sendpage"
  end
end

{'fraction_non_alphanumeric': 0.10955330942288882, 'fraction_numerical': 0.14509292468209978, 'mean_word_length': 4.0212765957446805, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, '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': '5406922', 'n_tokens_mistral': 1501, 'n_tokens_neox': 1230, 'n_words': 177}