<commit_before>require 'formula'

# NOTE this should be provided by pip eventually
# currently easy_install doesn't seem to support it

class Sip <Formula
  url 'http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.9.1.tar.gz'
  homepage 'http://www.riverbankcomputing.co.uk/software/sip'
  md5 '4bd61529a956a08841bb3cc2f949e1c4'

  def install
    system "python", "configure.py", "--destdir=#{lib}/python",
                                     "--bindir=#{bin}",
                                     "--incdir=#{include}"
    system "make install"
  end

  def caveats; <<-EOS
This formula won't function until you add the following to your PYTHONPATH
environment variable:

#{HOMEBREW_PREFIX}/lib/python

Installing with easy_install would be ideal; then the libraries are installed
to /Library/Python which is in the default OS X Python library path. However
easy_install does not support this formula.
    EOS
  end
end
<commit_msg>updated url in sip formula<commit_after>require 'formula'

# NOTE this should be provided by pip eventually
# currently easy_install doesn't seem to support it

class Sip <Formula
  url 'http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.9.3.tar.gz'
  homepage 'http://www.riverbankcomputing.co.uk/software/sip'
  md5 'd60ec6e87c0155df779fd8b529e80706'

  def install
    system "python", "configure.py", "--destdir=#{lib}/python",
                                     "--bindir=#{bin}",
                                     "--incdir=#{include}"
    system "make install"
  end

  def caveats; <<-EOS
This formula won't function until you add the following to your PYTHONPATH
environment variable:

#{HOMEBREW_PREFIX}/lib/python

Installing with easy_install would be ideal; then the libraries are installed
to /Library/Python which is in the default OS X Python library path. However
easy_install does not support this formula.
    EOS
  end
end

{'fraction_non_alphanumeric': 0.09429020429544265, 'fraction_numerical': 0.027239392352016764, 'mean_word_length': 3.0552016985138004, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2302897', 'n_tokens_mistral': 613, 'n_tokens_neox': 572, 'n_words': 182}