<commit_before>{ stdenv
, fetchTritonPatch
, fetchurl
}:

stdenv.mkDerivation rec {
  name = "jansson-2.7";

  src = fetchurl {
    url = "http://www.digip.org/jansson/releases/${name}.tar.gz";
    sha256 = "1mvq9p85khsl818i4vbszyfab0fd45mdrwrxjkzw05mk1xcyc1br";
  };

  patches = [
    (fetchTritonPatch {
      rev = "5bb60ada3e49df19daba41242380880a0ff718c5";
      file = "jansson/CVE-2016-4425.patch";
      sha256 = "99207e08752ee7627b33a0dda608b8e342794f51314838839102f8f331224a9b";
    })
  ];

  meta = with stdenv.lib; {
    homepage = "http://www.digip.org/jansson/";
    description = "C library for encoding, decoding and manipulating JSON data";
    license = licenses.mit;
    maintainers = with maintainers; [
      wkennington
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}<commit_msg>jansson: Add verification and multihash<commit_after>{ stdenv
, fetchTritonPatch
, fetchurl
}:

stdenv.mkDerivation rec {
  name = "jansson-2.7";

  src = fetchurl {
    url = "http://www.digip.org/jansson/releases/${name}.tar.gz";
    allowHashOutput = false;
    multihash = "QmUqTpZSco2wWXPDsCrxkgjEBG2Qn21HuEU3c1dztVXf9K";
    sha256 = "1mvq9p85khsl818i4vbszyfab0fd45mdrwrxjkzw05mk1xcyc1br";
  };

  patches = [
    (fetchTritonPatch {
      rev = "5bb60ada3e49df19daba41242380880a0ff718c5";
      file = "jansson/CVE-2016-4425.patch";
      sha256 = "99207e08752ee7627b33a0dda608b8e342794f51314838839102f8f331224a9b";
    })
  ];

  passthru = {
    srcVerification = fetchurl {
      failEarly = true;
      pgpsigUrls = map (n: "${n}.asc") src.urls;
      pgpKeyFingerprint = "B5D6 953E 6D50 59ED 7ADA  0F2F D365 7D24 D058 434C";
      inherit (src) urls outputHash outputHashAlgo;
    };
  };

  meta = with stdenv.lib; {
    homepage = "http://www.digip.org/jansson/";
    description = "C library for encoding, decoding and manipulating JSON data";
    license = licenses.mit;
    maintainers = with maintainers; [
      wkennington
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}
{'fraction_non_alphanumeric': 0.11631345490389354, 'fraction_numerical': 0.12222769837358305, 'mean_word_length': 3.3191489361702127, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '5918842', 'n_tokens_mistral': 970, 'n_tokens_neox': 825, 'n_words': 128}