<commit_before>{ stdenv
, autoreconfHook
, docbook_xml_dtd_45
, docbook-xsl
, fetchFromGitHub
, libxml2
, libxslt

, python2Packages
}:

let
  version = "8.6.10";
in
stdenv.mkDerivation rec {
  name = "asciidoc-${version}";

  src = fetchFromGitHub {
    version = 6;
    owner = "asciidoc";
    repo = "asciidoc";
    rev = version;
    sha256 = "0f90e25f46d1ba2c5b12a2db896c80a1d82c145606ce536dd9766b814b7be929";
  };

  nativeBuildInputs = [
    autoreconfHook
    docbook_xml_dtd_45
    docbook-xsl
    libxml2
    libxslt
  ];

  buildInputs = [
    python2Packages.python
  ];

  postPatch = ''
    patchShebangs asciidoc.py
  '';

  meta = with stdenv.lib; {
    description = "A plain text human readable/writable document format";
    homepage = http://asciidoc.org/;
    license = licenses.gpl2;<commit_msg>asciidoc: cleanup<commit_after>{ stdenv
, autoreconfHook
, docbook_xml_dtd_45
, docbook-xsl
, fetchFromGitHub
, lib
, libxml2
, libxslt

, python2Packages
}:

let
  version = "8.6.10";
in
stdenv.mkDerivation rec {
  name = "asciidoc-${version}";

  src = fetchFromGitHub {
    version = 6;
    owner = "asciidoc";
    repo = "asciidoc";
    rev = version;
    sha256 = "0f90e25f46d1ba2c5b12a2db896c80a1d82c145606ce536dd9766b814b7be929";
  };

  nativeBuildInputs = [
    autoreconfHook
    docbook_xml_dtd_45
    docbook-xsl
    libxml2
    libxslt
  ];

  buildInputs = [
    python2Packages.python
  ];

  postPatch = ''
    patchShebangs asciidoc.py
  '';

  meta = with lib; {
    description = "A plain text human readable/writable document format";
    homepage = http://asciidoc.org/;
    license = licenses.gpl2;
{'fraction_non_alphanumeric': 0.10568112400733048, 'fraction_numerical': 0.0708613317043372, 'mean_word_length': 3.2545454545454544, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '3501944', 'n_tokens_mistral': 720, 'n_tokens_neox': 651, 'n_words': 111}