<commit_before>{ stdenv, fetchurl }:

stdenv.mkDerivation {
  name = "memtest86-4.0a";
  
  src = fetchurl {
    url = http://memtest86.com/memtest86-4.0a.tar.gz;
    sha256 = "0d2n3nzyvna9k880zk6vl1z3b7wal1hrwcqay9vda8br7yp7634y";
  };

  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
  '';

  NIX_CFLAGS_COMPILE = "-I.";
  
  installPhase = ''
    mkdir -p $out
    cp memtest.bin $out/
  '';

  meta = {
    homepage = http://memtest86.com/;
    description = "A tool to detect memory errors, to be run from a bootloader";
  };
}
<commit_msg>memtest86: udpate to 4.1.0, fix download url<commit_after>{ stdenv, fetchurl }:

stdenv.mkDerivation {
  name = "memtest86-4.1.0";
  
  src = fetchurl {
    url = http://www.memtest86.com/downloads/memtest86-4.1.0-src.tar.gz;
    sha256 = "1kdvq16s8hvk7plprws33mfh7cnhmfl1m32sfgbmzygbhk5wqxxq";
  };

  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
  '';

  NIX_CFLAGS_COMPILE = "-I.";
  
  installPhase = ''
    mkdir -p $out
    cp memtest.bin $out/
  '';

  meta = {
    homepage = http://memtest86.com/;
    description = "A tool to detect memory errors, to be run from a bootloader";
  };
}

{'fraction_non_alphanumeric': 0.12224448897795591, 'fraction_numerical': 0.056112224448897796, 'mean_word_length': 2.6009615384615383, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '509219', 'n_tokens_mistral': 630, 'n_tokens_neox': 591, 'n_words': 136}