<commit_before><commit_msg>Pow 0.3.1<commit_after>require 'formula'

class Pow < Formula
  url 'http://get.pow.cx/versions/0.3.1.tar.gz'
  homepage 'http://pow.cx/'
  md5 '2eff3e7a048aada38a85cad5e73a936a'

  depends_on 'node'

  def install
    (prefix+'pow').install Dir['*']

    bin.mkdir
    File.open("#{bin}/pow", 'w') do |f|
      f.write <<-EOS.undent
        #!/bin/sh
        export POW_BIN="#{HOMEBREW_PREFIX}/bin/pow"
        exec "#{HOMEBREW_PREFIX}/bin/node" "#{prefix}/pow/lib/command.js" "$@"
      EOS
    end
    system "chmod +x #{bin}/pow"
  end

  def caveats;
    <<-EOS.undent
      Sets up firewall rules to forward port 80 to Pow:
        sudo pow --install-system

      Installs launchd agent to start on login:
        pow --install-local

    EOS
  end
end
{'fraction_non_alphanumeric': 0.15012722646310434, 'fraction_numerical': 0.031806615776081425, 'mean_word_length': 2.497777777777778, 'pattern_counts': {'":': 0, '<': 8, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3570867', 'n_tokens_mistral': 316, 'n_tokens_neox': 294, 'n_words': 66}