<commit_before>{ lib, buildDunePackage, alcotest, cstruct, sexplib }:

if !lib.versionAtLeast (cstruct.version or "1") "3"
then cstruct
else

buildDunePackage {
	pname = "cstruct-sexp";
	inherit (cstruct) version src meta;

	doCheck = true;
	buildInputs = [ alcotest ];

	propagatedBuildInputs = [ cstruct sexplib ];
}
<commit_msg>ocamlPackages.cstruct-sexp: separate checkInputs<commit_after>{ lib, buildDunePackage, alcotest, cstruct, sexplib }:

if !lib.versionAtLeast (cstruct.version or "1") "3"
then cstruct
else

buildDunePackage rec {
	pname = "cstruct-sexp";
	inherit (cstruct) version src meta;

	doCheck = true;
	checkInputs = lib.optional doCheck alcotest;

	propagatedBuildInputs = [ cstruct sexplib ];
}

{'fraction_non_alphanumeric': 0.11142061281337047, 'fraction_numerical': 0.005571030640668524, 'mean_word_length': 5.3628318584070795, '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': '5928771', 'n_tokens_mistral': 263, 'n_tokens_neox': 261, 'n_words': 65}