<commit_before>require 'formula'

class Burp < Formula
  homepage 'http://burp.grke.org/'
  url 'https://downloads.sourceforge.net/project/burp/burp-1.4.16/burp-1.4.16.tar.bz2'
  sha1 '0b28b8989ca8ce02cfb2fb029df90be9777e3431'
  head 'https://github.com/grke/burp.git'

  depends_on 'librsync'

  # patches to change directories to brew conventions in Makefile and config files
  patch :DATA

  def install
    system "./configure", "--prefix=#{prefix}",
                          "--sysconfdir=#{etc}/burp",
                          "--sbindir=#{bin}",
                          "--localstatedir=#{var}/burp"
    system "make", "install"
  end

  test do
    system "#{bin}/burp", "-v"
  end

  plist_options :startup => true

  def plist; <<-EOS.undent
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict><commit_msg>burp: add 1.4.16 bottle.<commit_after>require 'formula'

class Burp < Formula
  homepage 'http://burp.grke.org/'
  url 'https://downloads.sourceforge.net/project/burp/burp-1.4.16/burp-1.4.16.tar.bz2'
  sha1 '0b28b8989ca8ce02cfb2fb029df90be9777e3431'
  head 'https://github.com/grke/burp.git'

  bottle do
    sha1 "0ac51ee5bc80e91b28cb292e3aed223d15778926" => :mavericks
    sha1 "8b790e019ff239985a2760bb2a200672578b3b09" => :mountain_lion
    sha1 "b2efbd022a41e0ebcfe3ef015308617809b0a842" => :lion
  end

  depends_on 'librsync'

  # patches to change directories to brew conventions in Makefile and config files
  patch :DATA

  def install
    system "./configure", "--prefix=#{prefix}",
                          "--sysconfdir=#{etc}/burp",
                          "--sbindir=#{bin}",
                          "--localstatedir=#{var}/burp"
    system "make", "install"
  end

  test do
    system "#{bin}/burp", "-v"
  end

  plist_options :startup => true

  def plist; <<-EOS.undent
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
{'fraction_non_alphanumeric': 0.15690866510538642, 'fraction_numerical': 0.08056206088992975, 'mean_word_length': 2.6891191709844557, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 2, '>': 16, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '4296733', 'n_tokens_mistral': 909, 'n_tokens_neox': 792, 'n_words': 146}