<commit_before>class Psalm < Formula
  desc "PHP Static Analysis Tool"
  homepage "https://psalm.dev"
  url "https://github.com/vimeo/psalm/releases/download/4.11.2/psalm.phar"
  sha256 "d424f45c136d0e321d4d9f10b290a6fb2df6a4e28c8586e1264616eb647df8e2"
  license "MIT"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "276553a1b56b69ca7163dacfa78235ba6658c99e2de54117749a2602dbeb07cc"
    sha256 cellar: :any_skip_relocation, big_sur:       "b2730acad764b62d8a74dcd90dc3e94be2c46e905521fe523fcbcbad1b3150f7"
    sha256 cellar: :any_skip_relocation, catalina:      "b2730acad764b62d8a74dcd90dc3e94be2c46e905521fe523fcbcbad1b3150f7"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "276553a1b56b69ca7163dacfa78235ba6658c99e2de54117749a2602dbeb07cc"
  end

  depends_on "composer" => :test
  depends_on "php"

  # Keg-relocation breaks the formula when it replaces `/usr/local` with a non-default prefix
  on_macos do
    pour_bottle? only_if: :default_prefix if Hardware::CPU.intel?
  end

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

  test do
    (testpath/"composer.json").write <<~EOS
      {
        "name": "homebrew/psalm-test",
        "description": "Testing if Psalm has been installed properly.",
        "type": "project",
        "require": {
          "php": ">=7.1.3"
        },
        "license": "MIT",
        "autoload": {
          "psr-4": {
            "Homebrew\\\\PsalmTest\\\\": "src/"
          }
        },
        "minimum-stability": "stable"<commit_msg>psalm: update 4.11.2 bottle.<commit_after>class Psalm < Formula
  desc "PHP Static Analysis Tool"
  homepage "https://psalm.dev"
  url "https://github.com/vimeo/psalm/releases/download/4.11.2/psalm.phar"
  sha256 "d424f45c136d0e321d4d9f10b290a6fb2df6a4e28c8586e1264616eb647df8e2"
  license "MIT"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "276553a1b56b69ca7163dacfa78235ba6658c99e2de54117749a2602dbeb07cc"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "276553a1b56b69ca7163dacfa78235ba6658c99e2de54117749a2602dbeb07cc"
    sha256 cellar: :any_skip_relocation, monterey:       "b2730acad764b62d8a74dcd90dc3e94be2c46e905521fe523fcbcbad1b3150f7"
    sha256 cellar: :any_skip_relocation, big_sur:        "b2730acad764b62d8a74dcd90dc3e94be2c46e905521fe523fcbcbad1b3150f7"
    sha256 cellar: :any_skip_relocation, catalina:       "b2730acad764b62d8a74dcd90dc3e94be2c46e905521fe523fcbcbad1b3150f7"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "276553a1b56b69ca7163dacfa78235ba6658c99e2de54117749a2602dbeb07cc"
  end

  depends_on "composer" => :test
  depends_on "php"

  # Keg-relocation breaks the formula when it replaces `/usr/local` with a non-default prefix
  on_macos do
    pour_bottle? only_if: :default_prefix if Hardware::CPU.intel?
  end

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

  test do
    (testpath/"composer.json").write <<~EOS
      {
        "name": "homebrew/psalm-test",
        "description": "Testing if Psalm has been installed properly.",
        "type": "project",
        "require": {
          "php": ">=7.1.3"
        },
        "license": "MIT",
        "autoload": {
          "psr-4": {
            "Homebrew\\\\PsalmTest\\\\": "src/"
          }
        },
        "minimum-stability": "stable"
{'fraction_non_alphanumeric': 0.10678733031674208, 'fraction_numerical': 0.16048265460030167, 'mean_word_length': 3.5991678224687935, 'pattern_counts': {'":': 20, '<': 9, '<?xml version=': 0, '>': 9, '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': '6838568', 'n_tokens_mistral': 1655, 'n_tokens_neox': 1358, 'n_words': 206}