<commit_before>{stdenv, fetchurl, zlib, python ? null, pythonSupport ? true }:

assert pythonSupport -> python != null;

stdenv.mkDerivation {
  name = "libxml2-2.7.6";

  src = fetchurl {
    url = ftp://xmlsoft.org/libxml2/libxml2-sources-2.7.6.tar.gz;
    sha256 = "0n61rqqfiv0m64p01cwx205i6hb0mmzf7r0ya40s4fiqd2nhkkg0";
  };

  configureFlags = ''                                                  
    ${if pythonSupport then "--with-python=${python}" else ""}         
  '';
  
  propagatedBuildInputs = [zlib];

  setupHook = ./setup-hook.sh;

  passthru = {inherit pythonSupport;};

  meta = {
    homepage = http://xmlsoft.org/;
    description = "A XML parsing library for C";
    license = "bsd";
  };
}<commit_msg>* Update libxml2 to 2.7.7.  This is necessary because of the zlib   update - xsltproc segfaults otherwise.  (From the release notes:   "libxml violates the zlib interface and crashes".)<commit_after>{stdenv, fetchurl, zlib, python ? null, pythonSupport ? true }:

assert pythonSupport -> python != null;

stdenv.mkDerivation {
  name = "libxml2-2.7.7";

  src = fetchurl {
    url = ftp://xmlsoft.org/libxml2/libxml2-sources-2.7.7.tar.gz;
    sha256 = "03kkknm7xl77qfdig8mzalsi8ljsyblzin18gy3h8zranffrpyzs";
  };

  configureFlags = ''                                                  
    ${if pythonSupport then "--with-python=${python}" else ""}         
  '';
  
  propagatedBuildInputs = [zlib];

  setupHook = ./setup-hook.sh;

  passthru = {inherit pythonSupport;};

  meta = {
    homepage = http://xmlsoft.org/;
    description = "A XML parsing library for C";
    license = "bsd";
  };
}
{'fraction_non_alphanumeric': 0.1344019728729963, 'fraction_numerical': 0.036374845869297165, 'mean_word_length': 2.5282608695652176, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '520472', 'n_tokens_mistral': 596, 'n_tokens_neox': 563, 'n_words': 116}