<commit_before>class Passenger < Formula
  desc "Server for Ruby, Python, and Node.js apps via Apache/NGINX"
  homepage "https://www.phusionpassenger.com/"
  url "https://s3.amazonaws.com/phusion-passenger/releases/passenger-5.1.7.tar.gz"
  sha256 "2b40a00a3fdc90a6acf784319f60fd53549f036ffc99fcbb23a0658cb7e2b215"
  head "https://github.com/phusion/passenger.git"

  bottle do
    sha256 "100fc232600e7ebb89147e2940a76f9eaebaa8599a4031608772d925ebffc296" => :sierra
    sha256 "fcc4b9f5f4c38d8252097bf51552b73de43a95aed1ee5d20d54822bdd9482391" => :el_capitan
    sha256 "899513b76dfae7570bd1336344542cec84be6af7f8ed8fd96e4eb6e917dc0b87" => :yosemite
  end

  option "without-apache2-module", "Disable Apache2 module"

  depends_on :macos => :lion
  depends_on "pcre"
  depends_on "openssl"

  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

    rake "apache2" if build.with? "apache2-module"
    rake "nginx"

    (libexec/"download_cache").mkpath

    # Fixes https://github.com/phusion/passenger/issues/1288
    rm_rf "buildout/libev"
    rm_rf "buildout/libuv"
    rm_rf "buildout/cache"
<commit_msg>passenger: update 5.1.7 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://s3.amazonaws.com/phusion-passenger/releases/passenger-5.1.7.tar.gz"
  sha256 "2b40a00a3fdc90a6acf784319f60fd53549f036ffc99fcbb23a0658cb7e2b215"
  head "https://github.com/phusion/passenger.git"

  bottle do
    sha256 "df91116c4b9ad63f97d81daea2554829875acf8bc4fad9278d0ce9d3ba94724f" => :sierra
    sha256 "25958d10fe7f8cdf6a30388ad5efdc7e8a3aeeb25bd5008f8d8848af1caf6681" => :el_capitan
    sha256 "6257635710ea45438ec8d5f15110cef1f14ef600d2483e6950829841dedf6311" => :yosemite
  end

  option "without-apache2-module", "Disable Apache2 module"

  depends_on :macos => :lion
  depends_on "pcre"
  depends_on "openssl"

  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

    rake "apache2" if build.with? "apache2-module"
    rake "nginx"

    (libexec/"download_cache").mkpath

    # Fixes https://github.com/phusion/passenger/issues/1288
    rm_rf "buildout/libev"
    rm_rf "buildout/libuv"
    rm_rf "buildout/cache"

{'fraction_non_alphanumeric': 0.12491228070175439, 'fraction_numerical': 0.13087719298245615, 'mean_word_length': 4.472168905950096, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '2055468', 'n_tokens_mistral': 1369, 'n_tokens_neox': 1168, 'n_words': 155}