<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-07-09",
      revision: "57766a2587409077260bf0d11908b715bdf68de4"
  version "2021-07-09"
  license "GPL-2.0-or-later"
  head "https://github.com/offensive-security/exploitdb.git"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "3bbc53395908dfe9d9ee27dd59373e8251ddecab5b4eb372ab00d880fd94ed73"
    sha256 cellar: :any_skip_relocation, big_sur:       "e48eaa1725ba580dafc063f0d568c139e8536d1f904dcc14aee7454e3a308df1"
    sha256 cellar: :any_skip_relocation, catalina:      "17d34f67b0bd2157f14d7087f9d1ea2e08527a54557d13a6e8325a735e3db7b3"
    sha256 cellar: :any_skip_relocation, mojave:        "402826a2145da4a83e9160356525b8596fffce032ee41e7fd510cb7b63d86012"
  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-07-09 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-07-09",
      revision: "57766a2587409077260bf0d11908b715bdf68de4"
  version "2021-07-09"
  license "GPL-2.0-or-later"
  head "https://github.com/offensive-security/exploitdb.git"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "4a311e46583fda15565960b9376328c0c1199a342f6b22555690e077d530a739"
    sha256 cellar: :any_skip_relocation, big_sur:       "c43649497655d7670e85eac339255914ff64dca6b1ce95a1a41bbf1a9d5eb363"
    sha256 cellar: :any_skip_relocation, catalina:      "1fe914e0346179d3bae559e01d8b998a45d3829363b07bf964ffd86b6a5fef5a"
    sha256 cellar: :any_skip_relocation, mojave:        "5e09f62ebe48cd331607c6a6621eef153de97e4e1713531bbd798fe909772b7e"
  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.10962479608482871, 'fraction_numerical': 0.15171288743882544, 'mean_word_length': 3.9371980676328504, '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': '6232464', 'n_tokens_mistral': 1496, 'n_tokens_neox': 1199, 'n_words': 176}