<commit_before>require 'formula'

class Cherokee <Formula
  url 'http://www.cherokee-project.com/download/0.99/0.99.44/cherokee-0.99.44.tar.gz'
  homepage 'http://www.cherokee-project.com/'
  md5 '268e7130c12b441523de963f95b9b85d'

  depends_on 'gettext'

  def install
    system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
    system "make install"
  end
end<commit_msg>Updated cherokee to 1.0.2<commit_after>require 'formula'

class Cherokee <Formula
  url 'http://www.cherokee-project.com/download/1.0/1.0.2/cherokee-1.0.2.tar.gz'
  homepage 'http://www.cherokee-project.com/'
  md5 'a6c8bdcca3e64349d537d519f09915ba'

  depends_on 'gettext'

  skip_clean "var/run"
  skip_clean "var/log"
  skip_clean "var/lib/cherokee/graphs/images"

  def caveats 
  <<-EOS.undent
    Cherokee is setup to run with your (#{ENV['USER']}) permissions as part of the www group
    on port 80. This can be changed in the cherokee-admin but be aware the new user will need
    permissions to write to #{var} for logging and runtime files.

    If this is your first install, automatically load on startup with:
        sudo cp #{prefix}/org.cherokee.webserver.plist /System/Library/LaunchDaemons
        sudo launchctl load -w /System/Library/LaunchDaemons/org.cherokee.webserver.plist

    If this is an upgrade and you already have the org.cherokee.webserver.plist loaded: 
        sudo launchctl unload -w /System/Library/LaunchDaemons/org.cherokee.webserver.plist
        sudo cp #{prefix}/org.cherokee.webserver.plist /System/Library/LaunchDaemons
        sudo launchctl load -w /System/Library/LaunchDaemons/org.cherokee.webserver.plist
  EOS
  end

  def install
    system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking",
           "--with-wwwuser=#{ENV['USER']}", "--with-wwwgroup=www"
    system "make install"
    
    prefix.install "org.cherokee.webserver.plist"
  end
end
{'fraction_non_alphanumeric': 0.1248081841432225, 'fraction_numerical': 0.03580562659846547, 'mean_word_length': 3.506912442396313, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, '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': '4709263', 'n_tokens_mistral': 717, 'n_tokens_neox': 639, 'n_words': 156}