<commit_before>{ stdenv
, fetchurl

, type ? ""
}:

let
  sources = {
    "" = {
      multihash = "QmPr15Jcki6Q434fgNcbESVkS84Wyj5NPjXDZ6vrnLQ4Nj";
      sha256 = "725f452e12b296956e8bfb876ccece71eeecdd14b94f667f3ed9091761a4a968";
    };
    "ns" = {
      multihash = "QmbNqZRikpVksYesK1fhmsqR7D6evMjdYZFxWi4TxbQVR6";
      sha256 = "36ca9026e05b8985baebd61a23af8ded8e2cf71cc3163b673159c9d78a7b0f9c";
    };
  };

  inherit (sources."${type}")
    multihash
    sha256;

  pname = "docbook-xsl${if type != "" then "-${type}" else ""}";
in
stdenv.mkDerivation rec {
  name = "${pname}-1.79.1";

  src = fetchurl {
    url = "mirror://sourceforge/docbook/${name}.tar.bz2";
    inherit multihash sha256;
  };

  # Running make will cause the build to fail
  buildPhase = ''<commit_msg>docbook-xsl: Fix url<commit_after>{ stdenv
, fetchurl

, type ? ""
}:

let
  sources = {
    "" = {
      multihash = "QmPr15Jcki6Q434fgNcbESVkS84Wyj5NPjXDZ6vrnLQ4Nj";
      sha256 = "725f452e12b296956e8bfb876ccece71eeecdd14b94f667f3ed9091761a4a968";
    };
    "ns" = {
      multihash = "QmbNqZRikpVksYesK1fhmsqR7D6evMjdYZFxWi4TxbQVR6";
      sha256 = "36ca9026e05b8985baebd61a23af8ded8e2cf71cc3163b673159c9d78a7b0f9c";
    };
  };

  inherit (sources."${type}")
    multihash
    sha256;

  pname = "docbook-xsl${if type != "" then "-${type}" else ""}";

  version = "1.79.1";
in
stdenv.mkDerivation rec {
  name = "${pname}-${version}";

  src = fetchurl {
    url = "mirror://sourceforge/docbook/${pname}/${version}/${name}.tar.bz2";
    inherit multihash sha256;
  };

  # Running make will cause the build to fail
  buildPhase = ''
{'fraction_non_alphanumeric': 0.14241676942046855, 'fraction_numerical': 0.1344019728729963, 'mean_word_length': 3.6107954545454546, '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': '1069057', 'n_tokens_mistral': 851, 'n_tokens_neox': 730, 'n_words': 96}