<commit_before>require 'formula'

class SixtyFourBitRequired < Requirement
  fatal true

  satisfy MacOS.prefer_64_bit?

  def message; <<-EOS.undent
    32-bit MongoDB binaries are no longer available.

    If you need to run a 32-bit version of MongoDB, you can
    compile the server from source:
      http://www.mongodb.org/display/DOCS/Building+for+OS+X
    EOS
  end
end

class Mongodb < Formula
  homepage 'http://www.mongodb.org/'
  url 'http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.2.3.tgz'
  sha1 '6b81469374eb8d1b209fcdd8111d4e654573d095'
  version '2.2.3-x86_64'

  devel do
    url 'http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.3.2.tgz'
    sha1 'b4c31e4bf1ea2613c8fe47cb781de23ff81bafca'
    version '2.3.2-x86_64'
  end

  depends_on SixtyFourBitRequired

  def install
    # Copy the prebuilt binaries to prefix
    prefix.install Dir['*']

    # Create the data and log directories under /var
    (var+'mongodb').mkpath
    (var+'log/mongodb').mkpath<commit_msg>mongodb-2.4.0-rc0<commit_after>require 'formula'

class SixtyFourBitRequired < Requirement
  fatal true

  satisfy MacOS.prefer_64_bit?

  def message; <<-EOS.undent
    32-bit MongoDB binaries are no longer available.

    If you need to run a 32-bit version of MongoDB, you can
    compile the server from source:
      http://www.mongodb.org/display/DOCS/Building+for+OS+X
    EOS
  end
end

class Mongodb < Formula
  homepage 'http://www.mongodb.org/'
  url 'http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.2.3.tgz'
  sha1 '6b81469374eb8d1b209fcdd8111d4e654573d095'
  version '2.2.3-x86_64'

  devel do
    url 'http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.4.0-rc0.tgz'
    sha1 '0c6bcabbf914436d265e16f2ca0cd49b63888e19'
    version '2.4.0-rc0-x86_64'
  end

  depends_on SixtyFourBitRequired

  def install
    # Copy the prebuilt binaries to prefix
    prefix.install Dir['*']

    # Create the data and log directories under /var
    (var+'mongodb').mkpath
    (var+'log/mongodb').mkpath
{'fraction_non_alphanumeric': 0.10721442885771543, 'fraction_numerical': 0.08867735470941884, 'mean_word_length': 3.3698030634573306, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, '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': '7175664', 'n_tokens_mistral': 907, 'n_tokens_neox': 780, 'n_words': 163}