<commit_before>require "formula"

class MongoC < Formula
  homepage "http://docs.mongodb.org/ecosystem/drivers/c/"
  url "https://github.com/mongodb/mongo-c-driver/releases/download/1.1.0/mongo-c-driver-1.1.0.tar.gz"
  sha1 "9277fb0afcf595838da0d5e4715df1526d53e020"

  bottle do
    cellar :any
    sha1 "a1902585054a645fece9ef6e91a53258f3df0356" => :yosemite
    sha1 "53858df7d3bb85e63d070754e2aa8f0e9576266f" => :mavericks
    sha1 "b547c663729e6ec4944462c8d305643dd83d452f" => :mountain_lion
  end

  head "https://github.com/mongodb/mongo-c-driver.git"

  depends_on "pkg-config" => :build
  depends_on "libbson"
  depends_on "openssl"

  def install
    # --enable-sasl=no: https://jira.mongodb.org/browse/CDRIVER-447
    system "./configure", "--prefix=#{prefix}", "--enable-sasl=no"
    system "make", "install"
  end
end<commit_msg>mongo-c: make openssl recommended<commit_after>require "formula"

class MongoC < Formula
  homepage "http://docs.mongodb.org/ecosystem/drivers/c/"
  url "https://github.com/mongodb/mongo-c-driver/releases/download/1.1.0/mongo-c-driver-1.1.0.tar.gz"
  sha1 "9277fb0afcf595838da0d5e4715df1526d53e020"

  bottle do
    cellar :any
    sha1 "a1902585054a645fece9ef6e91a53258f3df0356" => :yosemite
    sha1 "53858df7d3bb85e63d070754e2aa8f0e9576266f" => :mavericks
    sha1 "b547c663729e6ec4944462c8d305643dd83d452f" => :mountain_lion
  end

  head "https://github.com/mongodb/mongo-c-driver.git"

  depends_on "pkg-config" => :build
  depends_on "libbson"
  depends_on "openssl" => :recommended

  def install
    # --enable-sasl=no: https://jira.mongodb.org/browse/CDRIVER-447
    args = ["--prefix=#{prefix}", "--enable-sasl=no"]

    if build.with?('openssl')
      args << "--enable-ssl=yes"
    else
      args << "--enable-ssl=no"
    end

    system "./configure", *args
    system "make", "install"
  end
end
{'fraction_non_alphanumeric': 0.14409066378845117, 'fraction_numerical': 0.13167835941716136, 'mean_word_length': 3.891820580474934, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 12, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, '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': '4508386', 'n_tokens_mistral': 920, 'n_tokens_neox': 779, 'n_words': 107}