<commit_before>require 'formula'

class Swfmill < Formula
  homepage 'http://swfmill.org'
  url 'http://swfmill.org/releases/swfmill-0.3.3.tar.gz'
  sha1 '7aa2c674e20f5649985b6dde3838393c5efefb6e'

  depends_on 'pkg-config' => :build
  depends_on :freetype
  depends_on :libpng

  def install
    # Use inreplace isntead of a patch due to newlines
    # Reported usptream:
    # https://github.com/djcsdy/swfmill/issues/32
    inreplace "src/swft/swft_import_ttf.cpp",
      "#include <freetype/tttables.h>",
      "#include FT_TRUETYPE_TABLES_H"

    system "./configure", "--prefix=#{prefix}"
    # Has trouble linking against zlib unless we add it here - @adamv
    system "make", "LIBS=-lz", "install"
  end
end<commit_msg>swfmill: fix typo in comment<commit_after>require 'formula'

class Swfmill < Formula
  homepage 'http://swfmill.org'
  url 'http://swfmill.org/releases/swfmill-0.3.3.tar.gz'
  sha1 '7aa2c674e20f5649985b6dde3838393c5efefb6e'

  depends_on 'pkg-config' => :build
  depends_on :freetype
  depends_on :libpng

  def install
    # Use inreplace instead of a patch due to newlines
    # Reported usptream:
    # https://github.com/djcsdy/swfmill/issues/32
    inreplace "src/swft/swft_import_ttf.cpp",
      "#include <freetype/tttables.h>",
      "#include FT_TRUETYPE_TABLES_H"

    system "./configure", "--prefix=#{prefix}"
    # Has trouble linking against zlib unless we add it here - @adamv
    system "make", "LIBS=-lz", "install"
  end
end
{'fraction_non_alphanumeric': 0.12321307011572498, 'fraction_numerical': 0.04084411164057182, 'mean_word_length': 3.637223974763407, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '2835417', 'n_tokens_mistral': 593, 'n_tokens_neox': 560, 'n_words': 119}