<commit_before>{ stdenv, fetchurl, python3, texinfo, makeWrapper }:

stdenv.mkDerivation rec {
  name = "ponysay-3.0.1";

  src = fetchurl {
    url = "https://github.com/erkin/ponysay/archive/3.0.1.tar.gz";
    sha256 = "ab281f43510263b2f42a1b0a9097ee7831b3e33a9034778ecb12ccb51f6915ee";
  };

  buildInputs = [ python3 texinfo makeWrapper ];

  inherit python3;

  phases = "unpackPhase installPhase fixupPhase";

  installPhase = ''
    find -type f -name "*.py" | xargs sed -i "s@/usr/bin/env python3@$python3/bin/python3@g"
    substituteInPlace setup.py --replace \
        "fileout.write(('#!/usr/bin/env %s\n' % env).encode('utf-8'))" \
        "fileout.write(('#!%s/bin/%s\n' % (os.environ['python3'], env)).encode('utf-8'))"
    python3 setup.py --prefix=$out --freedom=partial install \
        --with-shared-cache=$out/share/ponysay \
        --with-bash
  '';

  meta = {
    description = "Cowsay reimplemention for ponies";
    homepage = http://terse.tk/ponysay/;
    license = stdenv.lib.licenses.gpl3;
    maintainers = with stdenv.lib.maintainers; [ bodil ];
  };
}
<commit_msg>Update to ponysay version 3.0.2.<commit_after>{ stdenv, fetchurl, python3, texinfo, makeWrapper }:

stdenv.mkDerivation rec {
  name = "ponysay-3.0.2";

  src = fetchurl {
    url = "https://github.com/erkin/ponysay/archive/3.0.2.tar.gz";
    sha256 = "03avcbl96rv718lgg6yyrq5mvg3xxzccrnnb6brf4g9mcrwqmsb9";
  };

  buildInputs = [ python3 texinfo makeWrapper ];

  inherit python3;

  phases = "unpackPhase installPhase fixupPhase";

  installPhase = ''
    find -type f -name "*.py" | xargs sed -i "s@/usr/bin/env python3@$python3/bin/python3@g"
    substituteInPlace setup.py --replace \
        "fileout.write(('#!/usr/bin/env %s\n' % env).encode('utf-8'))" \
        "fileout.write(('#!%s/bin/%s\n' % (os.environ['python3'], env)).encode('utf-8'))"
    python3 setup.py --prefix=$out --freedom=partial install \
        --with-shared-cache=$out/share/ponysay \
        --with-bash
  '';

  meta = {
    description = "Cowsay reimplemention for ponies";
    homepage = http://terse.tk/ponysay/;
    license = stdenv.lib.licenses.gpl3;
    maintainers = with stdenv.lib.maintainers; [ bodil ];
  };
}

{'fraction_non_alphanumeric': 0.1703771013175829, 'fraction_numerical': 0.04497955474784189, 'mean_word_length': 3.1235955056179776, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6797176', 'n_tokens_mistral': 891, 'n_tokens_neox': 861, 'n_words': 138}