<commit_before>class Rethinkdb < Formula
  desc "The open-source database for the realtime web"
  homepage "https://www.rethinkdb.com/"
  url "https://download.rethinkdb.com/dist/rethinkdb-2.2.0.tgz"
  sha256 "5f51cecbb05282fff084bf838f9258a1d7171157c09e5f669f54b50f08489676"

  bottle do
    cellar :any
    sha256 "252e12b53cc076d59f7c2ed19eb27921b742f159d0b59db18ee68b0d62901607" => :el_capitan
    sha256 "912fac8790c60a88faa4faa81ce761c8691e27483981bc230fe578040e9ef542" => :yosemite
    sha256 "fe6dce9c89c03adc4bbafd61d89ebb333625d01232ca99d937fdb35e58883ca3" => :mavericks
  end

  depends_on :macos => :lion
  depends_on "boost" => :build
  depends_on "openssl"

  fails_with :gcc do
    build 5666 # GCC 4.2.1
    cause "RethinkDB uses C++0x"
  end

  def install
    args = ["--prefix=#{prefix}"]

    # rethinkdb requires that protobuf be linked against libc++
    # but brew's protobuf is sometimes linked against libstdc++
    args += ["--fetch", "protobuf"]

    system "./configure", *args
    system "make"
    system "make", "install-osx"

    (var/"log/rethinkdb").mkpath<commit_msg>rethinkdb 2.2.1<commit_after>class Rethinkdb < Formula
  desc "The open-source database for the realtime web"
  homepage "https://www.rethinkdb.com/"
  url "https://download.rethinkdb.com/dist/rethinkdb-2.2.1.tgz"
  sha256 "6611b4e62020a68c23e0a1f0a517b97677e0358c261a3e188d14b02b014a2c9e"

  bottle do
    cellar :any
    sha256 "252e12b53cc076d59f7c2ed19eb27921b742f159d0b59db18ee68b0d62901607" => :el_capitan
    sha256 "912fac8790c60a88faa4faa81ce761c8691e27483981bc230fe578040e9ef542" => :yosemite
    sha256 "fe6dce9c89c03adc4bbafd61d89ebb333625d01232ca99d937fdb35e58883ca3" => :mavericks
  end

  depends_on :macos => :lion
  depends_on "boost" => :build
  depends_on "openssl"

  fails_with :gcc do
    build 5666 # GCC 4.2.1
    cause "RethinkDB uses C++0x"
  end

  def install
    args = ["--prefix=#{prefix}"]

    # rethinkdb requires that protobuf be linked against libc++
    # but brew's protobuf is sometimes linked against libstdc++
    args += ["--fetch", "protobuf"]

    system "./configure", *args
    system "make"
    system "make", "install-osx"

    (var/"log/rethinkdb").mkpath
{'fraction_non_alphanumeric': 0.10516772438803264, 'fraction_numerical': 0.17135086128739802, 'mean_word_length': 4.254761904761905, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 4, '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': '4782170', 'n_tokens_mistral': 1106, 'n_tokens_neox': 899, 'n_words': 166}