<commit_before>{ fetchurl, stdenv }:

let
  rev = "269cc6";

  src = fetchurl {
    url = "http://pkgs.fedoraproject.org/gitweb/?p=hardlink.git;a=blob_plain;f=hardlink.c;hb=${rev}";
    sha256 = "721c54e653772e11bf0d30fb02aa21b96b147a1b68c0acb4f05cb87e7718bc12";
    name = "hardlink.c";
  };

  man =  fetchurl {
    url = "pkgs.fedoraproject.org/gitweb/?p=hardlink.git;a=blob_plain;f=hardlink.1;hb=${rev}";
    sha256 = "2f7e18a0259a2ceae316592e8b18bee525eb7e83fe3bb6b881e5dafa24747f2d";
    name = "hardlink.1";
  };
in
stdenv.mkDerivation {
  name = "hardlink-2010.1.${rev}";

  phases = ["buildPhase"];

  buildPhase = ''
    mkdir -p $out/bin $out/share/man/man1
    gcc -O2 ${src} -o $out/bin/hardlink
    install -m 444 ${man} $out/share/man/man1/hardlink.1
  '';

  meta = {
    homepage = "http://pkgs.fedoraproject.org/gitweb/?p=hardlink.git;a=summary";
    description = "consolidate duplicate files via hardlinks";
    license = stdenv.lib.licenses.gpl2Plus;

    platforms = stdenv.lib.platforms.unix;
    maintainers = [ stdenv.lib.maintainers.simons ];
  };
}<commit_msg>hardlink: update to latest version<commit_after>{ fetchurl, stdenv, unzip }:

let
  rev = "3ec908d539";
in
stdenv.mkDerivation {
  name = "hardlink-2012.9.${rev}";

  src = fetchurl {
    url = "pkgs.fedoraproject.org/cgit/hardlink.git/snapshot/hardlink-${rev}.zip";
    sha256 = "fea1803170b538d5fecf6a8d312ded1d25d516e9386a3797441a247487551647";
    name = "hardlink-${rev}.zip";
  };

  installPhase = ''
    mkdir -p $out/bin $out/share/man/man1
    gcc -O2 hardlink.c -o $out/bin/hardlink
    mv hardlink.1 $out/share/man/man1/hardlink.1
  '';

  buildInputs = [ unzip ];

  meta = {
    homepage = "http://pkgs.fedoraproject.org/cgit/hardlink.git/";
    description = "consolidate duplicate files via hardlinks";
    license = stdenv.lib.licenses.gpl2Plus;

    platforms = stdenv.lib.platforms.unix;
    maintainers = [ stdenv.lib.maintainers.simons ];
  };
}
{'fraction_non_alphanumeric': 0.15360983102918588, 'fraction_numerical': 0.0855094726062468, 'mean_word_length': 3.6413301662707838, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2963139', 'n_tokens_mistral': 913, 'n_tokens_neox': 813, 'n_words': 111}