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

class Php53Midgard2 < AbstractPhp53Extension
  init
  homepage "http://www.midgard-project.org"
  url "https://github.com/midgardproject/midgard-php5/archive/12.09.1.tar.gz"
  sha1 "d83519a9d513a47e9e6a02e90f6fb957f036b082"
  head "https://github.com/midgardproject/midgard-php5.git", :branch => "ratatoskr"

  depends_on "pkg-config" => :build
  depends_on "midgard2"

  def install
    ENV.universal_binary if build.universal?

    safe_phpize
    system "./configure", "--prefix=#{prefix}",<commit_msg>php53-midgard2: convert from sha1 to sha256<commit_after>require File.expand_path("../../Abstract/abstract-php-extension", __FILE__)

class Php53Midgard2 < AbstractPhp53Extension
  init
  homepage "http://www.midgard-project.org"
  url "https://github.com/midgardproject/midgard-php5/archive/12.09.1.tar.gz"
  sha256 "633ed2dce0c43222c13b2be1d2d044343f37e69cbdf727abc78ac53b6d871fe3"
  head "https://github.com/midgardproject/midgard-php5.git", :branch => "ratatoskr"

  depends_on "pkg-config" => :build
  depends_on "midgard2"

  def install
    ENV.universal_binary if build.universal?

    safe_phpize
    system "./configure", "--prefix=#{prefix}",
{'fraction_non_alphanumeric': 0.1376, 'fraction_numerical': 0.0808, 'mean_word_length': 4.712328767123288, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '2194539', 'n_tokens_mistral': 522, 'n_tokens_neox': 452, 'n_words': 66}