<commit_before>class Libuecc < Formula
  desc "Very small Elliptic Curve Cryptography library"
  homepage "http://git.universe-factory.net/libuecc/"
  url "http://git.universe-factory.net/libuecc/snapshot/libuecc-6.tar"
  sha256 "fe61715b7cd8458616840f71ab8c0c7e5f49480a9cfb2c1965fbb9d713f071b6"

  head "git://git.universe-factory.net/libuecc"

  bottle do
    cellar :any
    sha256 "704ce2e0e2d517c66d797d4ece988a998a86941e61d1842dd94b0f340a822260" => :el_capitan
    sha256 "a50e505adc4a10c45014aae1252a88fb79121687aa7ccc338c66a169837838a9" => :yosemite
    sha256 "f98e022b1d1c5cf68170eb3958322d34aa736f49a2bfbdacaac8fe277206e27f" => :mavericks
  end

  depends_on "cmake" => :build

  def install
    system "cmake", ".", *std_cmake_args
    system "make", "install"
  end

  test do
    (testpath/"test.c").write <<-EOS.undent
      #include <stdlib.h><commit_msg>libuecc: update 6 bottle.<commit_after>class Libuecc < Formula
  desc "Very small Elliptic Curve Cryptography library"
  homepage "http://git.universe-factory.net/libuecc/"
  url "http://git.universe-factory.net/libuecc/snapshot/libuecc-6.tar"
  sha256 "fe61715b7cd8458616840f71ab8c0c7e5f49480a9cfb2c1965fbb9d713f071b6"

  head "git://git.universe-factory.net/libuecc"

  bottle do
    cellar :any
    sha256 "f2f8b73e024086946b28531462bf6fdb7d53d555c49ff2b19d046c6ae4397abe" => :el_capitan
    sha256 "ae65696aaa43faefb426eccdd60bed6bcd9e267f6bb4cde7eccb8f5846126601" => :yosemite
    sha256 "5013357b9cc252f75220bff31182e618eda02468bb7ccabb6d9c9de503ef2e1f" => :mavericks
  end

  depends_on "cmake" => :build

  def install
    system "cmake", ".", *std_cmake_args
    system "make", "install"
  end

  test do
    (testpath/"test.c").write <<-EOS.undent
      #include <stdlib.h>
{'fraction_non_alphanumeric': 0.10262257696693272, 'fraction_numerical': 0.19555302166476624, 'mean_word_length': 4.909090909090909, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '1410945', 'n_tokens_mistral': 946, 'n_tokens_neox': 767, 'n_words': 102}