<commit_before>{ stdenv, fetchurl, substituteAll, libpcap }:

stdenv.mkDerivation rec {
  version = "2.4.5";
  name = "ppp-${version}";

  src = fetchurl {
    url = "${meta.homepage}ftp/ppp/${name}.tar.gz";
    sha256 = "019m00q85nrgdpjlhb9021a3iw3pr4a0913gp4h9k7r9r7z7lca3";
  };

  patches =
    [ ( substituteAll {
        src = ./nix-purity.patch;
        inherit libpcap;
        glibc = stdenv.gcc.libc;
      })
      ./nonpriv.patch
    ];

  postPatch = ''
    # enable ipv6<commit_msg>ppp: fix purity patch on :multiple-outputs:<commit_after>{ stdenv, fetchurl, substituteAll, libpcap }:

stdenv.mkDerivation rec {
  version = "2.4.5";
  name = "ppp-${version}";

  src = fetchurl {
    url = "${meta.homepage}ftp/ppp/${name}.tar.gz";
    sha256 = "019m00q85nrgdpjlhb9021a3iw3pr4a0913gp4h9k7r9r7z7lca3";
  };

  patches =
    [ ( substituteAll {
        src = ./nix-purity.patch;
        inherit libpcap;
        glibc = stdenv.gcc.libc.dev;
      })
      ./nonpriv.patch
    ];

  postPatch = ''
    # enable ipv6
{'fraction_non_alphanumeric': 0.14912280701754385, 'fraction_numerical': 0.06237816764132553, 'mean_word_length': 2.6161971830985915, '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': '4424641', 'n_tokens_mistral': 457, 'n_tokens_neox': 419, 'n_words': 62}