<commit_before>{ stdenv, fetchzip
, pkgconfig, wrapGAppsHook
, glib, glib_networking, gsettings_desktop_schemas, gtk2, libsoup, webkitgtk
, patches ? null
}:

let
  # http://git.suckless.org/surf/log/?h=surf-webkit2
  rev = "37e43501d80710533f3ec0bd61ee84916c8524a4";
  sha256 = "1q388rzm4irpaam4z8xycbyh5dgkjlar5jn1iw7zfls1pbpzr5br";
  date = "2017-03-06";
in

stdenv.mkDerivation rec {
  name = "surf-webkit2-${date}";

  src = fetchzip {
    url = "http://git.suckless.org/surf/snapshot/surf-${rev}.tar.gz";
    inherit sha256;
  };

  nativeBuildInputs = [ pkgconfig wrapGAppsHook ];
  buildInputs = [ glib glib_networking gsettings_desktop_schemas gtk2 libsoup webkitgtk ];

  inherit patches;

  installFlags = [ "PREFIX=/" "DESTDIR=$(out)" ];

  meta = with stdenv.lib; {
    description = "A simple web browser based on WebKit/GTK+";
    longDescription = ''
      Surf is a simple web browser based on WebKit/GTK+. It is able to display
      websites and follow links. It supports the XEmbed protocol which makes it
      possible to embed it in another application. Furthermore, one can point
      surf to another URI by setting its XProperties.
    '';
    homepage = http://surf.suckless.org;
    license = licenses.mit;
    platforms = platforms.all;
    maintainers = with maintainers; [ joachifm ];
  };
}
<commit_msg>surf-webkit2: 2017-03-06 -> 2017-03-22<commit_after>{ stdenv, fetchzip
, pkgconfig, wrapGAppsHook
, glib, glib_networking, gsettings_desktop_schemas, gtk2, libsoup, webkitgtk
, patches ? null
}:

let
  # http://git.suckless.org/surf/log/?h=surf-webkit2
  rev = "7e02344a615a61246ccce1c7f770e88fbd57756e";
  sha256 = "11f93fbjhl7nfgwkcc45lcm3x1wk5h87ap8fbw9w855021i57pp6";
  date = "2017-03-22";
in

stdenv.mkDerivation rec {
  name = "surf-webkit2-${date}";

  src = fetchzip {
    url = "http://git.suckless.org/surf/snapshot/surf-${rev}.tar.gz";
    inherit sha256;
  };

  nativeBuildInputs = [ pkgconfig wrapGAppsHook ];
  buildInputs = [ glib glib_networking gsettings_desktop_schemas gtk2 libsoup webkitgtk ];

  inherit patches;

  installFlags = [ "PREFIX=/" "DESTDIR=$(out)" ];

  meta = with stdenv.lib; {
    description = "A simple web browser based on WebKit/GTK+";
    longDescription = ''
      Surf is a simple web browser based on WebKit/GTK+. It is able to display
      websites and follow links. It supports the XEmbed protocol which makes it
      possible to embed it in another application. Furthermore, one can point
      surf to another URI by setting its XProperties.
    '';
    homepage = http://surf.suckless.org;
    license = licenses.mit;
    platforms = platforms.all;
    maintainers = with maintainers; [ joachifm ];
  };
}

{'fraction_non_alphanumeric': 0.10983302411873841, 'fraction_numerical': 0.05343228200371058, 'mean_word_length': 3.696864111498258, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '526798', 'n_tokens_mistral': 1064, 'n_tokens_neox': 964, 'n_words': 230}