<commit_before>require 'formula'

class Htop <Formula
  head 'git://github.com/AndyA/htop-osx.git', :branch => 'osx'
  homepage 'http://htop.sourceforge.net/'

  def install
    system "./autogen.sh"
    system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
    system "make", "install", "DEFAULT_INCLUDES='-iquote .'"
  end

  def caveats; <<-EOS
In order for htop to display correctly all the running processes, it needs to be ran as root.

However, if you do not want to type `sudo htop` every time, you can change the owner and permissions for the executable binary:

$ cd #{prefix}/bin/
$ chmod 6555 htop
$ sudo chown root htop
    EOS
  end

end<commit_msg>htop - tweaks for OS X<commit_after>require 'formula'

class Htop <Formula
  head 'git://github.com/AndyA/htop-osx.git', :branch => 'osx'
  homepage 'http://htop.sourceforge.net/'

  def install
    system "./autogen.sh"
    system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
    system "make", "install", "DEFAULT_INCLUDES='-iquote .'"
    rm_rf "#{share}/applications" # Don't need Gnome support on OS X
    rm_rf "#{share}/pixmaps"
  end

  def caveats; <<-EOS
In order for htop to display correctly all the running processes, it needs to be ran as root.

However, if you do not want to type `sudo htop` every time, you can change the owner and permissions for the executable binary:

$ cd #{prefix}/bin/
$ chmod 6555 htop
$ sudo chown root htop
    EOS
  end

end
{'fraction_non_alphanumeric': 0.13267326732673268, 'fraction_numerical': 0.005280528052805281, 'mean_word_length': 3.580060422960725, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '1514396', 'n_tokens_mistral': 516, 'n_tokens_neox': 487, 'n_words': 176}