<commit_before>require 'formula'

class Unbound < Formula
  homepage 'http://www.unbound.net'
  url 'http://unbound.net/downloads/unbound-1.4.22.tar.gz'
  sha1 'a56e31e2f3a2fefa3caaad9200dd943d174ca81e'

  bottle do
    sha1 "f012bd189beef2832b3af0b88679660eb092bd55" => :mavericks
    sha1 "b64749fe75248d14c0164bf4e5e77833b0341f7f" => :mountain_lion
    sha1 "a3ed34772ca84a0d800e7edc0c676498f4fa541e" => :lion
  end

  def install
    # gost requires OpenSSL >= 1.0.0
    system "./configure", "--prefix=#{prefix}",
                          "--disable-gost"
    system "make install"
  end

  plist_options :startup => true

  def plist; <<-EOS.undent<commit_msg>unbound: update 1.4.22 bottle.<commit_after>require 'formula'

class Unbound < Formula
  homepage 'http://www.unbound.net'
  url 'http://unbound.net/downloads/unbound-1.4.22.tar.gz'
  sha1 'a56e31e2f3a2fefa3caaad9200dd943d174ca81e'

  bottle do
    sha1 "24b82835213927e67a4ad83c91e188b2b494c6d3" => :mavericks
    sha1 "84a921d4ad1ff56cd32c4062d1fb427443367527" => :mountain_lion
    sha1 "e426817cd99c1997803b6425269f4b0f2ffccbe8" => :lion
  end

  def install
    # gost requires OpenSSL >= 1.0.0
    system "./configure", "--prefix=#{prefix}",
                          "--disable-gost"
    system "make install"
  end

  plist_options :startup => true

  def plist; <<-EOS.undent
{'fraction_non_alphanumeric': 0.11695040710584752, 'fraction_numerical': 0.16728349370836418, 'mean_word_length': 3.4916943521594686, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 0, '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': '3595217', 'n_tokens_mistral': 675, 'n_tokens_neox': 561, 'n_words': 88}