<commit_before>class Nspr < Formula
  desc "Platform-neutral API for system-level and libc-like functions"
  homepage "https://hg.mozilla.org/projects/nspr"
  url "https://archive.mozilla.org/pub/nspr/releases/v4.34.1/src/nspr-4.34.1.tar.gz"
  sha256 "c5b8354c48b632b8f4c1970628146c0e0c0ca8f32c7315d7d5736c002e03774f"
  license "MPL-2.0"

  livecheck do
    url "https://ftp.mozilla.org/pub/nspr/releases/"
    regex(%r{href=.*?v?(\d+(?:\.\d+)+)/?["' >]}i)
  end

  bottle do
    sha256 cellar: :any,                 arm64_monterey: "0fb44c31fa21aee523a8bfb2a5736a7fe29f998591b418b0e3c949a1cd6cbe9d"
    sha256 cellar: :any,                 arm64_big_sur:  "83b1f509c6257103ab0b022236a23b1c5fb745df164dbc784a99264ef0245cd2"
    sha256 cellar: :any,                 monterey:       "b8ae4eda189dcb259f3cec381a89882aa6cfa0ffab48f3788ed642d3d8da3db0"
    sha256 cellar: :any,                 big_sur:        "c774c50ead25959801c98215698cbeed7b325d1d867757afdb50dbcb3d38bf49"
    sha256 cellar: :any,                 catalina:       "2d4e20e62a6d733cda09359f7a50ea99f7a9e356b3687a7766b753f75d2b7e2b"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "92d640f90688994ccaf682e2090dd6e8b4dc01f957332f98da622aa1aab8cb39"
  end

  def install
    ENV.deparallelize
    cd "nspr" do
      args = %W[
        --disable-debug
        --prefix=#{prefix}
        --enable-strip
        --with-pthreads
        --enable-ipv6
        --enable-macos-target=#{MacOS.version}
        --enable-64bit
      ]
      system "./configure", *args

      if OS.mac?
        # Remove the broken (for anyone but Firefox) install_name
        inreplace "config/autoconf.mk", "-install_name @executable_path/$@ ", "-install_name #{lib}/$@ "
      end

      system "make"
      system "make", "install"

      (bin/"compile-et.pl").unlink
      (bin/"prerr.properties").unlink
    end
  end

  test do
    system "#{bin}/nspr-config", "--version"
  end
end
<commit_msg>nspr: update 4.34.1 bottle.<commit_after>class Nspr < Formula
  desc "Platform-neutral API for system-level and libc-like functions"
  homepage "https://hg.mozilla.org/projects/nspr"
  url "https://archive.mozilla.org/pub/nspr/releases/v4.34.1/src/nspr-4.34.1.tar.gz"
  sha256 "c5b8354c48b632b8f4c1970628146c0e0c0ca8f32c7315d7d5736c002e03774f"
  license "MPL-2.0"

  livecheck do
    url "https://ftp.mozilla.org/pub/nspr/releases/"
    regex(%r{href=.*?v?(\d+(?:\.\d+)+)/?["' >]}i)
  end

  bottle do
    sha256 cellar: :any,                 arm64_monterey: "89cac57fbae8797d10169e7357708df8c8c9dd4aafe3c3984555f4a3389a61dc"
    sha256 cellar: :any,                 arm64_big_sur:  "4a8dcae8d968c3162a0a07f30f7c0d790008d831e34cb76c1a23a62b5c17ff26"
    sha256 cellar: :any,                 monterey:       "80ac7f5e86707a572042ea4ad5a92180fd4fb3569bd784dff647408958c704b3"
    sha256 cellar: :any,                 big_sur:        "765c92a1aebb2732c1c544dec207408032821f3997a1b09de222bdc4f46ba1c0"
    sha256 cellar: :any,                 catalina:       "d5ac9d5cfaa2685822266aba63c5916d3ba078e77e7e508e0929e195f78bd1cc"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "94441b578bd30e4ed732141a1df18dba2738486ceb324b4ed302f006a11b2393"
  end

  def install
    ENV.deparallelize
    cd "nspr" do
      args = %W[
        --disable-debug
        --prefix=#{prefix}
        --enable-strip
        --with-pthreads
        --enable-ipv6
        --enable-macos-target=#{MacOS.version}
        --enable-64bit
      ]
      system "./configure", *args

      if OS.mac?
        # Remove the broken (for anyone but Firefox) install_name
        inreplace "config/autoconf.mk", "-install_name @executable_path/$@ ", "-install_name #{lib}/$@ "
      end

      system "make"
      system "make", "install"

      (bin/"compile-et.pl").unlink
      (bin/"prerr.properties").unlink
    end
  end

  test do
    system "#{bin}/nspr-config", "--version"
  end
end

{'fraction_non_alphanumeric': 0.11623143881208398, 'fraction_numerical': 0.1674347158218126, 'mean_word_length': 2.804284323271665, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, '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': '7099863', 'n_tokens_mistral': 1934, 'n_tokens_neox': 1572, 'n_words': 223}