<commit_before>{stdenv, fetchurl, ncurses}:

stdenv.mkDerivation {
  name = "gtypist-2.9.1";

  src = fetchurl {
    url = "mirror://gnu/gtypist/gtypist-2.9.1.tar.xz";
    sha256 = "1yv209aih1ixbs477vzzk1xj013g6w32vi33g0hldfzvfxbl9y5s";
  };

  buildInputs = [ncurses];

  patches = [ (fetchurl {
    url = "http://projects.archlinux.org/svntogit/community.git/plain/trunk/ncurses.patch?h=packages/gtypist";
    sha256 = "14crgh21gghszwijxjvixpijqzsgn62wx6kz28zkjskdw0p5vij1";
  })];

  meta = {
    homepage = http://www.gnu.org/software/gtypist;
    description = "GNU Typist (also called gtypist) is a universal typing tutor.";
    license = stdenv.lib.licenses.gpl3Plus;
  };
}
<commit_msg>gtypist: update to 2.9.3 and fix the patch<commit_after>{stdenv, fetchurl, ncurses}:

stdenv.mkDerivation {
  name = "gtypist-2.9.3";

  src = fetchurl {
    url = "mirror://gnu/gtypist/gtypist-2.9.3.tar.xz";
    sha256 = "0srwa841caci69hzqb47xfbxxf7fvz3640qka083p72vm8z9hsxw";
  };

  buildInputs = [ncurses];

  patchPhase = "sed -e 's#ncursesw/##' -i configure src/*";

  meta = {
    homepage = http://www.gnu.org/software/gtypist;
    description = "GNU Typist (also called gtypist) is a universal typing tutor.";
    license = stdenv.lib.licenses.gpl3Plus;
  };
}

{'fraction_non_alphanumeric': 0.14715189873417722, 'fraction_numerical': 0.061708860759493674, 'mean_word_length': 3.685185185185185, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4798830', 'n_tokens_mistral': 587, 'n_tokens_neox': 541, 'n_words': 80}