<commit_before>class Libwandevent < Formula
  desc "API for developing event-driven programs"
  homepage "http://research.wand.net.nz/software/libwandevent.php"
  url "http://research.wand.net.nz/software/libwandevent/libwandevent-3.0.1.tar.gz"
  sha256 "317b2cc39f912f8e5875b9dd05658cd48ead98bf20a1d89855e5a435381bee24"

  bottle do
    cellar :any
    sha256 "41c82d4b35565dc4dbb558dd63a7f5c63b97edcf0e9724eab050ffa9a1d661a9" => :sierra
    sha256 "78343d11a98d223c2e944971516c8c5213c2e88a5484c1a104be57b8e1b228e1" => :el_capitan
    sha256 "e6a07c41e838e86d5a1c39274d5d15e37d55dd7439f19a05a50818fd78f437e5" => :yosemite
    sha256 "5565d710cbaeb8110f2f50289965dc0cfc76d20ddb96138ddbbadd452b13eefc" => :mavericks
    sha256 "63c6840e4140921671922f960b63a48565fb0204ae2646d3355bf20f6e5c3958" => :mountain_lion
  end

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

  test do
    (testpath/"test.cpp").write <<-EOS.undent
      #include <sys/time.h>
      #include <libwandevent.h>

      int main() {
        wand_event_init();
        return 0;
      }
    EOS
    system ENV.cc, "test.cpp", "-L#{lib}", "-lwandevent", "-o", "test"
    system "./test"
  end
end
<commit_msg>libwandevent 3.0.2<commit_after>class Libwandevent < Formula
  desc "API for developing event-driven programs"
  homepage "http://research.wand.net.nz/software/libwandevent.php"
  url "http://research.wand.net.nz/software/libwandevent/libwandevent-3.0.2.tar.gz"
  sha256 "48fa09918ff94f6249519118af735352e2119dc4f9b736c861ef35d59466644a"

  bottle do
    cellar :any
    sha256 "41c82d4b35565dc4dbb558dd63a7f5c63b97edcf0e9724eab050ffa9a1d661a9" => :sierra
    sha256 "78343d11a98d223c2e944971516c8c5213c2e88a5484c1a104be57b8e1b228e1" => :el_capitan
    sha256 "e6a07c41e838e86d5a1c39274d5d15e37d55dd7439f19a05a50818fd78f437e5" => :yosemite
    sha256 "5565d710cbaeb8110f2f50289965dc0cfc76d20ddb96138ddbbadd452b13eefc" => :mavericks
    sha256 "63c6840e4140921671922f960b63a48565fb0204ae2646d3355bf20f6e5c3958" => :mountain_lion
  end

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

  test do
    (testpath/"test.cpp").write <<-EOS.undent
      #include <sys/time.h>
      #include <libwandevent.h>

      int main() {
        wand_event_init();
        return 0;
      }
    EOS
    system ENV.cc, "test.cpp", "-L#{lib}", "-lwandevent", "-o", "test"
    system "./test"
  end
end

{'fraction_non_alphanumeric': 0.11115429459774583, 'fraction_numerical': 0.21492421298095607, 'mean_word_length': 3.893536121673004, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, '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': '4084178', 'n_tokens_mistral': 1386, 'n_tokens_neox': 1108, 'n_words': 141}