<commit_before>require 'formula'

class Php53Ssh2 < Formula
  homepage 'http://pecl.php.net/package/ssh2'
  url 'http://pecl.php.net/get/ssh2-0.11.3.tgz'
  md5 'd295c966adf1352cad187604b312c687'
  version '0.11.3'

  depends_on 'libssh2'

  def install
    Dir.chdir "ssh2-#{version}" do
      ENV.universal_binary unless Hardware.is_64_bit?

      system "phpize"
      system "./configure", "--prefix=#{prefix}"
      system "make"
      prefix.install "modules/ssh2.so"
    end
  end

  def caveats; <<-EOS.undent
    To finish installing php53-ssh2:
      * Add the following line to #{etc}/php.ini:
        extension="#{prefix}/ssh2.so"
      * Restart your webserver.
      * Write a PHP page that calls "phpinfo();"
      * If you see it, you have been successful!
    EOS
  end
end<commit_msg>Updated php53-ssh2 formula to match homebrew-php standards<commit_after>require 'formula'

class Php53Ssh2 < Formula
  homepage 'http://pecl.php.net/package/ssh2'
  url 'http://pecl.php.net/get/ssh2-0.11.3.tgz'
  md5 'd295c966adf1352cad187604b312c687'
  head 'https://svn.php.net/repository/pecl/ssh2/trunk/', :using => :svn

  depends_on 'autoconf' => :build
  depends_on 'libssh2'

  def install
    Dir.chdir "ssh2-#{version}" unless ARGV.build_head?

    # See https://github.com/mxcl/homebrew/pull/5947
    ENV.universal_binary unless Hardware.is_64_bit?

    system "phpize"
    system "./configure", "--prefix=#{prefix}"
    system "make"
    prefix.install "modules/ssh2.so"
  end

  def caveats; <<-EOS.undent
    To finish installing php53-ssh2:
      * Add the following line to #{etc}/php.ini:
        [ssh2]
        extension="#{prefix}/ssh2.so"
      * Restart your webserver.
      * Write a PHP page that calls "phpinfo();"
      * Load it in a browser and look for the info on the solr module.
      * If you see it, you have been successful!
    EOS
  end
end
{'fraction_non_alphanumeric': 0.12619808306709265, 'fraction_numerical': 0.05058572949946752, 'mean_word_length': 2.9145833333333333, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '1031343', 'n_tokens_mistral': 747, 'n_tokens_neox': 671, 'n_words': 165}