<commit_before>{ stdenv, writeTextFile, capnproto, capnpc-rust, genName }:
{ src, contract, ... } @ args:

let
name = genName src;
contractText = writeTextFile {
  name = name;
  text = contract;
  executable = false;
};

in stdenv.mkCachedDerivation  (args // {
  name = name;
  unpackPhase = "true";
  installPhase = ''
  runHook preInstall
  mkdir -p $out/src
  cp ${contractText} $out/src/contract.capnp
  ${capnproto}/bin/capnp compile -o${capnpc-rust}/bin/capnpc-rust:$out/src/  $out/src/contract.capnp -I "/"
  '';
})<commit_msg>specify --src-prefix for capnp compile<commit_after>{ stdenv, writeTextFile, capnproto, capnpc-rust, genName }:
{ src, contract, ... } @ args:

let
name = genName src;
contractText = writeTextFile {
  name = name;
  text = contract;
  executable = false;
};

in stdenv.mkCachedDerivation  (args // {
  name = name;
  unpackPhase = "true";
  installPhase = ''
  runHook preInstall
  mkdir -p $out/src
  cp ${contractText} $out/src/contract.capnp
  ${capnproto}/bin/capnp compile -o${capnpc-rust}/bin/capnpc-rust:$out/src/  $out/src/contract.capnp --src-prefix $out/src/ -I "/"
  '';
})
{'fraction_non_alphanumeric': 0.16160714285714287, 'fraction_numerical': 0.0, 'mean_word_length': 3.6131687242798356, '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': '2346859', 'n_tokens_mistral': 427, 'n_tokens_neox': 422, 'n_words': 90}