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

let version = "1.0.1"; in

stdenv.mkDerivation {
  name = "slrn-${version}";

  src = fetchurl {
    url = "http://www.jedsoft.org/slrn/download/slrn-1.0.1.tar.gz";
    sha256 = "1rmaprfwvshzkv0c5vi43839cz3laqjpl306b9z0ghwyjdha1d06";
  };

  preConfigure = ''
    sed -i -e "s|-ltermcap|-lncurses|" configure
    sed -i autoconf/Makefile.in src/Makefile.in \
      -e "s|/bin/cp|cp|"  \
      -e "s|/bin/rm|rm|"
  '';

  configureFlags = "--with-slang=${slang}";

  buildInputs = [ slang ncurses ];

  meta = {
    description = "Text-based newsreader";
    homepage = http://slrn.sourceforge.net/index.html;
    license = stdenv.lib.licenses.gpl2;
  };
}<commit_msg>slrn: update 1.0.1 to 1.0.2<commit_after>{ stdenv, fetchurl
, slang, ncurses }:

let version = "1.0.2"; in

stdenv.mkDerivation {
  name = "slrn-${version}";

  src = fetchurl {
    url = "http://www.jedsoft.org/releases/slrn/slrn-${version}.tar.gz";
    sha256 = "1gn6m2zha2nnnrh9lz3m3nrqk6fgfij1wc53pg25j7sdgvlziv12";
  };

  preConfigure = ''
    sed -i -e "s|-ltermcap|-lncurses|" configure
    sed -i autoconf/Makefile.in src/Makefile.in \
      -e "s|/bin/cp|cp|"  \
      -e "s|/bin/rm|rm|"
  '';

  configureFlags = "--with-slang=${slang}";

  buildInputs = [ slang ncurses ];

  meta = with stdenv.lib; {
    description = "The slrn (S-Lang read news) newsreader";
    homepage = http://slrn.sourceforge.net/index.html;
    maintainers = with maintainers; [ emery ];
    license = licenses.gpl2;
  };
}
{'fraction_non_alphanumeric': 0.17428198433420367, 'fraction_numerical': 0.03655352480417755, 'mean_word_length': 2.971502590673575, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5625910', 'n_tokens_mistral': 684, 'n_tokens_neox': 654, 'n_words': 104}