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

class Php56Leveldb < AbstractPhp56Extension
  init
  desc "This extension is a PHP binding for Google LevelDB"
  homepage "https://pecl.php.net/package/leveldb"
  url "https://pecl.php.net/get/leveldb-0.1.4.tgz"
  sha256 "b0d2485e7f1353a794cd58bbaf331154723cda98ae41757f1167e1661bd78eef"
  head "https://github.com/reeze/php-leveldb.git"

  bottle do
    cellar :any
    revision 1
    sha256 "43f991d3ab517285e779d8f5f217a62fbec18c94550a05ae0a36a69b077a9b1f" => :el_capitan
    sha256 "a6425c50d69ab0b54352ae670d07075e0722e1fb7e3872c142048c83acd95ba3" => :yosemite
    sha256 "e9bf1bb6b9d0dfc73d6238d685ce4b11c8498198c2f1bb97a04b38fdb3a61516" => :mavericks
  end

  depends_on "leveldb"

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

    ENV.universal_binary if build.universal?

    args = []
    args << "--prefix=#{prefix}"
    args << phpconfig
    args << "--with-leveldb=#{Formula["leveldb"].opt_prefix}"

    safe_phpize
    system "./configure", *args
    system "make"
    prefix.install "modules/leveldb.so"
    write_config_file if build.with? "config-file"<commit_msg>php56-leveldb: bottle revision to rebuild.<commit_after>require File.expand_path("../../Abstract/abstract-php-extension", __FILE__)

class Php56Leveldb < AbstractPhp56Extension
  init
  desc "This extension is a PHP binding for Google LevelDB"
  homepage "https://pecl.php.net/package/leveldb"
  url "https://pecl.php.net/get/leveldb-0.1.4.tgz"
  sha256 "b0d2485e7f1353a794cd58bbaf331154723cda98ae41757f1167e1661bd78eef"
  head "https://github.com/reeze/php-leveldb.git"

  bottle do
    cellar :any
    rebuild 1
    sha256 "43f991d3ab517285e779d8f5f217a62fbec18c94550a05ae0a36a69b077a9b1f" => :el_capitan
    sha256 "a6425c50d69ab0b54352ae670d07075e0722e1fb7e3872c142048c83acd95ba3" => :yosemite
    sha256 "e9bf1bb6b9d0dfc73d6238d685ce4b11c8498198c2f1bb97a04b38fdb3a61516" => :mavericks
  end

  depends_on "leveldb"

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

    ENV.universal_binary if build.universal?

    args = []
    args << "--prefix=#{prefix}"
    args << phpconfig
    args << "--with-leveldb=#{Formula["leveldb"].opt_prefix}"

    safe_phpize
    system "./configure", *args
    system "make"
    prefix.install "modules/leveldb.so"
    write_config_file if build.with? "config-file"
{'fraction_non_alphanumeric': 0.11198347107438017, 'fraction_numerical': 0.15206611570247933, 'mean_word_length': 4.3919821826280625, 'pattern_counts': {'":': 0, '<': 17, '<?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': '3793525', 'n_tokens_mistral': 1159, 'n_tokens_neox': 965, 'n_words': 145}