<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-09",
      revision: "caf7ab9c86e80ee65c0ad51e730d05b7c56f12b7"
  version "2021-10-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: "80d3ae36b791fc31189b77d546208384236e0dc90e7f69d1a26e516b1cb77c91"
    sha256 cellar: :any_skip_relocation, big_sur:       "6213f7916fc5c2e5db5a8765902391cbe0fbdcb63dc0f957a202f6be10d6b305"
    sha256 cellar: :any_skip_relocation, catalina:      "aa1d49bbfc9140a33ef406ad7ff1a6a3268bb12f86d8a9da169577e055c2356c"
    sha256 cellar: :any_skip_relocation, mojave:        "ce7b633bcec792e07c95548da1c7953c58c74c92b78f9fef2dec3174a67c43d4"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "643b633a941ca529475edecd61ceb70f7ad95ee92066fc15837c5426043e4274"
  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"<commit_msg>exploitdb: update 2021-10-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-10-09",
      revision: "caf7ab9c86e80ee65c0ad51e730d05b7c56f12b7"
  version "2021-10-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: "399c90910ff3aa5c48b714a8805f0bd85f9a6d9d14ed2c661cf063168fe37e38"
    sha256 cellar: :any_skip_relocation, big_sur:       "b63e3b832003f7df45857b2ef263e52ad59046d9b682cca37268b807000e9c27"
    sha256 cellar: :any_skip_relocation, catalina:      "de32d14fdbdd2089c94836fac2acd0f9d42f061780c179c3ca113d0a17763682"
    sha256 cellar: :any_skip_relocation, mojave:        "179b31483ef65997ab1d55a570c279c6b01d633b7dcd81f7a1660f3b24903327"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "99fa7e651d4be81b9ad993967573cf0b4d735816bd4dd8e38d8e50ed0e268827"
  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"
{'fraction_non_alphanumeric': 0.10710382513661203, 'fraction_numerical': 0.19781420765027322, 'mean_word_length': 4.756813417190775, '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': '1028640', 'n_tokens_mistral': 1466, 'n_tokens_neox': 1158, 'n_words': 146}