<commit_before>require 'formula'

class Imapfilter < Formula
  url 'https://github.com/downloads/lefcha/imapfilter/imapfilter-2.3.tar.gz'
  homepage 'http://github.com/lefcha/imapfilter/'
  md5 '912bb395d6c377018eaf7d74d2db6636'

  depends_on 'lua'
  depends_on 'pcre'

  def install
    system "make all"
    system "make PREFIX=#{prefix} MANDIR=#{man} install"
  end

  def test
    system "imapfilter -V"
  end
end
<commit_msg>imapfilter 2.4.2<commit_after>require 'formula'

class Imapfilter < Formula
  homepage 'http://github.com/lefcha/imapfilter/'
  url 'https://github.com/downloads/lefcha/imapfilter/imapfilter-2.4.2.tar.gz'
  md5 'a4582e9081da749afb81448f30a50ef6'

  depends_on 'lua'
  depends_on 'pcre'

  def install
    inreplace 'src/Makefile' do |s|
      s.change_make_var! 'CFLAGS', "#{s.get_make_var 'CFLAGS'} #{ENV.cflags}"
    end

    ENV.append 'LDFLAGS', '-liconv'
    system "make", "LDFLAGS=#{ENV.ldflags}"
    system "make", "PREFIX=#{prefix}", "MANDIR=#{man}", "install"
  end

  def test
    system "#{bin}/imapfilter -V"
  end
end

{'fraction_non_alphanumeric': 0.1440677966101695, 'fraction_numerical': 0.04896421845574388, 'mean_word_length': 3.8986175115207375, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3584999', 'n_tokens_mistral': 456, 'n_tokens_neox': 427, 'n_words': 80}