<commit_before>require 'formula'

class SwiProlog < Formula
  homepage 'http://www.swi-prolog.org/'
  url 'http://www.swi-prolog.org/download/stable/src/pl-6.4.1.tar.gz'
  sha1 '37308983d438e364407b89e835f77a31e5474913'

  devel do
    url 'http://www.swi-prolog.org/download/devel/src/pl-6.5.2.tar.gz'
    sha1 'fa448e1e59f901966de533140ce8bf6649e51b03'
  end

  head 'git://www.swi-prolog.org/home/pl/git/pl.git'

  option 'lite', "Disable all packages"
  option 'with-jpl', "Enable JPL (Java Prolog Bridge)"
  option 'with-xpce', "Enable XPCE (Prolog Native GUI Library)"

  depends_on 'readline'
  depends_on 'gmp'

  if build.include? 'with-xpce'
    depends_on 'pkg-config' => :build
    depends_on :x11
    depends_on 'jpeg'
  end

  # 10.5 versions of these are too old
  if MacOS.version <= :leopard
    depends_on 'fontconfig'<commit_msg>swi-prolog HEAD depends on autoconf<commit_after>require 'formula'

class SwiProlog < Formula
  homepage 'http://www.swi-prolog.org/'
  url 'http://www.swi-prolog.org/download/stable/src/pl-6.4.1.tar.gz'
  sha1 '37308983d438e364407b89e835f77a31e5474913'

  devel do
    url 'http://www.swi-prolog.org/download/devel/src/pl-6.5.2.tar.gz'
    sha1 'fa448e1e59f901966de533140ce8bf6649e51b03'
  end

  head do
    url 'git://www.swi-prolog.org/home/pl/git/pl.git'

    depends_on :autoconf
  end

  option 'lite', "Disable all packages"
  option 'with-jpl', "Enable JPL (Java Prolog Bridge)"
  option 'with-xpce', "Enable XPCE (Prolog Native GUI Library)"

  depends_on 'readline'
  depends_on 'gmp'

  if build.include? 'with-xpce'
    depends_on 'pkg-config' => :build
    depends_on :x11
    depends_on 'jpeg'
  end

  # 10.5 versions of these are too old
  if MacOS.version <= :leopard
    depends_on 'fontconfig'
{'fraction_non_alphanumeric': 0.12947189097103917, 'fraction_numerical': 0.08290743895513912, 'mean_word_length': 3.564766839378238, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, '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': '1317395', 'n_tokens_mistral': 807, 'n_tokens_neox': 719, 'n_words': 142}