<commit_before>{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
  version = "6";
  name = "stockfish-${version}";
  src = fetchurl {
    url = https://stockfish.s3.amazonaws.com/stockfish-6-src.zip;
    sha256 = "a69a371d3f84338cefde4575669bd930d186b046a10fa5ab0f8d1aed6cb204c3";
  };
  buildPhase = ''
  cd src
  make build ARCH=x86-64
  '';
  buildInputs = [
        stdenv
        unzip
  ];
  enableParallelBuilding = true;
  installPhase = ''
  mkdir -p $out/bin
  cp -pr stockfish $out/bin
  '';
  meta = with stdenv.lib; {
    homepage = https://stockfishchess.org/;
    description = "Strong open source chess engine";
    longDescription = ''
      Stockfish is one of the strongest chess engines in the world. It is also
      much stronger than the best human chess grandmasters.
      '';
    maintainers = with maintainers; [ luispedro ];
    license = licenses.gpl2;
  };
}
<commit_msg>stockfish: update version 6 to 7<commit_after>{ stdenv, fetchurl, unzip }:

let arch = if stdenv.isx86_64 then "x86-64" else
           if stdenv.isi686 then "x86-32" else
           "unknown";
in

stdenv.mkDerivation rec {

  name = "stockfish-7";

  src = fetchurl {
    url = "https://stockfish.s3.amazonaws.com/${name}-src.zip";
    sha256 = "0djzg3h5d9qs27snf0rr6zl6iaki1jb84v8m8k3c2lcjbj2vpwc9";
  };

  buildInputs = [ unzip ];
  postUnpack = "sourceRoot+=/src";
  makeFlags = [ "PREFIX=$out" "ARCH=${arch}" ];
  buildFlags = "build";

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    homepage = "https://stockfishchess.org/";
    description = "Strong open source chess engine";
    longDescription = ''
      Stockfish is one of the strongest chess engines in the world. It is also
      much stronger than the best human chess grandmasters.
      '';
    maintainers = with maintainers; [ l<NAME> ];
    platforms = with platforms; i686 ++ x86_64;
    license = licenses.gpl2;
  };

}

{'fraction_non_alphanumeric': 0.11887382690302398, 'fraction_numerical': 0.05057351407716371, 'mean_word_length': 3.0570824524312896, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 4, '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': '6793282', 'n_tokens_mistral': 733, 'n_tokens_neox': 681, 'n_words': 164}