<commit_before>{ fetchurl, stdenv, emacs }:

stdenv.mkDerivation {
  name = "quack-0.37";

  src = fetchurl {
    # XXX: Upstream URL is not versioned, which might eventually break this.
    url = "http://www.neilvandyke.org/quack/quack.el";
    sha256 = "1q5442cpvw2i0qhmhn7mh45jnmzg0cmd01k5zp4gvg1526c0hbcc";
  };

  buildInputs = [ emacs ];

  unpackPhase = "true";
  configurePhase = "true";
  installPhase = "true";

  buildPhase = ''
    emacsDir="$out/share/emacs/site-lisp"

    ensureDir "$emacsDir"
    cp -v "$src" "$emacsDir/quack.el"
    emacs --batch -f batch-byte-compile "$emacsDir/quack.el"
  '';<commit_msg>Quack 0.39.<commit_after>{ fetchurl, stdenv, emacs }:

stdenv.mkDerivation {
  name = "quack-0.39";

  src = fetchurl {
    # XXX: Upstream URL is not versioned, which might eventually break this.
    url = "http://www.neilvandyke.org/quack/quack.el";
    sha256 = "1w3p03f1f3l2nldxc7dig1kkgbbvy5j7zid0cfmkcrpp1qrcsqic";
  };

  buildInputs = [ emacs ];

  unpackPhase = "true";
  configurePhase = "true";
  installPhase = "true";

  buildPhase = ''
    emacsDir="$out/share/emacs/site-lisp"

    ensureDir "$emacsDir"
    cp -v "$src" "$emacsDir/quack.el"
    emacs --batch -f batch-byte-compile "$emacsDir/quack.el"
  '';
{'fraction_non_alphanumeric': 0.14903846153846154, 'fraction_numerical': 0.038461538461538464, 'mean_word_length': 3.4290780141843973, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '823757', 'n_tokens_mistral': 533, 'n_tokens_neox': 505, 'n_words': 91}