<commit_before>{stdenv, fetchurl, gtk, perl, perlXMLParser, pkgconfig } :

let version = "0.4"; in
stdenv.mkDerivation {
  name = "gcolor2-${version}";
  arch = if stdenv.system == "x86_64-linux" then "amd64" else "386";

  src = fetchurl {
    url = "mirror://sourceforge/project/gcolor2/gcolor2/${version}/gcolor2-${version}.tar.bz2";
    sha1 = "e410a52dcff3d5c6c3d448b68a026d04ccd744be";

  };

  preConfigure = ''
    sed -i 's/\[:space:\]/[&]/g' configure
  '';

  # from https://github.com/PhantomX/slackbuilds/tree/master/gcolor2/patches
  patches = if stdenv.system == "x86_64-linux" then
        [ ./gcolor2-amd64.patch ] else
        [ ];

buildInputs = [ gtk perl perlXMLParser pkgconfig ];

  meta = {
    description = "Simple GTK+2 color selector";
    homepage = http://gcolor2.sourceforge.net/;
  };
}<commit_msg>Update default.nix<commit_after>{stdenv, fetchurl, gtk, perl, perlXMLParser, pkgconfig } :

let version = "0.4"; in
stdenv.mkDerivation {
  name = "gcolor2-${version}";
  arch = if stdenv.system == "x86_64-linux" then "amd64" else "386";

  src = fetchurl {
    url = "mirror://sourceforge/project/gcolor2/gcolor2/${version}/gcolor2-${version}.tar.bz2";
    sha1 = "e410a52dcff3d5c6c3d448b68a026d04ccd744be";

  };

  preConfigure = ''
    sed -i 's/\[:space:\]/[&]/g' configure
  '';

  # from https://github.com/PhantomX/slackbuilds/tree/master/gcolor2/patches
  patches = if stdenv.system == "x86_64-linux" then
        [ ./gcolor2-amd64.patch ] else
        [ ];

buildInputs = [ gtk perl perlXMLParser pkgconfig ];

  meta = {
    description = "Simple GTK+2 color selector";
    homepage = http://gcolor2.sourceforge.net/;
    license = stdenv.lib.licenses.gpl2Plus;
    maintainers = with stdenv.lib.maintainers; [ notthemessiah ];
  };
}
{'fraction_non_alphanumeric': 0.1616901408450704, 'fraction_numerical': 0.05577464788732395, 'mean_word_length': 3.417910447761194, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1879387', 'n_tokens_mistral': 747, 'n_tokens_neox': 690, 'n_words': 115}