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

class Php53Yrmcds < AbstractPhp53Extension
  init
  homepage "https://github.com/cybozu/php-yrmcds"
  url "https://github.com/cybozu/php-yrmcds/archive/v1.0.2.tar.gz"
  sha256 "5a77840db23d5b93b86c3ef9507e10894be85cd43e7283af80b6bbacd4b08b69"
  head "https://github.com/cybozu/php-yrmcds.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "8b7362ed439eeb21fd9227b93c7e053d8f8abd286f148b45e3ad2cd90a5e37f4" => :el_capitan
    sha256 "01745a7c8ba612f3e9b55a9e312a4452d420b08628fba62a2dcdb6d90d6cd144" => :yosemite
    sha256 "c891ad8bba4693816909dbcc4ac201d6213b0506a76d9b45b352d64d3ad70259" => :mavericks
  end

  patch do
    url "https://gist.githubusercontent.com/KonstantinKuklin/4cebe58997e2152cdc35/raw/09a5c4cd1a2739d2d9e0e38338d4e9d01058f914/patch_php-yrmcds_mac.patch"
    sha1 "a566f5eb93db4b088481a731a831bbdb4f0f3b70"
  end

  def install
    ENV.universal_binary if build.universal?

    safe_phpize
    system "./configure", "--prefix=#{prefix}", phpconfig

    system "make"
    prefix.install "modules/yrmcds.so"
    write_config_file if build.with? "config-file"
  end
end<commit_msg>php53-yrmcds: audit fixes<commit_after>require File.expand_path("../../Abstract/abstract-php-extension", __FILE__)

class Php53Yrmcds < AbstractPhp53Extension
  init
  desc "Memcached/yrmcds client extension for PHP5"
  homepage "https://github.com/cybozu/php-yrmcds"
  url "https://github.com/cybozu/php-yrmcds/archive/v1.0.2.tar.gz"
  sha256 "5a77840db23d5b93b86c3ef9507e10894be85cd43e7283af80b6bbacd4b08b69"
  head "https://github.com/cybozu/php-yrmcds.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "8b7362ed439eeb21fd9227b93c7e053d8f8abd286f148b45e3ad2cd90a5e37f4" => :el_capitan
    sha256 "01745a7c8ba612f3e9b55a9e312a4452d420b08628fba62a2dcdb6d90d6cd144" => :yosemite
    sha256 "c891ad8bba4693816909dbcc4ac201d6213b0506a76d9b45b352d64d3ad70259" => :mavericks
  end

  patch do
    url "https://gist.githubusercontent.com/KonstantinKuklin/4cebe58997e2152cdc35/raw/09a5c4cd1a2739d2d9e0e38338d4e9d01058f914/patch_php-yrmcds_mac.patch"
    sha256 "c523d4f6d40370d60244b30e9139c7120289f654f9758cd2e8f5b868d40f0316"
  end

  def install
    ENV.universal_binary if build.universal?

    safe_phpize
    system "./configure", "--prefix=#{prefix}", phpconfig

    system "make"
    prefix.install "modules/yrmcds.so"
    write_config_file if build.with? "config-file"
  end
end
{'fraction_non_alphanumeric': 0.09502806736166801, 'fraction_numerical': 0.20529270248596632, 'mean_word_length': 5.2846347607052895, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 8, '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': '7521375', 'n_tokens_mistral': 1376, 'n_tokens_neox': 1123, 'n_words': 119}