<commit_before>{ stdenv
, fetchurl
, waf

, serd
}:

stdenv.mkDerivation rec {
  name = "sord-0.16.0";

  src = fetchurl {
    url = "https://download.drobilla.net/${name}.tar.bz2";
    sha256 = "9d3cb2c9966e93f537f37377171f162023cea6784ca069699be4a7770c8a035a";
  };

  nativeBuildInputs = [
    waf
  ];

  buildInputs = [
    serd
  ];

  postPatch = /* Fix compatibility with newer autowaf */ ''
    sed -i wscript \
      -e 's/test=True/debug_by_default=False/' \
      -e 's/Options.options.build_tests/True/'
  '';

  passthru = {
    srcVerification = fetchurl {
      inherit (src)
        outputHash
        outputHashAlgo
        urls;
      failEarly = true;
      pgpsigUrls = map (n: "${n}.asc") src.urls;
      pgpKeyFingerprint = "907D 226E 7E13 FA33 7F01  4A08 3672 782A 9BF3 68F3";
    };
  };

  meta = with stdenv.lib; {
    description = "A lightweight C library for storing RDF data in memory";
    homepage = https://drobilla.net/software/sord;
    license = licenses.mit;
    maintainers = with maintainers; [
      codyopel
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}
<commit_msg>sord: cleanup<commit_after>{ stdenv
, fetchurl
, lib
, waf

, serd
}:

stdenv.mkDerivation rec {
  name = "sord-0.16.0";

  src = fetchurl {
    url = "https://download.drobilla.net/${name}.tar.bz2";
    sha256 = "9d3cb2c9966e93f537f37377171f162023cea6784ca069699be4a7770c8a035a";
  };

  nativeBuildInputs = [
    waf
  ];

  buildInputs = [
    serd
  ];

  postPatch = /* Fix compatibility with newer autowaf */ ''
    sed -i wscript \
      -e 's/test=True/debug_by_default=False/' \
      -e 's/Options.options.build_tests/True/'
  '';

  passthru = {
    srcVerification = fetchurl {
      inherit (src)
        outputHash
        outputHashAlgo
        urls;
      failEarly = true;
      pgpsigUrls = map (n: "${n}.asc") src.urls;
      pgpKeyFingerprint = "907D 226E 7E13 FA33 7F01  4A08 3672 782A 9BF3 68F3";
    };
  };

  meta = with lib; {
    description = "A lightweight C library for storing RDF data in memory";
    homepage = https://drobilla.net/software/sord;
    license = licenses.mit;
    maintainers = with maintainers; [
      codyopel
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}

{'fraction_non_alphanumeric': 0.12283813747228381, 'fraction_numerical': 0.0762749445676275, 'mean_word_length': 2.4761171032357474, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7226974', 'n_tokens_mistral': 967, 'n_tokens_neox': 862, 'n_words': 170}