<commit_before>class Passenger < Formula
  desc "Server for Ruby, Python, and Node.js apps via Apache/NGINX"
  homepage "https://www.phusionpassenger.com/"
  url "https://github.com/phusion/passenger/releases/download/release-6.0.12/passenger-6.0.12.tar.gz"
  sha256 "4d15063dea6bce195e251d2b42e7bb67fab0049b8d6c423188566bc11ce9a8ad"
  license "MIT"
  revision 1
  head "https://github.com/phusion/passenger.git", branch: "stable-6.0"

  bottle do
    sha256 cellar: :any, arm64_monterey: "d0793ff1f56f9b7356addd79d8e4436e8f855c067cce3f44ed2aa687892d98be"
    sha256 cellar: :any, arm64_big_sur:  "73564aa32a83f9ae697739b8a278c725ec3edb9d1d7d93b1c15799ecc88c99cf"
    sha256 cellar: :any, monterey:       "4a78d0a1f1937f4ff3848fec2001920f2d62a38dd895343a9ff9b21cf62d8009"
    sha256 cellar: :any, big_sur:        "33e15d69aa3006b612416a0d4ea4e4851dcc226a9f1deb21a4cb07c979bbd6ce"
    sha256 cellar: :any, catalina:       "e41d80334a5a0a475a7f435258b7f0a008535e6f21a992f0bbf85aa506e739bd"
  end

  # to build nginx module
  depends_on "nginx" => [:build, :test]
  depends_on "openssl@1.1"
  depends_on "pcre"
  uses_from_macos "ruby", since: :catalina

  def install
    if MacOS.version >= :mojave && MacOS::CLT.installed?
      ENV["SDKROOT"] = MacOS::CLT.sdk_path(MacOS.version)
    else
      ENV.delete("SDKROOT")
    end

    inreplace "src/ruby_supportlib/phusion_passenger/platform_info/openssl.rb" do |s|
      s.gsub! "-I/usr/local/opt/openssl/include", "-I#{Formula["openssl@1.1"].opt_include}"
      s.gsub! "-L/usr/local/opt/openssl/lib", "-L#{Formula["openssl@1.1"].opt_lib}"
    end

    system "rake", "apache2"
    system "rake", "nginx"
    nginx_addon_dir = `./bin/passenger-config about nginx-addon-dir`.strip<commit_msg>passenger: revision bump (nginx 1.21.6)<commit_after>class Passenger < Formula
  desc "Server for Ruby, Python, and Node.js apps via Apache/NGINX"
  homepage "https://www.phusionpassenger.com/"
  url "https://github.com/phusion/passenger/releases/download/release-6.0.12/passenger-6.0.12.tar.gz"
  sha256 "4d15063dea6bce195e251d2b42e7bb67fab0049b8d6c423188566bc11ce9a8ad"
  license "MIT"
  revision 2
  head "https://github.com/phusion/passenger.git", branch: "stable-6.0"

  bottle do
    sha256 cellar: :any, arm64_monterey: "d0793ff1f56f9b7356addd79d8e4436e8f855c067cce3f44ed2aa687892d98be"
    sha256 cellar: :any, arm64_big_sur:  "73564aa32a83f9ae697739b8a278c725ec3edb9d1d7d93b1c15799ecc88c99cf"
    sha256 cellar: :any, monterey:       "4a78d0a1f1937f4ff3848fec2001920f2d62a38dd895343a9ff9b21cf62d8009"
    sha256 cellar: :any, big_sur:        "33e15d69aa3006b612416a0d4ea4e4851dcc226a9f1deb21a4cb07c979bbd6ce"
    sha256 cellar: :any, catalina:       "e41d80334a5a0a475a7f435258b7f0a008535e6f21a992f0bbf85aa506e739bd"
  end

  # to build nginx module
  depends_on "nginx" => [:build, :test]
  depends_on "openssl@1.1"
  depends_on "pcre"
  uses_from_macos "ruby", since: :catalina

  def install
    if MacOS.version >= :mojave && MacOS::CLT.installed?
      ENV["SDKROOT"] = MacOS::CLT.sdk_path(MacOS.version)
    else
      ENV.delete("SDKROOT")
    end

    inreplace "src/ruby_supportlib/phusion_passenger/platform_info/openssl.rb" do |s|
      s.gsub! "-I/usr/local/opt/openssl/include", "-I#{Formula["openssl@1.1"].opt_include}"
      s.gsub! "-L/usr/local/opt/openssl/lib", "-L#{Formula["openssl@1.1"].opt_lib}"
    end

    system "rake", "apache2"
    system "rake", "nginx"
    nginx_addon_dir = `./bin/passenger-config about nginx-addon-dir`.strip
{'fraction_non_alphanumeric': 0.12179121505989732, 'fraction_numerical': 0.15858528237307473, 'mean_word_length': 4.5933014354066986, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, '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': '5859332', 'n_tokens_mistral': 1812, 'n_tokens_neox': 1512, 'n_words': 209}