<commit_before>{ stdenv, fetchFromGitHub, cmake, libminc, bicpl, arguments, pcre-cpp }:

stdenv.mkDerivation rec {
  pname = "oobicpl";
  name  = "${pname}-2016-03-02";

  owner = "BIC-MNI";

  src = fetchFromGitHub {
    inherit owner;
    repo   = pname;
    rev    = "bc062a65dead2e58461f5afb37abedfa6173f10c";
    sha256 = "05l4ml9djw17bgdnrldhcxydrzkr2f2scqlyak52ph5azj5n4zsx";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ libminc bicpl arguments pcre-cpp ];

  cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib"
                 "-DBICPL_DIR=${bicpl}/lib"
                 "-DARGUMENTS_DIR=${arguments}/lib"
                 "-DOOBICPL_BUILD_SHARED_LIBS=TRUE" ];

  meta = with stdenv.lib; {
    homepage = "https://github.com/${owner}/${pname}";<commit_msg>oobicpl: update LIBMINC_DIR due to libminc CMake changes<commit_after>{ stdenv, fetchFromGitHub, cmake, libminc, bicpl, arguments, pcre-cpp }:

stdenv.mkDerivation rec {
  pname = "oobicpl";
  version = "unstable-2016-03-02";

  owner = "BIC-MNI";

  src = fetchFromGitHub {
    inherit owner;
    repo   = pname;
    rev    = "bc062a65dead2e58461f5afb37abedfa6173f10c";
    sha256 = "05l4ml9djw17bgdnrldhcxydrzkr2f2scqlyak52ph5azj5n4zsx";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ libminc bicpl arguments pcre-cpp ];

  cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/cmake"
                 "-DBICPL_DIR=${bicpl}/lib"
                 "-DARGUMENTS_DIR=${arguments}/lib"
                 "-DOOBICPL_BUILD_SHARED_LIBS=TRUE" ];

  meta = with stdenv.lib; {
    homepage = "https://github.com/${owner}/${pname}";
{'fraction_non_alphanumeric': 0.1374764595103578, 'fraction_numerical': 0.05524168236032643, 'mean_word_length': 3.194736842105263, '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': '1086877', 'n_tokens_mistral': 696, 'n_tokens_neox': 636, 'n_words': 92}