<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.4/passenger-6.0.4.tar.gz"
  sha256 "ec1e4b555c176642c1c316897177d54b6f7d369490280e8ee3e54644e40b250b"
  revision 7
  head "https://github.com/phusion/passenger.git", :branch => "stable-6.0"

  bottle do
    cellar :any
    sha256 "b43bf5fa841a597dab5efb6ad144b0c45f09461dd6a730a65bb8a611099773a4" => :catalina
    sha256 "3ecd5d83603e811ebacb01469fbeb4763c693a95f59666ee1bd8a392b1fa7d04" => :mojave
    sha256 "f6c5a09acc6d18971828cbb58658522115bd71b3b2adf082d2bc3a118bf80b29" => :high_sierra
  end

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

  # Enables setting temp path to avoid sandbox violations, already merged upstream
  patch do
    url "https://github.com/phusion/passenger/commit/e512231f.patch?full_index=1"
    sha256 "9f39f5c1c8b68516f7bac0ba07921144a5de30b6a72ef2423ea83a77d512bea8"
  end

  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}"<commit_msg>passenger 6.0.5<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.5/passenger-6.0.5.tar.gz"
  sha256 "94c25d5669c6cd1bc93854a020701c9869012eec621bce331bfe2d0c9c8c3532"
  head "https://github.com/phusion/passenger.git", :branch => "stable-6.0"

  bottle do
    cellar :any
    sha256 "b43bf5fa841a597dab5efb6ad144b0c45f09461dd6a730a65bb8a611099773a4" => :catalina
    sha256 "3ecd5d83603e811ebacb01469fbeb4763c693a95f59666ee1bd8a392b1fa7d04" => :mojave
    sha256 "f6c5a09acc6d18971828cbb58658522115bd71b3b2adf082d2bc3a118bf80b29" => :high_sierra
  end

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

  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}"
{'fraction_non_alphanumeric': 0.11815453863465866, 'fraction_numerical': 0.15866466616654162, 'mean_word_length': 4.747844827586207, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 7, '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': '6302422', 'n_tokens_mistral': 1350, 'n_tokens_neox': 1127, 'n_words': 154}