<commit_before>class Re2 < Formula
  homepage "https://github.com/google/re2"
  url "https://re2.googlecode.com/files/re2-20140304.tgz"
  sha1 "f30dda8e530921b623c32aa58a5dabbe9157f6ca"

  head "https://github.com/google/re2.git"

  bottle do
    cellar :any
    revision 1
    sha1 "c502279673f7a522964161813c1d284d3dd12115" => :mavericks
    sha1 "ed4e24ef60a2c44af9ed67b22d6f983f3177f0fc" => :mountain_lion
    sha1 "50250f3de155321a6b93276f0df967e868fc4ca8" => :lion
  end

  def install
    # https://code.google.com/p/re2/issues/detail?id=99
    if ENV.compiler != :clang || MacOS.version < :mavericks
      inreplace 'libre2.symbols.darwin',
                # operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, re2::StringPiece const&)
                '__ZlsRNSt3__113basic_ostreamIcNS_11char_traitsIcEEEERKN3re211StringPieceE',
                # operator<<(std::ostream&, re2::StringPiece const&)
                '__ZlsRSoRKN3re211StringPieceE'
    end
    system "make", "install", "prefix=#{prefix}"
    mv lib/"libre2.so.0.0.0", lib/"libre2.0.0.0.dylib"<commit_msg>re2: fix library ID.<commit_after>class Re2 < Formula
  homepage "https://github.com/google/re2"
  url "https://re2.googlecode.com/files/re2-20140304.tgz"
  sha1 "f30dda8e530921b623c32aa58a5dabbe9157f6ca"

  head "https://github.com/google/re2.git"

  bottle do
    cellar :any
    revision 1
    sha1 "c502279673f7a522964161813c1d284d3dd12115" => :mavericks
    sha1 "ed4e24ef60a2c44af9ed67b22d6f983f3177f0fc" => :mountain_lion
    sha1 "50250f3de155321a6b93276f0df967e868fc4ca8" => :lion
  end

  def install
    # https://code.google.com/p/re2/issues/detail?id=99
    if ENV.compiler != :clang || MacOS.version < :mavericks
      inreplace 'libre2.symbols.darwin',
                # operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, re2::StringPiece const&)
                '__ZlsRNSt3__113basic_ostreamIcNS_11char_traitsIcEEEERKN3re211StringPieceE',
                # operator<<(std::ostream&, re2::StringPiece const&)
                '__ZlsRSoRKN3re211StringPieceE'
    end
    system "make", "install", "prefix=#{prefix}"
    mv lib/"libre2.so.0.0.0", lib/"libre2.0.0.0.dylib"
    system "install_name_tool", "-id", "#{lib}/libre2.0.dylib", "#{lib}/libre2.0.0.0.dylib"
{'fraction_non_alphanumeric': 0.13681917211328976, 'fraction_numerical': 0.134640522875817, 'mean_word_length': 3.7145790554414786, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 13, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, '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': '2844412', 'n_tokens_mistral': 1107, 'n_tokens_neox': 962, 'n_words': 115}