<commit_before>require 'formula'

class Patchutils < Formula
  homepage 'http://cyberelk.net/tim/software/patchutils/'
  url 'http://cyberelk.net/tim/data/patchutils/stable/patchutils-0.3.3.tar.xz'
  sha1 '89d3f8a454bacede1b9a112b3a13701ed876fcc1'

  # Fix 'filterdiff --exclude-from-file...' crashes
  # https://fedorahosted.org/patchutils/ticket/30
  patch do
    url 'https://fedorahosted.org/patchutils/raw-attachment/ticket/30/0001-Provide-NULL-pointer-to-getline-to-avoid-realloc-ing.patch'
    sha1 'e787c8df1501feea5c895cdf9e8e01441035bdcf'
  end

  def install
    system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
    system "make install"
  end
end<commit_msg>patchutils: modernize<commit_after>class Patchutils < Formula
  homepage "http://cyberelk.net/tim/software/patchutils/"
  url "http://cyberelk.net/tim/data/patchutils/stable/patchutils-0.3.3.tar.xz"
  sha1 "89d3f8a454bacede1b9a112b3a13701ed876fcc1"

  # Fix 'filterdiff --exclude-from-file...' crashes
  # https://fedorahosted.org/patchutils/ticket/30
  patch do
    url "https://fedorahosted.org/patchutils/raw-attachment/ticket/30/0001-Provide-NULL-pointer-to-getline-to-avoid-realloc-ing.patch"
    sha1 "e787c8df1501feea5c895cdf9e8e01441035bdcf"
  end

  def install
    system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
    system "make", "install"
  end
end
{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.08225108225108226, 'mean_word_length': 4.233962264150944, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1657540', 'n_tokens_mistral': 600, 'n_tokens_neox': 528, 'n_words': 66}