<commit_before>require "formula"

class Rethinkdb < Formula
  homepage "http://www.rethinkdb.com/"
  url "http://download.rethinkdb.com/dist/rethinkdb-1.13.4.tgz"
  sha1 "de41b727482b3662cce3e11e527a464ebf925795"

  bottle do
    revision 1
    sha1 "596f771d45a1dfddc929e5def9d4d8361aac73f4" => :mavericks
    sha1 "6eebbd619c542582d63e922701e4e6c705f4dbdc" => :mountain_lion
    sha1 "4038e3599d6a44d993429bef671e8e2b9625ddf6" => :lion
  end

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

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

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

    # brew's v8 is too recent. rethinkdb uses an older v8 API
    args += ["--fetch", "v8"]

    # rethinkdb requires that protobuf be linked against libc++<commit_msg>rethinkdb 1.14.0<commit_after>require "formula"

class Rethinkdb < Formula
  homepage "http://www.rethinkdb.com/"
  url "http://download.rethinkdb.com/dist/rethinkdb-1.14.0.tgz"
  sha1 "508b33661b9804ebd265484ad558abc86ae20815"

  bottle do
    revision 1
    sha1 "596f771d45a1dfddc929e5def9d4d8361aac73f4" => :mavericks
    sha1 "6eebbd619c542582d63e922701e4e6c705f4dbdc" => :mountain_lion
    sha1 "4038e3599d6a44d993429bef671e8e2b9625ddf6" => :lion
  end

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

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

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

    # brew's v8 is too recent. rethinkdb uses an older v8 API
    args += ["--fetch", "v8"]

    # rethinkdb requires that protobuf be linked against libc++
{'fraction_non_alphanumeric': 0.11076923076923077, 'fraction_numerical': 0.15076923076923077, 'mean_word_length': 3.7823529411764705, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, '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': '4199425', 'n_tokens_mistral': 812, 'n_tokens_neox': 685, 'n_words': 138}