<commit_before>{ stdenv, fetchurl, sane-backends, libX11, gtk2, pkgconfig, libusb ? null}:

stdenv.mkDerivation rec {
  name = "sane-frontends-1.0.14";

  src = fetchurl {
    url = "https://alioth.debian.org/frs/download.php/file/1140/${name}.tar.gz";
    sha256 = "1ad4zr7rcxpda8yzvfkq1rfjgx9nl6lan5a628wvpdbh3fn9v0z7";
  };

  preConfigure = ''
    sed -e '/SANE_CAP_ALWAYS_SETTABLE/d' -i src/gtkglue.c
  '';

  buildInputs = [sane-backends libX11 gtk2 pkgconfig] ++
	(if libusb != null then [libusb] else []);

  meta = {
    homepage = http://www.sane-project.org/;
    description = "Scanner Access Now Easy";
    license = stdenv.lib.licenses.gpl2Plus;

    maintainers = [ stdenv.lib.maintainers.peti ];
    platforms = stdenv.lib.platforms.linux;
  };
}<commit_msg>sane-frontends: boy scout cleanups<commit_after>{ stdenv, fetchurl, sane-backends, libX11, gtk2, pkgconfig, libusb ? null }:

stdenv.mkDerivation rec {
  name = "sane-frontends-${version}";
  version = "1.0.14";

  src = fetchurl {
    url = "https://alioth.debian.org/frs/download.php/latestfile/175/${name}.tar.gz";
    sha256 = "1ad4zr7rcxpda8yzvfkq1rfjgx9nl6lan5a628wvpdbh3fn9v0z7";
  };

  preConfigure = ''
    sed -e '/SANE_CAP_ALWAYS_SETTABLE/d' -i src/gtkglue.c
  '';

  buildInputs = [ sane-backends libX11 gtk2 ]
    ++ stdenv.lib.optional (libusb != null) libusb;
  nativeBuildInputs = [ pkgconfig ];

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    description = "Scanner Access Now Easy";
    homepage    = http://www.sane-project.org/;
    license     = licenses.gpl2Plus;
    maintainers = with maintainers; [ peti ];
    platforms   = platforms.linux;
  };
}
{'fraction_non_alphanumeric': 0.14457108578284344, 'fraction_numerical': 0.038992201559688064, 'mean_word_length': 3.4718498659517425, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5705043', 'n_tokens_mistral': 705, 'n_tokens_neox': 661, 'n_words': 110}