<commit_before>require 'formula'

class SolrPhp < Formula
  url 'http://pecl.php.net/get/solr-1.0.1.tgz'
  homepage 'http://pecl.php.net/package/mongo'
  md5 '538adecfd52a79feae777870edcfd5d7'

  def install
    Dir.chdir "solr-#{version}" do
      system "phpize"
      system "./configure", "--prefix=#{prefix}"
      system "make"
      prefix.install "modules/solr.so"
    end
  end

  def caveats; <<-EOS.undent<commit_msg>solr-php: fix homepage url<commit_after>require 'formula'

class SolrPhp < Formula
  url 'http://pecl.php.net/get/solr-1.0.1.tgz'
  homepage 'http://pecl.php.net/package/solr'
  md5 '538adecfd52a79feae777870edcfd5d7'

  def install
    Dir.chdir "solr-#{version}" do
      system "phpize"
      system "./configure", "--prefix=#{prefix}"
      system "make"
      prefix.install "modules/solr.so"
    end
  end

  def caveats; <<-EOS.undent
{'fraction_non_alphanumeric': 0.1497695852534562, 'fraction_numerical': 0.04377880184331797, 'mean_word_length': 3.07981220657277, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '466427', 'n_tokens_mistral': 361, 'n_tokens_neox': 339, 'n_words': 62}