<commit_before>require 'formula'

class MidnightCommander <Formula
  url 'http://www.midnight-commander.org/downloads/mc-4.7.5.tar.bz2'
  homepage 'http://www.midnight-commander.org/'
  sha256 '0d2b4e87b8a4158edf54380df9402b4a1a19f7494ef06dd0a0a3e3ff6a2b50f1'

  depends_on 'pkg-config' => :build
  depends_on 'glib'
  depends_on 's-lang'

  def install
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--without-x",
                          "--with-screen=slang"
    system "make install"
  end
end<commit_msg>Modified formula for MC, it now supports --HEAD opt<commit_after>require 'formula'

class MidnightCommander <Formula

  url 'http://www.midnight-commander.org/downloads/mc-4.7.5.tar.bz2'
  homepage 'http://www.midnight-commander.org/'
  sha256 '0d2b4e87b8a4158edf54380df9402b4a1a19f7494ef06dd0a0a3e3ff6a2b50f1'
  head 'git://midnight-commander.org/git/mc.git', :using => :git,
                                # Ok, it's not a HEAD, but it works
                                :tag => '69d66dd5984357e37a0742c5e4d97c9f9f6305eb'

  depends_on 'pkg-config' => :build
  depends_on 'glib'
  depends_on 's-lang'

  def install
    if ARGV.build_head?
      ENV['LIBTOOLIZE'] = 'glibtoolize'
      system 'mkdir m4'
      system 'cp `brew --prefix`/share/aclocal/pkg.m4 ./m4'
      system './autogen.sh'
      system "cd po; for i in `ls | grep '[.]po$' | cut -d'.' -f1 | xargs`; do ./update.sh $i; done; cd .."
    end
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--without-x",
                          "--with-screen=slang"
    system "make install"
  end
end
{'fraction_non_alphanumeric': 0.14157303370786517, 'fraction_numerical': 0.06797752808988763, 'mean_word_length': 2.2559414990859232, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7042264', 'n_tokens_mistral': 700, 'n_tokens_neox': 640, 'n_words': 118}