<commit_before>{ stdenv, fetchurl, libelf, libconfig, libevent, which, unzip, perl, python
, bison, flex }:

stdenv.mkDerivation rec {
  name = "coprthr-${version}";
  version = "1.6";

  src = fetchurl {
    url    = "https://github.com/browndeer/coprthr/archive/stable-${version}.zip";
    sha256 = "042aykmcxhdpck0j6k5rcp6a0b5i377fv2nz96v1bpfhzxd1mjwg";
  };

  buildInputs =
    [ libelf libconfig libevent which unzip perl python bison flex ];
<commit_msg>coprthr: ensure we use the right perl<commit_after>{ stdenv, fetchurl, libelf, libconfig, libevent, which, unzip, perl, python
, bison, flex }:

stdenv.mkDerivation rec {
  name = "coprthr-${version}";
  version = "1.6";

  src = fetchurl {
    url    = "https://github.com/browndeer/coprthr/archive/stable-${version}.zip";
    sha256 = "042aykmcxhdpck0j6k5rcp6a0b5i377fv2nz96v1bpfhzxd1mjwg";
  };

  buildInputs =
    [ libelf libconfig libevent which unzip perl python bison flex ];

  patchPhase = ''
    for x in src/libocl/gen_oclcall_hook.pl tools/cltrace/gen_interceptor.pl src/libocl/gen_oclcall.pl src/scripts/gen_ocl_call_vector.pl src/libstdcl/gen_clarg_setn.pl; do
      substituteInPlace $x --replace "/usr/bin/perl" ${perl}/bin/perl
    done
  '';

{'fraction_non_alphanumeric': 0.12755519215044972, 'fraction_numerical': 0.035977105478331974, 'mean_word_length': 4.078838174273859, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4221228', 'n_tokens_mistral': 519, 'n_tokens_neox': 481, 'n_words': 90}