<commit_before>require "formula"

class Mcl < Formula
  homepage "http://micans.org/mcl"
  url "http://micans.org/mcl/src/mcl-14-136.tar.gz"
  version "14-136"
  sha1 "7a0973cbd884b20f554bcb20215d7d280a0cb569"

  # Fixes a problem in upstream where cpu_set_t is used without guarding it
  # in an #ifdef _GNU_SOURCE block. Upstream has been notified; the patch can
  # safely be removed when it is merged.
  patch :DATA

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

__END__
diff --git a/src/impala/matrix.c b/src/impala/matrix.c
index 38f057c..087926f 100644
--- a/src/impala/matrix.c
+++ b/src/impala/matrix.c
@@ -2072,7 +2072,9 @@ mcxstatus mclxVectorDispatchGroup
    ;  struct generic_arg* garg = mcxAlloc(n_thread * sizeof garg[0], EXIT_ON_FAIL)
    ;  pthread_attr_t  t_attr
    ;  dim thread_id = 0, t_spun = 0
+#ifdef _GNU_SOURCE
    ;  cpu_set_t cpuset[512] = { 0 }
+#endif
 
    ;  if (n_group == 0 || group_id >= n_group)
       {  mcxErr("mclxVectorDispatchGroup PBD", "wrong parameters")
<commit_msg>mcl 14-137<commit_after>require "formula"

class Mcl < Formula
  homepage "http://micans.org/mcl"
  url "http://micans.org/mcl/src/mcl-14-137.tar.gz"
  version "14-137"
  sha1 "9016240ecdc39d26e493c1e18967e46ff0742bdd"

  def install
    bin.mkpath
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--enable-blast"
    system "make install"
  end
end
{'fraction_non_alphanumeric': 0.1260815822002472, 'fraction_numerical': 0.07045735475896168, 'mean_word_length': 2.7048054919908466, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '7667061', 'n_tokens_mistral': 673, 'n_tokens_neox': 589, 'n_words': 129}