<commit_before>{ stdenv
, fetchurl
}:

let
  filePath = "share/dns/named.root";

  pkg = fetchurl rec {
    name = "root-nameservers-2016-10-20";
    multihash = "QmSFUFrTp1kwRC9UTSyADymSv8gRhHuEX5LhkUWmoceu7t";
    sha256 = "1grymcyzvpl7ag7rbr92yvvwqn8p20fwz4w252i7rq783sky3p05";
    downloadToTemp = true;
    recursiveHash = true;

    postFetch = ''
      if [ "$(openssl ${passthru.srcFile.outputHashAlgo} -r -hex "$downloadedFile" 2>/dev/null | tail -n 1 | awk '{print $1}')" != "${passthru.srcFile.outputHash}" ]; then
        echo "Hash does not match the source file" >&2
        exit 1
      fi
      install -Dm644 "$downloadedFile" "$out/${filePath}"
    '';

    passthru = {
      srcFile = fetchurl rec {
        failEarly = true;
        url = "https://www.internic.net/domain/named.root";
        pgpsigUrl = "${url}.sig";
        pgpKeyFingerprint = "F0CB 1A32 6BDF 3F3E FA3A  01FA 937B B869 E3A2 38C5";
        sha256 = "e3a76ae953ac11e6598e80b14fd8a93bddd7b3a57830fd9ce16fe820fe1df7a2";
      };
    };

    meta = with stdenv.lib; {
      maintainers = with maintainers; [
        wkennington
      ];
      platforms = with platforms;
        x86_64-linux;
    };
  };
in pkg // {
  file = "${pkg}/${filePath}";
}<commit_msg>root-nameservers: 2016-10-20 -> 2018-08-24<commit_after>{ stdenv
, lib
, fetchurl
}:

stdenv.mkDerivation rec {
  name = "root-nameservers-2018-08-24";

  src = fetchurl {
    name = "${name}.src";
    multihash = "QmRYtiiMYJGUGxSqo2gVN9KbPBNtkRXcRspsTJzLkLgfUQ";
    sha256 = "ead216a387e68703a669f30d3be60aa5453e18d0ae1e11e54080f007715e8652";
  };

  file = "${placeholder "out"}/share/dns/named.root";

  buildCommand = ''
    install -Dm644 "$src" "$file"
  '';

  passthru = {
    srcVerification = fetchurl rec {
      failEarly = true;
      url = "https://www.internic.net/domain/named.root";
      fullOpts = {
        pgpsigUrl = "${url}.sig";
        pgpKeyFingerprint = "F0CB 1A32 6BDF 3F3E FA3A  01FA 937B B869 E3A2 38C5";
      };
      sha256 = "e3a76ae953aa11e6598e80b14fd8a93bddd7b3a57830fd9ce16fe820fe1df7a2";
    };
  };

  meta = with lib; {
    maintainers = with maintainers; [
      wkennington
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}
{'fraction_non_alphanumeric': 0.13183856502242153, 'fraction_numerical': 0.10986547085201794, 'mean_word_length': 2.8202054794520546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7239559', 'n_tokens_mistral': 1057, 'n_tokens_neox': 918, 'n_words': 150}