<commit_before>require 'formula'

class Swftools <Formula
  url 'http://www.swftools.org/swftools-0.9.0.tar.gz'
  homepage 'http://www.swftools.org'
  md5 '946e7c692301a332745d29140bc74e55'

  depends_on 'jpeg'
  depends_on 'lame' => :optional

  def install
    ENV.minimal_optimization

    # Need to add freetype-config and other X11 utils to the path
    ENV.x11
    ENV.append 'PATH', '/usr/x11/bin', ':'

    system "./configure", "--prefix=#{prefix}"
    system "make"
    system "make install"
  end

  def caveats
    <<-EOS.undent
      swfc segfaults under Snow Leopard. Please persue this issue
      with the softare vendor:
        http://lists.nongnu.org/mailman/listinfo/swftools-common
    EOS
  end
end
<commit_msg>swftools - correct x11 bin path<commit_after>require 'formula'

class Swftools <Formula
  url 'http://www.swftools.org/swftools-0.9.0.tar.gz'
  homepage 'http://www.swftools.org'
  md5 '946e7c692301a332745d29140bc74e55'

  depends_on 'jpeg'
  depends_on 'lame' => :optional

  def install
    ENV.minimal_optimization

    # Add to PATH for freetype-config on Snow Leopard
    ENV.prepend 'PATH', '/usr/X11/bin', ':'
    ENV.x11

    system "./configure", "--prefix=#{prefix}"
    system "make"
    system "make install"
  end

  def caveats
    <<-EOS.undent
      swfc segfaults under Snow Leopard. Please persue this issue
      with the softare vendor:
        http://lists.nongnu.org/mailman/listinfo/swftools-common
    EOS
  end
end

{'fraction_non_alphanumeric': 0.11473183978275628, 'fraction_numerical': 0.04752206381534284, 'mean_word_length': 3.005434782608696, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2615057', 'n_tokens_mistral': 590, 'n_tokens_neox': 539, 'n_words': 127}