<commit_before>class Htop < Formula
  desc "Improved top (interactive process viewer)"
  homepage "https://hisham.hm/htop/"
  revision 2

  stable do
    url "https://hisham.hm/htop/releases/2.0.2/htop-2.0.2.tar.gz"
    sha256 "179be9dccb80cee0c5e1a1f58c8f72ce7b2328ede30fb71dcdf336539be2f487"

    # Running htop can lead to system freezes on macOS 10.13
    # https://github.com/hishamhm/htop/issues/682
    if MacOS.version >= :high_sierra
      patch do
        url "https://github.com/hishamhm/htop/commit/b2771218.patch?full_index=1"
        sha256 "3369f8aed21706d809db062f25fd46bf9c0677712a624697bc5415aa45d5d104"
      end
    end
  end

  bottle do
    sha256 "4e65d1d92ef616935ee5b6e498e05ad92e733ced3a41a408c2b30ce7a6b5a1ed" => :high_sierra
    sha256 "4e9fe44dc41ca415f3465b8445d06df7ed319ca50522758dc44298daff9d9de5" => :sierra
    sha256 "adf2b63b4fa6d96efc9cfb7c5726d14f5b70a6f38c8e7cea38e0befd26c6ca7f" => :el_capitan
  end

  head do
    url "https://github.com/hishamhm/htop.git"

    depends_on "autoconf" => :build
    depends_on "automake" => :build
    depends_on "libtool" => :build
    depends_on "pkg-config" => :build
  end

  if OS.mac?
    option "with-ncurses", "Build using homebrew ncurses (enables mouse scroll)"
    depends_on "ncurses" => :optional
  else
    depends_on "ncurses"
  end

  depends_on "ncurses" => :optional

  def install
    system "./autogen.sh" if build.head?
    system "./configure", "--prefix=#{prefix}"
    system "make", "install"<commit_msg>htop: update 2.0.2_2 bottle for Linuxbrew.<commit_after>class Htop < Formula
  desc "Improved top (interactive process viewer)"
  homepage "https://hisham.hm/htop/"
  revision 2

  stable do
    url "https://hisham.hm/htop/releases/2.0.2/htop-2.0.2.tar.gz"
    sha256 "179be9dccb80cee0c5e1a1f58c8f72ce7b2328ede30fb71dcdf336539be2f487"

    # Running htop can lead to system freezes on macOS 10.13
    # https://github.com/hishamhm/htop/issues/682
    if MacOS.version >= :high_sierra
      patch do
        url "https://github.com/hishamhm/htop/commit/b2771218.patch?full_index=1"
        sha256 "3369f8aed21706d809db062f25fd46bf9c0677712a624697bc5415aa45d5d104"
      end
    end
  end

  bottle do
    sha256 "4e65d1d92ef616935ee5b6e498e05ad92e733ced3a41a408c2b30ce7a6b5a1ed" => :high_sierra
    sha256 "4e9fe44dc41ca415f3465b8445d06df7ed319ca50522758dc44298daff9d9de5" => :sierra
    sha256 "adf2b63b4fa6d96efc9cfb7c5726d14f5b70a6f38c8e7cea38e0befd26c6ca7f" => :el_capitan
    sha256 "fa213231cbace1bbde83b1ff2c2c97b121a2ae726a81b18bdc60b2b618b5780c" => :x86_64_linux
  end

  head do
    url "https://github.com/hishamhm/htop.git"

    depends_on "autoconf" => :build
    depends_on "automake" => :build
    depends_on "libtool" => :build
    depends_on "pkg-config" => :build
  end

  if OS.mac?
    option "with-ncurses", "Build using homebrew ncurses (enables mouse scroll)"
    depends_on "ncurses" => :optional
  else
    depends_on "ncurses"
  end

  depends_on "ncurses" => :optional

  def install
    system "./autogen.sh" if build.head?
    system "./configure", "--prefix=#{prefix}"
    system "make", "install"
{'fraction_non_alphanumeric': 0.10326086956521739, 'fraction_numerical': 0.15601023017902813, 'mean_word_length': 3.8662519440124417, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 24, 'https://': 10, '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': '6387102', 'n_tokens_mistral': 1565, 'n_tokens_neox': 1338, 'n_words': 215}