<commit_before>{ stdenv, intltool, fetchurl, libgweather, libnotify
, pkgconfig, gtk3, glib, gsound
, makeWrapper, itstool, libcanberra, libtool
, librsvg, gdk-pixbuf, geoclue2, wrapGAppsHook
, gsettings-desktop-schemas, adwaita-icon-theme
, gnome-desktop, geocode-glib, libxml2
}:

stdenv.mkDerivation rec {
  name = "gnome-clocks-3.18.0";

  src = fetchurl {
    url = mirror://gnome/sources/gnome-clocks/3.18/gnome-clocks-3.18.0.tar.xz;
    sha256 = "ca0818ec89e3539201da6b5388365e3d66df815198beccc90e2be44c7822baa0";
  };

  doCheck = true;

  buildInputs = [ pkgconfig gtk3 glib intltool itstool libcanberra
                  gsettings-desktop-schemas makeWrapper
                  gdk-pixbuf librsvg adwaita-icon-theme
                  gnome-desktop geocode-glib geoclue2
                  libgweather libnotify libtool gsound libxml2
                ];

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    homepage = https://wiki.gnome.org/Apps/Clocks;
    description = "Clock application designed for GNOME 3";
    maintainers = gnome3.maintainers;
    license = licenses.gpl2;
    platforms = platforms.linux;
  };
}<commit_msg>gnome-clocks: refactor<commit_after>{ stdenv
, fetchurl
, intltool
, itstool
, libtool

, adwaita-icon-theme
, gdk-pixbuf
, geoclue2
, geocode-glib
, glib
, gnome-desktop
, gsettings-desktop-schemas
, gsound
, gtk3
, libcanberra
, libgweather
, libnotify
, librsvg
, libxml2
, vala
}:

stdenv.mkDerivation rec {
  name = "gnome-clocks-${version}";
  versionMajor = "3.18";
  versionMinor = "0";
  version = "${versionMajor}.${versionMinor}";

  src = fetchurl {
    url = "mirror://gnome/sources/gnome-clocks/${versionMajor}/${name}.tar.xz";
    sha256 = "ca0818ec89e3539201da6b5388365e3d66df815198beccc90e2be44c7822baa0";
  };

  nativeBuildInputs = [
    intltool
    itstool
    libtool
  ];

  buildInputs = [
    geoclue2
    geocode-glib
    glib
    gnome-desktop
    gsound
    gtk3
    libgweather
    libxml2
    vala
  ];

  configureFlags = [
    "--enable-nls"
    "--enable-rpath"
    "--enable-schemas-compile"
  ];

  doCheck = true;

  meta = with stdenv.lib; {
    description = "Clock application designed for GNOME 3";
    homepage = https://wiki.gnome.org/Apps/Clocks;
    license = licenses.gpl2;
    maintainers = with maintainers; [
      codyopel
    ];
    platforms = [
      "i686-linux"
      "x86_64-linux"
    ];
  };
}
{'fraction_non_alphanumeric': 0.11485642946317104, 'fraction_numerical': 0.05201831044527674, 'mean_word_length': 2.940983606557377, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '3732546', 'n_tokens_mistral': 1008, 'n_tokens_neox': 887, 'n_words': 154}