<commit_before>{stdenv, fetchurl}:

stdenv.mkDerivation {
  name = "memtest86+-2.11";
  
  src = fetchurl {
    url = http://www.memtest.org/download/2.11/memtest86+-2.11.tar.gz;
    sha256 = "03kcw6f62na3s08ybhnafn4s1pqs0z5lxl103xwxx77345r6m1s3";
  };

  preBuild = ''
    # Really dirty hack to get Memtest to build without needing a Glibc
    # with 32-bit libraries and headers.
    if test "$system" = x86_64-linux; then
        mkdir gnu
        touch gnu/stubs-32.h
    fi
  '';

  # Override the default optimisation setting (`-Os') to prevent lots
  # of spurious errors.  See
  # https://bugs.launchpad.net/fedora/+source/memtest86+/+bug/246412.
  NIX_CFLAGS_COMPILE = "-O1 -I.";
  
  installPhase = ''
    ensureDir $out
    cp memtest.bin $out/
  '';

  meta = {
    homepage = http://www.memtest.org/;
    description = "A tool to detect memory errors";
  };
}
<commit_msg>Quantum leap updating memtest86+.<commit_after>{stdenv, fetchurl}:

stdenv.mkDerivation {
  name = "memtest86+-4.00";
  
  src = fetchurl {
    url = http://www.memtest.org/download/4.00/memtest86+-4.00.tar.gz;
    sha256 = "193chqvwmcxsrvpcfy3mbz1vakvpfhxvjmawzidp26x8kma2zi3f";
  };

  preBuild = ''
    # Really dirty hack to get Memtest to build without needing a Glibc
    # with 32-bit libraries and headers.
    if test "$system" = x86_64-linux; then
        mkdir gnu
        touch gnu/stubs-32.h
    fi
  '';

  # Override the default optimisation setting (`-Os') to prevent lots
  # of spurious errors.  See
  # https://bugs.launchpad.net/fedora/+source/memtest86+/+bug/246412.
  NIX_CFLAGS_COMPILE = "-O1 -I.";
  
  installPhase = ''
    ensureDir $out
    cp memtest.bin $out/
  '';

  meta = {
    homepage = http://www.memtest.org/;
    description = "A tool to detect memory errors";
  };
}

{'fraction_non_alphanumeric': 0.13058035714285715, 'fraction_numerical': 0.056361607142857144, 'mean_word_length': 2.7906976744186047, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7643705', 'n_tokens_mistral': 742, 'n_tokens_neox': 678, 'n_words': 147}