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

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "6bce530ab17fe926a63690872c919635e436ca4cf26ab272f24835e12ecccd97"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "9a1c5e12bd312576e41fff822f8bf7d0a90254670c567e1d7d3db4683b5aceb8"
    sha256 cellar: :any_skip_relocation, monterey:       "4cc9cadaaff6a6e6cfdb15f2d43769f66916d2d127342f7fb67b80e0f6f758ea"
    sha256 cellar: :any_skip_relocation, big_sur:        "37e95bdf76158a4d4502fa443fd5f03269437a54860a8d7faadb842f22ad41b9"
    sha256 cellar: :any_skip_relocation, catalina:       "5c696c12782ecf79d57b8f7ee65a30318753a8bbe775bd1ae98b05728e5b15ff"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "17f6fecf1c4ed31f89e998e4d40f848bf92e21b00527f2e4d6b03497951b7ec7"
  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-30 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-30",
      revision: "de260aeac64464483585e80a5593c014d222d719"
  version "2021-10-30"
  license "GPL-2.0-or-later"
  head "https://github.com/offensive-security/exploitdb.git"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "065195be595a114e63a0a24f758c025ffa66d172d75a88815d37172cfe384d81"
    sha256 cellar: :any_skip_relocation, big_sur:       "2c16e887ea658179cb13c4bb75fe6bd195039047bfb844d7429b6cb8ea4badf7"
    sha256 cellar: :any_skip_relocation, catalina:      "f27746c7e3871386cc04e5bea7a7521ceecfb9917a5c6d87e3ed9426879b683e"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "d52f27e88b28acf1993213a968ad89c837fd827b33bf280b55ab00685accc713"
  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.10485085869237722, 'fraction_numerical': 0.1645073817414884, 'mean_word_length': 4.195618153364633, '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': '3351801', 'n_tokens_mistral': 1668, 'n_tokens_neox': 1329, 'n_words': 187}