<commit_before>{ stdenv, fetchurl, zlib, gd, texinfo
, emacs ? null
, libX11 ? null
, libXt ? null
, libXpm ? null
, libXaw ? null
, wxGTK ? null
, pango ? null
, cairo ? null
, pkgconfig ? null
, x11Support ? false
, readline
}:

assert x11Support -> ((libX11 != null) &&
    (libXt != null) && (libXpm != null) &&
    (libXaw != null));

assert (wxGTK != null) -> x11Support;

stdenv.mkDerivation {
  name = "gnuplot-4.2.6";
  src = fetchurl {
    url = "mirror://sourceforge/gnuplot/gnuplot-4.2.6.tar.gz";
    sha256 = "10lfmbib3wrzfhvjqk7ffc29fb2aw6m84p4cx6znmgbpc3mw5yw1";
  };

  configureFlags = if x11Support then ["--with-x"] else ["--without-x"];

  buildInputs = [zlib gd texinfo readline emacs] ++
    (if x11Support then [libX11 libXt libXpm libXaw] else []) ++
    (if wxGTK != null then [wxGTK pango cairo pkgconfig] else []);
}<commit_msg>gnuplot: updated to version 4.4.0<commit_after>{ stdenv, fetchurl, zlib, gd, texinfo
, texLive ? null
, lua ? null
, emacs ? null
, libX11 ? null
, libXt ? null
, libXpm ? null
, libXaw ? null
, wxGTK ? null
, pango ? null
, cairo ? null
, pkgconfig ? null
, x11Support ? false
, readline
}:

assert x11Support -> ((libX11 != null) &&
    (libXt != null) && (libXpm != null) &&
    (libXaw != null));

assert (wxGTK != null) -> x11Support;

stdenv.mkDerivation {
  name = "gnuplot-4.4.0";
  src = fetchurl {
    url = "mirror://sourceforge/gnuplot/gnuplot-4.4.0.tar.gz";
    sha256 = "0akb2lzxa3b0j4nr6anr0mhsk10b1fcnixk8vk9aa82rl1a2rph0";
  };

  configureFlags = if x11Support then ["--with-x"] else ["--without-x"];

  buildInputs = [zlib gd texinfo readline emacs lua texLive] ++
    (if x11Support then [libX11 libXt libXpm libXaw] else []) ++
    (if wxGTK != null then [wxGTK pango cairo pkgconfig] else []);
}
{'fraction_non_alphanumeric': 0.15632054176072235, 'fraction_numerical': 0.04796839729119639, 'mean_word_length': 3.557840616966581, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '917997', 'n_tokens_mistral': 770, 'n_tokens_neox': 723, 'n_words': 170}