<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.73/phpstan.phar"
  sha256 "d455ecb07f836f2bfff154a40f768fba28e3603c632fcb8caba58760d1ecb9d1"
  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(
          function($class) {
              static $classes = null;<commit_msg>phpstan 0.12.74 (#70704)<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.74/phpstan.phar"
  sha256 "cc40eab30ca57725e16bcdfac9ef85984e326311feec0cc4be528960e8ded314"
  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(
          function($class) {
              static $classes = null;
{'fraction_non_alphanumeric': 0.11918850380388842, 'fraction_numerical': 0.08114961961115807, 'mean_word_length': 3.4014869888475836, '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': '7203586', 'n_tokens_mistral': 503, 'n_tokens_neox': 441, 'n_words': 75}