<commit_before>{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild }:

assert lib.versionAtLeast (lib.getVersion ocaml) "3.12";

let param =
  if lib.versionAtLeast ocaml.version "4.02"
  then {
    version = "20171003";
    sha256 = "06zwsskri8kaqjdszj9360nf36zvwh886xwf033aija8c9k4w6cx";
  } else {
    version = "20140424";
    sha256 = "0sc9q89dnyarcg24czyhr6ams0ylqvia3745s6rfwd2nldpygsdk";
}; in

stdenv.mkDerivation {
  inherit (param) version;
  pname = "ocaml${ocaml.version}-pprint";

  src = fetchurl {
    url = "http://gallium.inria.fr/~fpottier/pprint/pprint-${param.version}.tar.gz";
    inherit (param) sha256;
  };

  buildInputs = [ ocaml findlib ocamlbuild ];

  createFindlibDestdir = true;

  dontBuild = true;
  installFlags = [ "-C" "src" ];

  meta = with lib; {
    homepage = "http://gallium.inria.fr/~fpottier/pprint/";
    description = "An OCaml adaptation of Wadler’s and Leijen’s prettier printer";
    license = licenses.cecill-c;
    maintainers = [ maintainers.vbgl ];
    platforms = ocaml.meta.platforms or [];
  };
}
<commit_msg>Partial revert of 12f343da4c2<commit_after>{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild }:

assert lib.versionAtLeast (lib.getVersion ocaml) "3.12";

let param =
  if lib.versionAtLeast ocaml.version "4.02"
  then {
    version = "20171003";
    sha256 = "06zwsskri8kaqjdszj9360nf36zvwh886xwf033aija8c9k4w6cx";
  } else {
    version = "20140424";
    sha256 = "0sc9q89dnyarcg24czyhr6ams0ylqvia3745s6rfwd2nldpygsdk";
}; in

stdenv.mkDerivation {

  name = "ocaml${ocaml.version}-pprint-${param.version}";

  src = fetchurl {
    url = "http://gallium.inria.fr/~fpottier/pprint/pprint-${param.version}.tar.gz";
    inherit (param) sha256;
  };

  buildInputs = [ ocaml findlib ocamlbuild ];

  createFindlibDestdir = true;

  dontBuild = true;
  installFlags = [ "-C" "src" ];

  meta = with lib; {
    homepage = "http://gallium.inria.fr/~fpottier/pprint/";
    description = "An OCaml adaptation of Wadler’s and Leijen’s prettier printer";
    license = licenses.cecill-c;
    maintainers = [ maintainers.vbgl ];
    platforms = ocaml.meta.platforms or [];
  };
}

{'fraction_non_alphanumeric': 0.13564078578110383, 'fraction_numerical': 0.06314312441534144, 'mean_word_length': 3.795964125560538, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3131958', 'n_tokens_mistral': 945, 'n_tokens_neox': 864, 'n_words': 150}