<commit_before>class Pcre < Formula
  homepage "http://www.pcre.org/"
  url "https://downloads.sourceforge.net/project/pcre/pcre/8.36/pcre-8.36.tar.bz2"
  mirror "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.36.tar.bz2"
  sha256 "ef833457de0c40e82f573e34528f43a751ff20257ad0e86d272ed5637eb845bb"

  bottle do
    cellar :any
    sha1 "b3e7d1cb382ab41fe260cb8c75e96ba45167044f" => :yosemite
    sha1 "3b585fa4fdcd0e1906f6a732809c2e6b015fec2c" => :mavericks
    sha1 "4d48f013859cc1ca72467d4802d1d5d6b06ad542" => :mountain_lion
  end

  option :universal

  fails_with :llvm do
    build 2326
    cause "Bus error in ld on SL 10.6.4"
  end

  def install
    ENV.universal_binary if build.universal?

    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--enable-utf8",
                          "--enable-pcre8",
                          "--enable-pcre16",
                          "--enable-pcre32",
                          "--enable-unicode-properties",
                          "--enable-pcregrep-libz",
                          "--enable-pcregrep-libbz2",
                          "--enable-jit"
    system "make"
    ENV.deparallelize
    system "make", "test"
    system "make", "install"
  end

  test do
    system "#{bin}/pcregrep", "regular expression", "#{prefix}/README"
  end
end
<commit_msg>pcre: use http mirror (was ftp)<commit_after>class Pcre < Formula
  homepage "http://www.pcre.org/"
  url "https://downloads.sourceforge.net/project/pcre/pcre/8.36/pcre-8.36.tar.bz2"
  mirror "http://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.36.tar.bz2"
  sha256 "ef833457de0c40e82f573e34528f43a751ff20257ad0e86d272ed5637eb845bb"

  bottle do
    cellar :any
    sha1 "b3e7d1cb382ab41fe260cb8c75e96ba45167044f" => :yosemite
    sha1 "3b585fa4fdcd0e1906f6a732809c2e6b015fec2c" => :mavericks
    sha1 "4d48f013859cc1ca72467d4802d1d5d6b06ad542" => :mountain_lion
  end

  option :universal

  fails_with :llvm do
    build 2326
    cause "Bus error in ld on SL 10.6.4"
  end

  def install
    ENV.universal_binary if build.universal?

    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--enable-utf8",
                          "--enable-pcre8",
                          "--enable-pcre16",
                          "--enable-pcre32",
                          "--enable-unicode-properties",
                          "--enable-pcregrep-libz",
                          "--enable-pcregrep-libbz2",
                          "--enable-jit"
    system "make"
    ENV.deparallelize
    system "make", "test"
    system "make", "install"
  end

  test do
    system "#{bin}/pcregrep", "regular expression", "#{prefix}/README"
  end
end

{'fraction_non_alphanumeric': 0.12380952380952381, 'fraction_numerical': 0.10440917107583775, 'mean_word_length': 1.9665271966527196, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6851033', 'n_tokens_mistral': 1184, 'n_tokens_neox': 1011, 'n_words': 159}