<commit_before>require 'formula'

class Gwenhywfar <Formula
  url 'http://www2.aquamaniac.de/sites/download/download.php?package=01&release=31&file=01&dummy=gwenhywfar-3.11.3.tar.gz'
  homepage 'http://gwenhywfar.sourceforge.net/'
  md5 '9ab62d881a0f39d4b07ea0badff7201f'

  depends_on 'pkg-config'
  depends_on 'gettext'
  depends_on 'gnutls'

  def install
    fails_with_llvm "llvm results in a sigsegfault during compile"
    system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
    system "make install"
  end
end<commit_msg>Update Formula: gwenhywfar<commit_after>require 'formula'

class Gwenhywfar <Formula
  url 'http://www2.aquamaniac.de/sites/download/download.php?package=01&release=54&file=01&dummy=gwenhywfar-4.0.1.tar.gz'
  homepage 'http://gwenhywfar.sourceforge.net/'
  md5 '513ea7b5b22edf512fa7d825ef544954'

  depends_on 'pkg-config'
  depends_on 'gettext'
  depends_on 'gnutls'

  def options
    [
      ['--with-gui=XX,...', "Install gui support XX where XX is the name of the gui toolkit\n\te.g.: --with-gui=gtk\n\tAvailable gui toolkits are: qt, gtk"],
    ]
  end


  def install
    guis = []
    ARGV.options_only.select { |v| v =~ /--with-gui=/ }.uniq.each do |opt|
      guis << opt.split('=')[1].split(',')
    end

    configure_args = [
      "--prefix=#{prefix}",
      "--disable-debug",
      "--disable-dependency-tracking",
      "--with-guis='#{guis.flatten.join(' ')}'"
    ]

    system "./configure", *configure_args
    system "make install"
  end
end
{'fraction_non_alphanumeric': 0.15830618892508144, 'fraction_numerical': 0.03973941368078176, 'mean_word_length': 3.5714285714285716, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, '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': '4526966', 'n_tokens_mistral': 623, 'n_tokens_neox': 582, 'n_words': 104}