<commit_before>class Phpstan < Formula
  desc "PHP Static Analysis Tool"
  homepage "https://github.com/phpstan/phpstan"
  url "https://github.com/phpstan/phpstan/releases/download/0.12.79/phpstan.phar"
  sha256 "1fa2668dd26d702acdbda77465b27bdce7515e299e4c824c54fba4f0ae97eaff"
  license "MIT"

  bottle :unneeded

  depends_on "php" => :test

  def install
    bin.install "phpstan.phar" => "phpstan"
  end

  test do
    (testpath/"src/autoload.php").write <<~EOS
      <?php
      spl_autoload_register(<commit_msg>phpstan 0.12.80 (#72189)<commit_after>class Phpstan < Formula
  desc "PHP Static Analysis Tool"
  homepage "https://github.com/phpstan/phpstan"
  url "https://github.com/phpstan/phpstan/releases/download/0.12.80/phpstan.phar"
  sha256 "24f1d4851cec6c717b7f80fd9d79f594a9934d932fc42394cae69922e1a4f2b7"
  license "MIT"

  bottle :unneeded

  depends_on "php" => :test

  def install
    bin.install "phpstan.phar" => "phpstan"
  end

  test do
    (testpath/"src/autoload.php").write <<~EOS
      <?php
      spl_autoload_register(
{'fraction_non_alphanumeric': 0.12106768350810296, 'fraction_numerical': 0.09628217349857007, 'mean_word_length': 4.023923444976076, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '4395089', 'n_tokens_mistral': 479, 'n_tokens_neox': 417, 'n_words': 67}