<commit_before>require 'formula'

class Nginx < Formula
  homepage 'http://nginx.org/'
  url 'http://nginx.org/download/nginx-1.0.14.tar.gz'
  md5 '019844e48c34952253ca26dd6e28c35c'

  devel do
    url 'http://nginx.org/download/nginx-1.1.17.tar.gz'
    md5 'b4c1c855d130352586ffc9a945ea6c00'
  end

  depends_on 'pcre'

  skip_clean 'logs'

  # Changes default port to 8080
  # Tell configure to look for pcre in HOMEBREW_PREFIX
  def patches
    DATA
  end

  def options
    [
      ['--with-passenger', "Compile with support for Phusion Passenger module"],
      ['--with-webdav',    "Compile with support for WebDAV module"]
    ]
  end

  def passenger_config_args
      passenger_root = `passenger-config --root`.chomp<commit_msg>Nginx devel 1.1.18<commit_after>require 'formula'

class Nginx < Formula
  homepage 'http://nginx.org/'
  url 'http://nginx.org/download/nginx-1.0.14.tar.gz'
  md5 '019844e48c34952253ca26dd6e28c35c'

  devel do
    url 'http://nginx.org/download/nginx-1.1.18.tar.gz'
    md5 '82f4b4b1fba68f5f83cc2c641fb6c4c5'
  end

  depends_on 'pcre'

  skip_clean 'logs'

  # Changes default port to 8080
  # Tell configure to look for pcre in HOMEBREW_PREFIX
  def patches
    DATA
  end

  def options
    [
      ['--with-passenger', "Compile with support for Phusion Passenger module"],
      ['--with-webdav',    "Compile with support for WebDAV module"]
    ]
  end

  def passenger_config_args
      passenger_root = `passenger-config --root`.chomp
{'fraction_non_alphanumeric': 0.10818120351588911, 'fraction_numerical': 0.0784313725490196, 'mean_word_length': 3.1225626740947074, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6563791', 'n_tokens_mistral': 631, 'n_tokens_neox': 557, 'n_words': 125}