<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-11-16",
      revision: "412b034ee9854fcf7d80ec659a23c56d95e13240"
  version "2021-11-16"
  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: "48fb283e7b23364f5b0f7e133a4bffc81638a4179cad5a145f185b6efbd14d1c"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "4501aecbe4e4100ad650631433a2cd27d09ff7a4dc64d171c9774fd1d589783f"
    sha256 cellar: :any_skip_relocation, monterey:       "2f5f5772cdc837d68a518cbac20aa283fa0437e711f19334fc2933b79955edfe"
    sha256 cellar: :any_skip_relocation, big_sur:        "f74e73634fedcf9de097940549f36152a5e9c36fb06dbdfb09db7c354bfa6476"
    sha256 cellar: :any_skip_relocation, catalina:       "9364d193e860bbb8583214ae7ac69e378e551160d81740a9b93de31e0ed2256b"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "3f9b0f8bcc3800da1c0f10013890068c6486e2f9921bdc46a057fcf6b165d821"
  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"<commit_msg>exploitdb 2021-11-17<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-11-17",
      revision: "11900b8459a23ec2b276bf6433c2e1a8f8b5f33f"
  version "2021-11-17"
  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: "48fb283e7b23364f5b0f7e133a4bffc81638a4179cad5a145f185b6efbd14d1c"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "4501aecbe4e4100ad650631433a2cd27d09ff7a4dc64d171c9774fd1d589783f"
    sha256 cellar: :any_skip_relocation, monterey:       "2f5f5772cdc837d68a518cbac20aa283fa0437e711f19334fc2933b79955edfe"
    sha256 cellar: :any_skip_relocation, big_sur:        "f74e73634fedcf9de097940549f36152a5e9c36fb06dbdfb09db7c354bfa6476"
    sha256 cellar: :any_skip_relocation, catalina:       "9364d193e860bbb8583214ae7ac69e378e551160d81740a9b93de31e0ed2256b"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "3f9b0f8bcc3800da1c0f10013890068c6486e2f9921bdc46a057fcf6b165d821"
  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"
{'fraction_non_alphanumeric': 0.10248146954560103, 'fraction_numerical': 0.2046406703190461, 'mean_word_length': 4.878787878787879, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6137253', 'n_tokens_mistral': 1674, 'n_tokens_neox': 1310, 'n_words': 164}