<commit_before>class Yap < Formula
  desc "Prolog compiler designed for performance and extensibility"
  homepage "http://www.dcc.fc.up.pt/~vsc/Yap/index.html"
  url "https://www.dcc.fc.up.pt/~vsc/Yap/yap-6.2.2.tar.gz"
  sha256 "f15f8382104443319a5883eafce5f52f4143b526c7f1cd88d19c1f63fc06d750"

  devel do
    url "https://www.dcc.fc.up.pt/~vsc/Yap/yap-6.3.3.tar.gz"
    sha256 "aee3b449b1669af07a8291ce6e7fb0a9b35e1343e2ab96fadb1a37552397fa78"
  end

  depends_on "gmp"
  depends_on "readline"

  fails_with :clang do
    cause "uses variable-length arrays in structs, which will never be supported by clang"
  end

  def install
    system "./configure", "--enable-tabling",
                          "--enable-depth-limit",
                          "--enable-coroutining",
                          "--enable-threads",
                          "--enable-pthread-locking",
                          "--with-gmp=#{Formula["gmp"].opt_prefix}",
                          "--with-readline=#{Formula["readline"].opt_prefix}",
                          "--with-java=/Library/Java/Home",
                          "--prefix=#{prefix}"

    system "make"
    system "make", "install"
  end

  test do
    system "#{bin}/yap", "-dump-runtime-variables"
  end
end
<commit_msg>yak: don't pull bottle for now<commit_after>class Yap < Formula
  desc "Prolog compiler designed for performance and extensibility"
  homepage "http://www.dcc.fc.up.pt/~vsc/Yap/index.html"
  url "https://www.dcc.fc.up.pt/~vsc/Yap/yap-6.2.2.tar.gz"
  sha256 "f15f8382104443319a5883eafce5f52f4143b526c7f1cd88d19c1f63fc06d750"

  bottle :disable, "Temporary workaround"

  devel do
    url "https://www.dcc.fc.up.pt/~vsc/Yap/yap-6.3.3.tar.gz"
    sha256 "aee3b449b1669af07a8291ce6e7fb0a9b35e1343e2ab96fadb1a37552397fa78"
  end

  depends_on "gmp"
  depends_on "readline"

  fails_with :clang do
    cause "uses variable-length arrays in structs, which will never be supported by clang"
  end

  def install
    system "./configure", "--enable-tabling",
                          "--enable-depth-limit",
                          "--enable-coroutining",
                          "--enable-threads",
                          "--enable-pthread-locking",
                          "--with-gmp=#{Formula["gmp"].opt_prefix}",
                          "--with-readline=#{Formula["readline"].opt_prefix}",
                          "--with-java=/Library/Java/Home",
                          "--prefix=#{prefix}"

    system "make"
    system "make", "install"
  end

  test do
    system "#{bin}/yap", "-dump-runtime-variables"
  end
end

{'fraction_non_alphanumeric': 0.13528055342044581, 'fraction_numerical': 0.07148347425057648, 'mean_word_length': 2.0515826494724503, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 6, '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': '2060372', 'n_tokens_mistral': 1011, 'n_tokens_neox': 909, 'n_words': 151}