<commit_before>{stdenv, fetchurl, ncurses, gettext}:

stdenv.mkDerivation {
  name = "nano-2.0.6";
  src = fetchurl {
    url = mirror://gnu/nano/nano-2.0.6.tar.gz;
    sha256 = "0p2xfs4jzj7dvp208qdrxij7x8gbwxgnrdm7zafgpbbg1bvxh40d";
  };
  buildInputs = [ncurses gettext];
  configureFlags = "--enable-tiny";

  meta = {
    homepage = http://www.nano-editor.org;
  };
}<commit_msg>update to version 2.0.7, removed --enable-tiny because it breaks the user interface when the terminal where nano is running is resized all featues disabled by --enable-tiny are still disabled<commit_after>args: with args;
stdenv.mkDerivation (rec {
  pname = "nano";
  version = "2.0.7";

  name = "${pname}-${version}";

  src = fetchurl {
    url = "mirror://gnu/nano/${name}.tar.gz";
    sha256 = "5dc783c412c4d1ff463c450d2a2f9e1ea53a43d9ba1dda92bbf5182f60db532f";
  };
  buildInputs = [ncurses gettext];
#  configureFlags = "--enable-tiny";
  configureFlags = "
    --disable-browser 
    --disable-help 
    --disable-justify 
    --disable-mouse 
    --disable-operatingdir
    --disable-speller
    --disable-tabcomp
    --disable-wrapping
  ";

  meta = {
    homepage = http://www.nano-editor.org;
  };
})
{'fraction_non_alphanumeric': 0.14703425229741018, 'fraction_numerical': 0.055973266499582286, 'mean_word_length': 3.1742160278745644, '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': '2967721', 'n_tokens_mistral': 495, 'n_tokens_neox': 461, 'n_words': 83}