<commit_before>{ lib, stdenv, fetchurl, zlib, ncurses }:

stdenv.mkDerivation rec {
  pname = "aewan";
  version = "1.0.01";

  src = fetchurl {
    url = "mirror://sourceforge/aewan/${pname}-${version}.tar.gz";
    sha256 = "5266dec5e185e530b792522821c97dfa5f9e3892d0dca5e881d0c30ceac21817";
  };

  buildInputs = [ zlib ncurses ];

  meta = {
    description = "Ascii-art Editor Without A Name";
    homepage = "http://aewan.sourceforge.net/";
    license = lib.licenses.gpl2Plus;
    platforms = lib.platforms.unix;
  };
}<commit_msg>aewan: fix build against ncurses-6.3<commit_after>{ lib, stdenv, fetchurl, fetchpatch, zlib, ncurses }:

stdenv.mkDerivation rec {
  pname = "aewan";
  version = "1.0.01";

  src = fetchurl {
    url = "mirror://sourceforge/aewan/${pname}-${version}.tar.gz";
    sha256 = "5266dec5e185e530b792522821c97dfa5f9e3892d0dca5e881d0c30ceac21817";
  };

  patches = [
    # Pull patch pending upstream inclusion:
    #  https://sourceforge.net/p/aewan/bugs/13/
    (fetchpatch {
      url = "https://sourceforge.net/p/aewan/bugs/13/attachment/aewan-cvs-ncurses-6.3.patch";
      sha256 = "0pgpk1l3d6d5y37lvvavipwnmv9gmpfdy21jkz6baxhlkgf43r4p";
      # patch is in CVS diff format, add 'a/' prefix
      extraPrefix = "";
    })
  ];

  buildInputs = [ zlib ncurses ];

  meta = {
    description = "Ascii-art Editor Without A Name";
    homepage = "http://aewan.sourceforge.net/";
    license = lib.licenses.gpl2Plus;
    platforms = lib.platforms.unix;
  };
}
{'fraction_non_alphanumeric': 0.145063801208865, 'fraction_numerical': 0.08260577568838147, 'mean_word_length': 3.36950146627566, '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': '1358740', 'n_tokens_mistral': 675, 'n_tokens_neox': 607, 'n_words': 95}