<commit_before>require 'formula'

class Doxygen < Formula
  homepage 'http://www.doxygen.org/'
  url 'http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.3.src.tar.gz'
  mirror 'http://downloads.sourceforge.net/project/doxygen/rel-1.8.3/doxygen-1.8.3.src.tar.gz'
  sha1 'e74240f445e08b782fa7a3de5f0b333901307587'

  head 'https://doxygen.svn.sourceforge.net/svnroot/doxygen/trunk'

  def install
    system "./configure", "--prefix", prefix
    system "make", "CC=#{ENV.cc}",
                   "CXX=#{ENV.cxx}",
                   "CFLAGS=#{ENV.cflags}",
                   "CXXFLAGS=#{ENV.cflags}"
    # MAN1DIR, relative to the given prefix
    system "make", "MAN1DIR=share/man/man1", "install"
  end
end<commit_msg>doxygen: enable dot and GUI<commit_after>require 'formula'

class Doxygen < Formula
  homepage 'http://www.doxygen.org/'
  url 'http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.3.src.tar.gz'
  mirror 'http://downloads.sourceforge.net/project/doxygen/rel-1.8.3/doxygen-1.8.3.src.tar.gz'
  sha1 'e74240f445e08b782fa7a3de5f0b333901307587'

  head 'https://doxygen.svn.sourceforge.net/svnroot/doxygen/trunk'

  option 'with-dot', 'Build with dot command support from Graphviz.'
  option 'with-doxywizard', 'Build GUI frontend with qt support.'

  depends_on 'graphviz' if build.include? 'with-dot'
  depends_on 'qt' if build.include? 'with-doxywizard'

  def install
    system "./configure", "--prefix", prefix
    system "make"
    # MAN1DIR, relative to the given prefix
    system "make", "MAN1DIR=share/man/man1", "install"
  end
end
{'fraction_non_alphanumeric': 0.15389568576947843, 'fraction_numerical': 0.0540888602704443, 'mean_word_length': 3.4022662889518416, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '3070036', 'n_tokens_mistral': 647, 'n_tokens_neox': 584, 'n_words': 104}