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

class Php54Wbxml < AbstractPhp54Extension
  init
  homepage "https://pecl.php.net/package/wbxml"
  url "https://pecl.php.net/get/wbxml-1.0.3.tgz"
  sha1 "2cf4705ad135a9695b3fc8e5e7135f6ad89623e6"
  head "https://svn.php.net/repository/pecl/wbxml/trunk/"

  depends_on "libwbxml"

  # php-wbxml looks for the libwbxml headers in the wrong location
  patch :DATA

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

    ENV.universal_binary if build.universal?<commit_msg>php54-wbxml: convert from sha1 to sha256<commit_after>require File.expand_path("../../Abstract/abstract-php-extension", __FILE__)

class Php54Wbxml < AbstractPhp54Extension
  init
  homepage "https://pecl.php.net/package/wbxml"
  url "https://pecl.php.net/get/wbxml-1.0.3.tgz"
  sha256 "8a2e36aa1e59712614734a150d4bc2c09c1e7d1f9b90404beeb99d32d19d15ae"
  head "https://svn.php.net/repository/pecl/wbxml/trunk/"

  depends_on "libwbxml"

  # php-wbxml looks for the libwbxml headers in the wrong location
  patch :DATA

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

    ENV.universal_binary if build.universal?
{'fraction_non_alphanumeric': 0.12096106048053024, 'fraction_numerical': 0.07456503728251865, 'mean_word_length': 4.275109170305677, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 17}, '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': '2934082', 'n_tokens_mistral': 509, 'n_tokens_neox': 456, 'n_words': 80}