<commit_before>require 'formula'

class Nspr <Formula
  @url='https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.7.6/src/nspr-4.7.6.tar.gz'
  @homepage='http://www.mozilla.org/projects/nspr/'
  @md5='c78384602b4b466081a55025446641db'

  def install
    require 'hardware'

    ENV.deparallelize
    Dir.chdir "mozilla/nsprpub" do
      inreplace "pr/src/Makefile.in", "-framework CoreServices -framework CoreFoundation", "-framework Carbon"

      conf = %W[--prefix=#{prefix} --disable-debug --enable-strip --enable-optimize]
      conf << "--enable-64bit" if Hardware.is_64_bit? and MACOS_VERSION >= 10.6
      system "./configure", *conf

      inreplace "config/autoconf.mk", "-install_name @executable_path/$@ ", ""

      system "make"
      system "make install"
    end
  end
end
<commit_msg>Download nspr over normal HTTP, not HTTPS.<commit_after>require 'formula'

class Nspr <Formula
  url 'http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.7.6/src/nspr-4.7.6.tar.gz'
  homepage 'http://www.mozilla.org/projects/nspr/'
  md5 'c78384602b4b466081a55025446641db'

  def install
    require 'hardware'

    ENV.deparallelize
    Dir.chdir "mozilla/nsprpub" do
      inreplace "pr/src/Makefile.in", "-framework CoreServices -framework CoreFoundation", "-framework Carbon"

      conf = %W[--prefix=#{prefix} --disable-debug --enable-strip --enable-optimize]
      conf << "--enable-64bit" if Hardware.is_64_bit? and MACOS_VERSION >= 10.6
      system "./configure", *conf

      inreplace "config/autoconf.mk", "-install_name @executable_path/$@ ", ""

      system "make"
      system "make install"
    end
  end
end

{'fraction_non_alphanumeric': 0.14783139890042762, 'fraction_numerical': 0.04886988393402566, 'mean_word_length': 3.2545454545454544, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '713042', 'n_tokens_mistral': 633, 'n_tokens_neox': 566, 'n_words': 111}