<commit_before>class PhpAT74 < Formula
  desc "General-purpose scripting language"
  homepage "https://www.php.net/"
  # Should only be updated if the new version is announced on the homepage, https://www.php.net/
  url "https://www.php.net/distributions/php-7.4.21.tar.xz"
  mirror "https://fossies.org/linux/www/php-7.4.21.tar.xz"
  sha256 "cf43384a7806241bc2ff22022619baa4abb9710f12ec1656d0173de992e32a90"
  license "PHP-3.01"

  bottle do
    sha256 arm64_big_sur: "128a2d4bb90560334eb6bf3a1522da545c10a9c7aed631e0d780dd9a8f5efb27"
    sha256 big_sur:       "35f2945562939ad4d03b268358677cfe436b8df9e8f9d3d1e7e252340c33c822"
    sha256 catalina:      "bb7d60f266c1f115c45e1cd824f575bb1dec3ea0a33638e3d561feab0fcd1466"
    sha256 mojave:        "76144f17e6f0cbee4705d0e94252e8ce4f0c3e99755abcc4b5c8e63272b5e6f9"
  end

  keg_only :versioned_formula

  deprecate! date: "2022-11-28", because: :versioned_formula

  depends_on "httpd" => [:build, :test]
  depends_on "pkg-config" => :build
  depends_on "apr"
  depends_on "apr-util"
  depends_on "argon2"
  depends_on "aspell"
  depends_on "autoconf"
  depends_on "curl"
  depends_on "freetds"
  depends_on "gd"
  depends_on "gettext"<commit_msg>php@7.4: add livecheck<commit_after>class PhpAT74 < Formula
  desc "General-purpose scripting language"
  homepage "https://www.php.net/"
  # Should only be updated if the new version is announced on the homepage, https://www.php.net/
  url "https://www.php.net/distributions/php-7.4.21.tar.xz"
  mirror "https://fossies.org/linux/www/php-7.4.21.tar.xz"
  sha256 "cf43384a7806241bc2ff22022619baa4abb9710f12ec1656d0173de992e32a90"
  license "PHP-3.01"

  livecheck do
    url "https://www.php.net/downloads"
    regex(/href=.*?php[._-]v?(#{Regexp.escape(version.major_minor)}(?:\.\d+)*)\.t/i)
  end

  bottle do
    sha256 arm64_big_sur: "128a2d4bb90560334eb6bf3a1522da545c10a9c7aed631e0d780dd9a8f5efb27"
    sha256 big_sur:       "35f2945562939ad4d03b268358677cfe436b8df9e8f9d3d1e7e252340c33c822"
    sha256 catalina:      "bb7d60f266c1f115c45e1cd824f575bb1dec3ea0a33638e3d561feab0fcd1466"
    sha256 mojave:        "76144f17e6f0cbee4705d0e94252e8ce4f0c3e99755abcc4b5c8e63272b5e6f9"
  end

  keg_only :versioned_formula

  deprecate! date: "2022-11-28", because: :versioned_formula

  depends_on "httpd" => [:build, :test]
  depends_on "pkg-config" => :build
  depends_on "apr"
  depends_on "apr-util"
  depends_on "argon2"
  depends_on "aspell"
  depends_on "autoconf"
  depends_on "curl"
  depends_on "freetds"
  depends_on "gd"
  depends_on "gettext"
{'fraction_non_alphanumeric': 0.10588235294117647, 'fraction_numerical': 0.18901960784313726, 'mean_word_length': 4.745495495495495, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 9, 'lorem ipsum': 0, 'www.': 9, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7013000', 'n_tokens_mistral': 1380, 'n_tokens_neox': 1167, 'n_words': 163}