<commit_before>{ lib, stdenv, fetchurl, fetchpatch, python }:

stdenv.mkDerivation rec {
  name = "clearsilver-0.10.5";

  src = fetchurl {
    url = "http://www.clearsilver.net/downloads/${name}.tar.gz";
    sha256 = "1046m1dpq3nkgxbis2dr2x7hynmy51n64465q78d7pdgvqwa178y";
  };

  PYTHON_SITE = "$(out)/site-packages";

  configureFlags = [
    "--with-python=${python}/bin/python"
    "--disable-apache"
    "--disable-perl"
    "--disable-ruby"
    "--disable-java"
    "--disable-csharp"
  ];

  preInstall = ''
    mkdir -p $out
    mkdir -p $out/site-packages
  '';

  patches = [
    (fetchpatch {
      url = "https://sources.debian.net/data/main/c/clearsilver/0.10.5-1.6/debian/patches/clang-gcc5.patch";
      sha256 = "0d44v9jx0b6k8nvrhknd958i9rs59kdh73z0lb4f1mzi8if16c38";
    })
    (fetchpatch {
      url = "https://sources.debian.net/data/main/c/clearsilver/0.10.5-1.6/debian/patches/CVE-2011-4357.diff";
      sha256 = "1lfncavxdqckrz03gv97lcliygbpi9lnih944vmdbn9zw6fwcipi";
    })
  ];

  meta = with lib; {
    description = "Fast, powerful, and language-neutral HTML template system";
    homepage = "http://www.clearsilver.net/";
    license = licenses.free;
  };
}
<commit_msg>clearsilver: use python2<commit_after>{ lib, stdenv, fetchurl, fetchpatch, python2 }:

stdenv.mkDerivation rec {
  name = "clearsilver-0.10.5";

  src = fetchurl {
    url = "http://www.clearsilver.net/downloads/${name}.tar.gz";
    sha256 = "1046m1dpq3nkgxbis2dr2x7hynmy51n64465q78d7pdgvqwa178y";
  };

  PYTHON_SITE = "${placeholder "out"}/${python2.sitePackages}";

  configureFlags = [
    "--with-python=${python2.interpreter}"
    "--disable-apache"
    "--disable-perl"
    "--disable-ruby"
    "--disable-java"
    "--disable-csharp"
  ];

  preInstall = ''
    mkdir -p $out
    mkdir -p $out/${python2.sitePackages}
  '';

  patches = [
    (fetchpatch {
      url = "https://sources.debian.net/data/main/c/clearsilver/0.10.5-1.6/debian/patches/clang-gcc5.patch";
      sha256 = "0d44v9jx0b6k8nvrhknd958i9rs59kdh73z0lb4f1mzi8if16c38";
    })
    (fetchpatch {
      url = "https://sources.debian.net/data/main/c/clearsilver/0.10.5-1.6/debian/patches/CVE-2011-4357.diff";
      sha256 = "1lfncavxdqckrz03gv97lcliygbpi9lnih944vmdbn9zw6fwcipi";
    })
  ];

  meta = with lib; {
    description = "Fast, powerful, and language-neutral HTML template system";
    homepage = "http://www.clearsilver.net/";
    license = licenses.free;
  };
}

{'fraction_non_alphanumeric': 0.1643499591169256, 'fraction_numerical': 0.07563368765331153, 'mean_word_length': 3.1126050420168068, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4620882', 'n_tokens_mistral': 1106, 'n_tokens_neox': 1004, 'n_words': 119}