<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:      "2022-01-08",
      revision: "76c02f99c367ba8e27b3c464d60371a149815161"
  version "2022-01-08"
  license "GPL-2.0-or-later"
  head "https://github.com/offensive-security/exploitdb.git", branch: "master"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "12bb57ea185cff00b2f5f7d2f2923cbeeef39d9157f016f8d071b9209a6b30d5"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "558b4b76d2a26176799e5d86daf3a8b58679c95638ed3d2186fcf34e1ed632f7"
    sha256 cellar: :any_skip_relocation, monterey:       "b69f47f755127180d1ccd1a5c130ec084a3146639e8138a89f74515826cd146e"
    sha256 cellar: :any_skip_relocation, big_sur:        "a1d6b860e9d58597554e00d09bb20c87d28b25a8cfa5ffcfb5361f5646593da6"
    sha256 cellar: :any_skip_relocation, catalina:       "4323006072652155e7fa6802e5f77543feb04adcd8b27519bb051cde5e340cd9"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "03ac331e43b4806b2b00996b97b766391662232a9a4255a58796183e4afaa85a"
  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
<commit_msg>exploitdb 2022-01-11<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:      "2022-01-11",
      revision: "6a94460ed626eed8e570c9a6bc957b8cea1e74df"
  version "2022-01-11"
  license "GPL-2.0-or-later"
  head "https://github.com/offensive-security/exploitdb.git", branch: "master"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "12bb57ea185cff00b2f5f7d2f2923cbeeef39d9157f016f8d071b9209a6b30d5"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "558b4b76d2a26176799e5d86daf3a8b58679c95638ed3d2186fcf34e1ed632f7"
    sha256 cellar: :any_skip_relocation, monterey:       "b69f47f755127180d1ccd1a5c130ec084a3146639e8138a89f74515826cd146e"
    sha256 cellar: :any_skip_relocation, big_sur:        "a1d6b860e9d58597554e00d09bb20c87d28b25a8cfa5ffcfb5361f5646593da6"
    sha256 cellar: :any_skip_relocation, catalina:       "4323006072652155e7fa6802e5f77543feb04adcd8b27519bb051cde5e340cd9"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "03ac331e43b4806b2b00996b97b766391662232a9a4255a58796183e4afaa85a"
  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

{'fraction_non_alphanumeric': 0.10060711188204684, 'fraction_numerical': 0.19080659150043366, 'mean_word_length': 4.457413249211356, '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': '469418', 'n_tokens_mistral': 1812, 'n_tokens_neox': 1416, 'n_words': 185}