<commit_before>require File.expand_path("../../Abstract/abstract-php-extension", __FILE__)

class Php56Mongodb < AbstractPhp56Extension
  init
  desc "MongoDB driver for PHP."
  homepage "https://pecl.php.net/package/mongodb"
  url "https://pecl.php.net/get/mongodb-1.1.2.tgz"
  sha256 "4cb80002dfb6be0805457ef0c9f4e91fd03c2e54baedac958ad1e498c741484d"
  head "https://github.com/mongodb/mongo-php-driver.git"

  bottle do
    sha256 "361cb03244747e3135890aa15f5b93e9cb5ef97861e4f1b1b31acfdd60e0be1f" => :el_capitan
    sha256 "b0ac1ec5b288f0338dffdbcba9c8ca1936ad51b402aeaf98ef82103f1ec1ca9f" => :yosemite
    sha256 "b5d109526fa5235080709b3fb8cf75d30840a6d8e6a40f7838404527e7c63fec" => :mavericks
  end

  depends_on "openssl"

  def install
    Dir.chdir "mongodb-#{version}" unless build.head?

    ENV.universal_binary if build.universal?

    safe_phpize
    system "./configure", "--prefix=#{prefix}",
                          phpconfig,
                          "--with-openssl-dir=#{Formula["openssl"].opt_prefix}"
    system "make"
    prefix.install "modules/mongodb.so"
    write_config_file if build.with? "config-file"
  end
end<commit_msg>php56-mongodb: update 1.1.2 bottle.<commit_after>require File.expand_path("../../Abstract/abstract-php-extension", __FILE__)

class Php56Mongodb < AbstractPhp56Extension
  init
  desc "MongoDB driver for PHP."
  homepage "https://pecl.php.net/package/mongodb"
  url "https://pecl.php.net/get/mongodb-1.1.2.tgz"
  sha256 "4cb80002dfb6be0805457ef0c9f4e91fd03c2e54baedac958ad1e498c741484d"
  head "https://github.com/mongodb/mongo-php-driver.git"

  bottle do
    sha256 "361447f8d9871281df7d59166cd825b8e3334880b2b477b59d947919f0bbc887" => :el_capitan
    sha256 "264e746b1d942c71eacc67da13e742c358a98b523635049bb61ae922f4c1e689" => :yosemite
    sha256 "a134d2816714ed8bc9876f66901f26a3788f87de865a3591612f427149e45373" => :mavericks
  end

  depends_on "openssl"

  def install
    Dir.chdir "mongodb-#{version}" unless build.head?

    ENV.universal_binary if build.universal?

    safe_phpize
    system "./configure", "--prefix=#{prefix}",
                          phpconfig,
                          "--with-openssl-dir=#{Formula["openssl"].opt_prefix}"
    system "make"
    prefix.install "modules/mongodb.so"
    write_config_file if build.with? "config-file"
  end
end
{'fraction_non_alphanumeric': 0.11182519280205655, 'fraction_numerical': 0.1585261353898886, 'mean_word_length': 3.8645833333333335, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, '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': '5182276', 'n_tokens_mistral': 1129, 'n_tokens_neox': 919, 'n_words': 120}