<commit_before>require 'formula'

class Mutt <Formula
  @url='ftp://ftp.mutt.org/mutt/devel/mutt-1.5.20.tar.gz'
  @homepage='http://www.mutt.org/'
  @md5='027cdd9959203de0c3c64149a7ee351c'
  
  depends_on 'tokyo-cabinet'

  def options
    [
      ['--sidebar-patch', "Apply sidebar (folder list) patch"],
      ['--trash-patch', "Apply trash folder patch"]
    ]
  end

  def patches
    patches = []
    if ARGV.include? '--sidebar-patch'
      patches << 'http://lunar-linux.org/~tchan/mutt/patch-1.5.20.sidebar.20090619.txt'
    end
    if ARGV.include? '--trash-patch'
      patches << 'http://trac.macports.org/raw-attachment/ticket/20412/patch-1.5.20.cd.trash_folder.diff'
    end
    patches
  end

  def install
      configure_args = [
          "--prefix=#{prefix}",
          "--disable-debug",
          "--disable-dependency-tracking",
          "--disable-warnings",
          "--with-ssl",
          "--with-sasl",
          "--with-gnutls",
          "--with-gss",
          "--enable-imap",
          "--enable-smtp",
          "--enable-pop",
          "--enable-hcache",

          # This is just a trick to keep 'make install' from trying to chgrp
          # the mutt_dotlock file (which we can't do if we're running as an
          # unpriviledged user)
          "--with-homespool=.mbox"
      ]

    system "./configure", *configure_args
    system "make install"
  end
end
<commit_msg>Tell mutt to use tokyocabinet; fixes #1826<commit_after>require 'formula'

class Mutt <Formula
  url 'ftp://ftp.mutt.org/mutt/devel/mutt-1.5.20.tar.gz'
  homepage 'http://www.mutt.org/'
  md5 '027cdd9959203de0c3c64149a7ee351c'
  
  depends_on 'tokyo-cabinet'

  def options
    [
      ['--sidebar-patch', "Apply sidebar (folder list) patch"],
      ['--trash-patch', "Apply trash folder patch"]
    ]
  end

  def patches
    patches = []
    if ARGV.include? '--sidebar-patch'
      patches << 'http://lunar-linux.org/~tchan/mutt/patch-1.5.20.sidebar.20090619.txt'
    end
    if ARGV.include? '--trash-patch'
      patches << 'http://trac.macports.org/raw-attachment/ticket/20412/patch-1.5.20.cd.trash_folder.diff'
    end
    patches
  end

  def install
      configure_args = [
          "--prefix=#{prefix}",
          "--disable-debug",
          "--disable-dependency-tracking",
          "--disable-warnings",
          "--with-ssl",
          "--with-sasl",
          "--with-gnutls",
          "--with-gss",
          "--enable-imap",
          "--enable-smtp",
          "--enable-pop",
          "--enable-hcache",
          "--with-tokyocabinet",

          # This is just a trick to keep 'make install' from trying to chgrp
          # the mutt_dotlock file (which we can't do if we're running as an
          # unpriviledged user)
          "--with-homespool=.mbox"
      ]

    system "./configure", *configure_args
    system "make install"
  end
end

{'fraction_non_alphanumeric': 0.15619576535925025, 'fraction_numerical': 0.034015966678236725, 'mean_word_length': 1.9834368530020703, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7021950', 'n_tokens_mistral': 1058, 'n_tokens_neox': 982, 'n_words': 194}