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

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "5da931d6f8e81b47c71cfc3f705858eca63281a7127af0994631910846079b7e"
    sha256 cellar: :any_skip_relocation, big_sur:       "cccec529199b85b5998d21b2ea8ceb07563e6641b3f3c3e09ce3972e23b9c564"
    sha256 cellar: :any_skip_relocation, catalina:      "dc8506dcd256487c3e567b4613c7cb55b62befef9c336c98eb3f0d22a70edbe6"
    sha256 cellar: :any_skip_relocation, mojave:        "b173cc8c59ff5a1e1a6ae56c74dd7282198be07c61e689b571a3da0f5d9e9b42"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "424afb82b6c3a8b5c8bca706a4e9891be76efca60b576a2f4abc57ba61f45285"
  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-02 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-02",
      revision: "8955161978791d2708fd553031eb989d65fcf28e"
  version "2021-10-02"
  license "GPL-2.0-or-later"
  head "https://github.com/offensive-security/exploitdb.git"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "327c98eaff815c6f42deac66b48d2691b5666de6488a792cc91a3e11ebabfdab"
    sha256 cellar: :any_skip_relocation, big_sur:       "b60716e5b508aba813f6385602d910df007f1485eec4e8f1bdf25f0422704702"
    sha256 cellar: :any_skip_relocation, catalina:      "8eb2d0386b4e93c41413ba535138983c9de97c94a4e43e64b503d2bd4da94b72"
    sha256 cellar: :any_skip_relocation, mojave:        "8d082eb4c114bd16e65f0b8fd929a5cf68648cb3b7a3ad3aa0462ed84869c27c"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "31b6c197cacd98d5b9314ba0012b52efadd41ba26db71e29a1d1d996e1b899ad"
  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.10504074856625414, 'fraction_numerical': 0.16178690009055238, 'mean_word_length': 4.153965785381026, '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': '1263005', 'n_tokens_mistral': 1662, 'n_tokens_neox': 1339, 'n_words': 187}