<commit_before>require 'formula'

class Autotrace < Formula
  homepage 'http://autotrace.sourceforge.net'
  url 'https://downloads.sourceforge.net/project/autotrace/AutoTrace/0.31.1/autotrace-0.31.1.tar.gz'
  sha1 '679e4912528030b86f23db5b99e60f8e7df883fd'

  depends_on 'imagemagick' => :recommended

  # Issue 16569: Use MacPorts patch to port input-png.c to libpng 1.5.
  # Fix underquoted m4
  def patches
    {:p0 => [
      'https://trac.macports.org/export/100575/trunk/dports/graphics/autotrace/files/patch-libpng-1.5.diff',
      'https://trac.macports.org/export/77101/trunk/dports/graphics/autotrace/files/patch-autotrace.m4.diff'
    ]}<commit_msg>autotrace: use checksummed patches<commit_after>require 'formula'

class Autotrace < Formula
  homepage 'http://autotrace.sourceforge.net'
  url 'https://downloads.sourceforge.net/project/autotrace/AutoTrace/0.31.1/autotrace-0.31.1.tar.gz'
  sha1 '679e4912528030b86f23db5b99e60f8e7df883fd'

  depends_on 'imagemagick' => :recommended

  # Issue 16569: Use MacPorts patch to port input-png.c to libpng 1.5.
  # Fix underquoted m4
  patch :p0 do
    url "https://trac.macports.org/export/100575/trunk/dports/graphics/autotrace/files/patch-libpng-1.5.diff"
    sha1 "b9b8bd6eca4ca41586ac1bd22cc0c5df2e1bf601"
  end

  patch :p0 do
    url "https://trac.macports.org/export/77101/trunk/dports/graphics/autotrace/files/patch-autotrace.m4.diff"
    sha1 "e9969fc23f83ad739f6c7f572b5c6d48eae910f5"
{'fraction_non_alphanumeric': 0.12482758620689655, 'fraction_numerical': 0.11310344827586206, 'mean_word_length': 4.295620437956204, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1977467', 'n_tokens_mistral': 696, 'n_tokens_neox': 598, 'n_words': 79}