<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.1/passenger-6.0.1.tar.gz"
  sha256 "038be424e30a850f340285371419a9bbf236d103f81c79d50e2807bb335502e5"
  head "https://github.com/phusion/passenger.git", :branch => "stable-6.0"

  bottle do
    cellar :any
    sha256 "c8df29e4977d5e7495ac2bca1a5299a38a361955014e2ccb200f6495b2dee464" => :mojave
    sha256 "4cd91a1f49d517eb4752bfe0c328f97c040a6bde02200863009c3e61bd329eb6" => :high_sierra
    sha256 "d094cecf62e66a527482b681bdfa01cc7fa956a16ad9e4d2fea520ffc63cac6f" => :sierra
  end

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

  patch do
    url "https://github.com/phusion/passenger/commit/20ca9e52.patch?full_index=1"
    sha256 "e18966542571ce906b6fd9bdb7959418fba20da3669a2c7442a17f4e53179892"
  end

  def install
    # https://github.com/Homebrew/homebrew-core/pull/1046
    ENV.delete("SDKROOT")

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

    system "rake", "apache2"
    system "rake", "nginx"
    nginx_addon_dir = `./bin/passenger-config about nginx-addon-dir`.strip
<commit_msg>passenger: update 6.0.1 bottle.<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.1/passenger-6.0.1.tar.gz"
  sha256 "038be424e30a850f340285371419a9bbf236d103f81c79d50e2807bb335502e5"
  head "https://github.com/phusion/passenger.git", :branch => "stable-6.0"

  bottle do
    cellar :any
    rebuild 1
    sha256 "1206345ad70f7998f79b49a626c016e2b98e1e35be44688f6d87a3647d861279" => :mojave
    sha256 "9b293f6dddc2328b3ef8aa7832216404a46c9f6477f3ea4cbb4685b2ae56a6d1" => :high_sierra
    sha256 "bfd2b214a935f1ffe3cd873820de3457037fe0d6f160e42c06390746e730fddd" => :sierra
  end

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

  patch do
    url "https://github.com/phusion/passenger/commit/20ca9e52.patch?full_index=1"
    sha256 "e18966542571ce906b6fd9bdb7959418fba20da3669a2c7442a17f4e53179892"
  end

  def install
    # https://github.com/Homebrew/homebrew-core/pull/1046
    ENV.delete("SDKROOT")

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

    system "rake", "apache2"
    system "rake", "nginx"
    nginx_addon_dir = `./bin/passenger-config about nginx-addon-dir`.strip

{'fraction_non_alphanumeric': 0.12598425196850394, 'fraction_numerical': 0.16305774278215224, 'mean_word_length': 4.5740402193784275, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 10, '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': '310712', 'n_tokens_mistral': 1552, 'n_tokens_neox': 1279, 'n_words': 167}