<commit_before>require 'formula'

class Mongodb < Formula
  homepage 'http://www.mongodb.org/'
  url 'http://downloads.mongodb.org/src/mongodb-src-r2.4.6.tar.gz'
  sha1 '32066d405f3bed175c9433dc4ac455c2e0091b53'

  bottle do
    revision 2
    sha1 '346303b785bafeae18228c9ef180b58f052f14e7' => :mountain_lion
    sha1 'be5cb31e61d55fc7df83c25e19c6c9ab6f4e8aed' => :lion
    sha1 'f2eb7be5c35c1e185b5af617829ff96f4307e2b0' => :snow_leopard
  end

  devel do
    url 'http://downloads.mongodb.org/src/mongodb-src-r2.5.2.tar.gz'
    sha1 'e6b0aa35ea78e6bf9d7791a04810a4db4d69decc'
  end

  head 'https://github.com/mongodb/mongo.git'

  def patches
    # Fix Clang v8 build failure.
    'https://github.com/mongodb/mongo/commit/be4bc7.patch'
  end

  depends_on 'scons' => :build
  depends_on 'openssl' => :optional

  def install
    # mongodb currently doesn't support building against libc++
    # This will be fixed in the 2.6 release, but meanwhile it must
    # be built against libstdc++
    # See: https://github.com/mxcl/homebrew/issues/22771
    ENV.append 'CXXFLAGS', '-stdlib=libstdc++' if ENV.compiler == :clang

    args = ["--prefix=#{prefix}", "-j#{ENV.make_jobs}"]
    args << '--64' if MacOS.prefer_64_bit?<commit_msg>mongodb: 2.4.7 (stable) and 2.5.3 (devel)<commit_after>require 'formula'

class Mongodb < Formula
  homepage 'http://www.mongodb.org/'
  url 'http://downloads.mongodb.org/src/mongodb-src-r2.4.7.tar.gz'
  sha1 'abef63992fe12e4e68a7d9de01d8d8eaa8705c9a'

  bottle do
    revision 2
    sha1 '346303b785bafeae18228c9ef180b58f052f14e7' => :mountain_lion
    sha1 'be5cb31e61d55fc7df83c25e19c6c9ab6f4e8aed' => :lion
    sha1 'f2eb7be5c35c1e185b5af617829ff96f4307e2b0' => :snow_leopard
  end

  devel do
    url 'http://downloads.mongodb.org/src/mongodb-src-r2.5.3.tar.gz'
    sha1 '8fbd7f6f2a55092ae0e461ee0f5a4a7f738d40c9'
  end

  head 'https://github.com/mongodb/mongo.git'

  def patches
    # Fix osx_min_verson issues with clang
    'https://github.com/mongodb/mongo/commit/978af9.patch' if build.devel?
  end

  depends_on 'scons' => :build
  depends_on 'openssl' => :optional

  def install
    # mongodb currently doesn't support building against libc++
    # This will be fixed in the 2.6 release, but meanwhile it must
    # be built against libstdc++
    # See: https://github.com/mxcl/homebrew/issues/22771
    ENV.append 'CXXFLAGS', '-stdlib=libstdc++' if ENV.compiler == :clang

    args = ["--prefix=#{prefix}", "-j#{ENV.make_jobs}"]
    args << '--64' if MacOS.prefer_64_bit?
{'fraction_non_alphanumeric': 0.12772709242364141, 'fraction_numerical': 0.11463704879016264, 'mean_word_length': 3.7765151515151514, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7288762', 'n_tokens_mistral': 1213, 'n_tokens_neox': 1047, 'n_words': 184}