<commit_before>{ stdenv, fetchurl, boost, lhapdf, root, yoda }:

stdenv.mkDerivation rec {
  name = "fastnlo_toolkit-${version}";
  version = "2.3.1pre-2212";

  src = fetchurl {
    url = "http://fastnlo.hepforge.org/code/v23/${name}.tar.gz";
    sha256 = "0xgnnwc002awvz6dhn7792jc8kdff843yjgvwmgcs60yvcj6blgp";
  };

  buildInputs = [ boost lhapdf root yoda ];

  enableParallelBuilding = true;

  meta = {<commit_msg>fastnlo: fix yoda interface<commit_after>{ stdenv, fetchurl, boost, lhapdf, root, yoda }:

stdenv.mkDerivation rec {
  name = "fastnlo_toolkit-${version}";
  version = "2.3.1pre-2212";

  src = fetchurl {
    url = "http://fastnlo.hepforge.org/code/v23/${name}.tar.gz";
    sha256 = "0xgnnwc002awvz6dhn7792jc8kdff843yjgvwmgcs60yvcj6blgp";
  };

  buildInputs = [ boost lhapdf root yoda ];

  CXXFLAGS="-std=c++11"; # for yoda

  configureFlags = [
    "--with-yoda=${yoda}"
  ];

  enableParallelBuilding = true;

  meta = {
{'fraction_non_alphanumeric': 0.15360169491525424, 'fraction_numerical': 0.0614406779661017, 'mean_word_length': 3.8963730569948187, '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': '412169', 'n_tokens_mistral': 441, 'n_tokens_neox': 400, 'n_words': 62}