<commit_before>require "language/go"

class Mongodb < Formula
  desc "High-performance, schema-free, document-oriented database"
  homepage "https://www.mongodb.org/"
  url "https://fastdl.mongodb.org/src/mongodb-src-r3.4.1.tar.gz"
  sha256 "54f475e553827733fb351ee4b03b470297f0d08e0434fbf7e6661705124da97b"

  bottle do
    rebuild 1
    sha256 "cde99d85a61a7d98205ebf144f0f6518bce137dea7ec72f542caafa76efd788d" => :sierra
    sha256 "6533f73019753d672eac8e99a33ea5926f799381acadb22c3acceef5ec2b0cca" => :el_capitan
    sha256 "3092cb1bcdf542be5fd5afec77257b4a6f2c618a0ff185f6e1b04267f5afdddc" => :yosemite
  end

  option "with-boost", "Compile using installed boost, not the version shipped with mongodb"
  option "with-sasl", "Compile with SASL support"

  depends_on "boost" => :optional
  depends_on "go" => :build
  depends_on :macos => :mountain_lion
  depends_on "scons" => :build
  depends_on "openssl" => :recommended

  go_resource "github.com/mongodb/mongo-tools" do
    url "https://github.com/mongodb/mongo-tools.git",
        :tag => "r3.4.1",
        :revision => "4a0fbf5245669b55915adf7547ac592223681fe1",
        :shallow => false
  end

  needs :cxx11

  def install
    ENV.cxx11 if MacOS.version < :mavericks
    ENV.libcxx if build.devel?<commit_msg>mongodb: update 3.4.1 bottle.<commit_after>require "language/go"

class Mongodb < Formula
  desc "High-performance, schema-free, document-oriented database"
  homepage "https://www.mongodb.org/"
  url "https://fastdl.mongodb.org/src/mongodb-src-r3.4.1.tar.gz"
  sha256 "54f475e553827733fb351ee4b03b470297f0d08e0434fbf7e6661705124da97b"

  bottle do
    sha256 "8c2af8c2d579ec5519ce73f256fd3298a956ba26104ba4f815edecde438dff58" => :sierra
    sha256 "2e5256d13f6c113b544092d4935fcc171c8115728fb7512e54a5863df124814f" => :el_capitan
    sha256 "7df4924bffff7cc652d81fa5fe785550877b1921db60b3744208ec1ad9e1f500" => :yosemite
  end

  option "with-boost", "Compile using installed boost, not the version shipped with mongodb"
  option "with-sasl", "Compile with SASL support"

  depends_on "boost" => :optional
  depends_on "go" => :build
  depends_on :macos => :mountain_lion
  depends_on "scons" => :build
  depends_on "openssl" => :recommended

  go_resource "github.com/mongodb/mongo-tools" do
    url "https://github.com/mongodb/mongo-tools.git",
        :tag => "r3.4.1",
        :revision => "4a0fbf5245669b55915adf7547ac592223681fe1",
        :shallow => false
  end

  needs :cxx11

  def install
    ENV.cxx11 if MacOS.version < :mavericks
    ENV.libcxx if build.devel?
{'fraction_non_alphanumeric': 0.10588235294117647, 'fraction_numerical': 0.16588235294117648, 'mean_word_length': 4.509719222462203, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 25, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, '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': '4395082', 'n_tokens_mistral': 1289, 'n_tokens_neox': 1045, 'n_words': 172}