<commit_before>require 'formula'

class Docbook2x < Formula
  url 'http://downloads.sourceforge.net/docbook2x/docbook2X-0.8.8.tar.gz'
  sha1 '7dc34d420f8aae2a0c0cdb39f52146ce005bf902'
  homepage 'http://docbook2x.sourceforge.net/'

  depends_on 'docbook'
  depends_on 'XML::NamespaceSupport' => :perl
  depends_on 'XML::SAX' => :perl
  depends_on 'XML::Parser' => :perl
  depends_on 'XML::SAX::Expat' => :perl

  def install
    inreplace "perl/db2x_xsltproc.pl", "http://docbook2x.sf.net/latest/xslt", "#{share}/docbook2X/xslt"
    inreplace "configure", "${prefix}", prefix
    system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
    system "make install"
  end
end<commit_msg>docbook2x: style nits<commit_after>require 'formula'

class Docbook2x < Formula
  homepage 'http://docbook2x.sourceforge.net/'
  url 'http://downloads.sourceforge.net/docbook2x/docbook2X-0.8.8.tar.gz'
  sha1 '7dc34d420f8aae2a0c0cdb39f52146ce005bf902'

  depends_on 'docbook'
  depends_on 'XML::NamespaceSupport' => :perl
  depends_on 'XML::SAX' => :perl
  depends_on 'XML::Parser' => :perl
  depends_on 'XML::SAX::Expat' => :perl

  def install
    inreplace "perl/db2x_xsltproc.pl", "http://docbook2x.sf.net/latest/xslt", "#{share}/docbook2X/xslt"
    inreplace "configure", "${prefix}", prefix
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end
{'fraction_non_alphanumeric': 0.16041666666666668, 'fraction_numerical': 0.04791666666666667, 'mean_word_length': 4.317343173431734, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '6690723', 'n_tokens_mistral': 585, 'n_tokens_neox': 542, 'n_words': 89}