<commit_before>class Nettle < Formula
  homepage "http://www.lysator.liu.se/~nisse/nettle/"
  url "http://www.lysator.liu.se/~nisse/archive/nettle-2.7.1.tar.gz"
  sha1 "e7477df5f66e650c4c4738ec8e01c2efdb5d1211"

  bottle do
    cellar :any
    revision 1
    sha1 "41d80787422ed29f084c147b49e2f7c3a223eded" => :yosemite
    sha1 "89238f83e4f3f18145553d3c442fe022680cbd7b" => :mavericks
    sha1 "8f2a4c261926f2f62e9d8f197a8466a2489b37e0" => :mountain_lion
    sha1 "6c56084887da5b7e99d7c730bf22a68c9af360e9" => :lion
  end

  depends_on "gmp"

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--enable-shared"
    system "make"
    system "make", "install"
    system "make", "check"
  end

  test do
    (testpath/"test.c").write <<-EOS.undent
      #include <nettle/sha1.h>
      #include <stdio.h>

      int main()<commit_msg>nettle: use https url and homepage<commit_after>class Nettle < Formula
  homepage "https://www.lysator.liu.se/~nisse/nettle/"
  url "https://www.lysator.liu.se/~nisse/archive/nettle-2.7.1.tar.gz"
  sha1 "e7477df5f66e650c4c4738ec8e01c2efdb5d1211"

  bottle do
    cellar :any
    revision 1
    sha1 "41d80787422ed29f084c147b49e2f7c3a223eded" => :yosemite
    sha1 "89238f83e4f3f18145553d3c442fe022680cbd7b" => :mavericks
    sha1 "8f2a4c261926f2f62e9d8f197a8466a2489b37e0" => :mountain_lion
    sha1 "6c56084887da5b7e99d7c730bf22a68c9af360e9" => :lion
  end

  depends_on "gmp"

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--enable-shared"
    system "make"
    system "make", "install"
    system "make", "check"
  end

  test do
    (testpath/"test.c").write <<-EOS.undent
      #include <nettle/sha1.h>
      #include <stdio.h>

      int main()
{'fraction_non_alphanumeric': 0.12599681020733652, 'fraction_numerical': 0.15098351940457203, 'mean_word_length': 2.9208333333333334, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, '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': '6492157', 'n_tokens_mistral': 929, 'n_tokens_neox': 779, 'n_words': 116}