<commit_before>require 'formula'
require File.expand_path("../../Requirements/php-meta-requirement", __FILE__)
require File.expand_path("../../Requirements/phar-requirement", __FILE__)

class Virtphp < Formula
  homepage 'http://virtphp.org'
  url 'https://github.com/virtphp/virtphp/releases/download/v0.5.2-alpha/virtphp.phar'
  sha1 'ee5dc38d290d2f63400cb98b160e57be32bfc6bc'
  version '0.5.2-alpha'

  depends_on PhpMetaRequirement
  depends_on PharRequirement

  def install
    libexec.install "virtphp.phar"
    sh = libexec + "virtphp"
    sh.write("#!/usr/bin/env bash\n\n/usr/bin/env php -d allow_url_fopen=On -d detect_unicode=Off #{libexec}/virtphp.phar $*")
    chmod 0755, sh
    bin.install_symlink sh
  end

  def caveats; <<-EOS.undent
    Verify your installation by running:
      "virtphp --version".

    You can read more about virtphp by running:
      "brew home virtphp".
    EOS
  end

end<commit_msg>virtphp: resolve `brew audit --strict` warnings<commit_after>require File.expand_path("../../Requirements/php-meta-requirement", __FILE__)
require File.expand_path("../../Requirements/phar-requirement", __FILE__)

class Virtphp < Formula
  homepage "http://virtphp.org"
  url "https://github.com/virtphp/virtphp/releases/download/v0.5.2-alpha/virtphp.phar"
  sha256 "776bce2f6dfd252ef9d886f14d8bbca7cb9e328e69ad900cdf14a552e7e59d30"
  version "0.5.2-alpha"

  depends_on PhpMetaRequirement
  depends_on PharRequirement

  def install
    libexec.install "virtphp.phar"
    sh = libexec + "virtphp"
    sh.write("#!/usr/bin/env bash\n\n/usr/bin/env php -d allow_url_fopen=On -d detect_unicode=Off #{libexec}/virtphp.phar $*")
    chmod 0755, sh
    bin.install_symlink sh
  end

  def caveats; <<-EOS.undent
    Verify your installation by running:
      "virtphp --version".

    You can read more about virtphp by running:
      "brew home virtphp".
    EOS
  end

  test do
    shell_output("virtphp --version").include?(version)
  end
end
{'fraction_non_alphanumeric': 0.12347560975609756, 'fraction_numerical': 0.041158536585365856, 'mean_word_length': 3.643867924528302, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3467625', 'n_tokens_mistral': 761, 'n_tokens_neox': 707, 'n_words': 143}