<commit_before>class Bpytop < Formula
  include Language::Python::Virtualenv

  desc "Linux/OSX/FreeBSD resource monitor"
  homepage "https://github.com/aristocratos/bpytop"
  url "https://files.pythonhosted.org/packages/43/d8/414727e63240d1807bbff8fc324faf88724092a49a21f61008a1a26fcc5f/bpytop-1.0.58.tar.gz"
  sha256 "cec670c64f6ac6b333455344f1a0db074df16eaaf866703f6abb1e2c22617acb"
  license "Apache-2.0"

  bottle do
    cellar :any_skip_relocation
    sha256 "e7bda6f0e5608777227250c8e4befea76eb5ad291145130f139fd33a81f069ab" => :big_sur
    sha256 "fa45863a58eefee5501f5126e3796ef8029118dccd95b320375b5222c77839c5" => :arm64_big_sur
    sha256 "3f646818bc118548e899ce67b6164c0becabad1a5e6678f87ab49b9bc80b0c5f" => :catalina
    sha256 "e5f468f45ea40c94d968e543f754355a442cdc4f8eab9c10f7d0a51bbcc0b475" => :mojave
  end

  depends_on "python@3.9"
  on_macos do
    depends_on "osx-cpu-temp"
  end

  resource "psutil" do
    url "https://files.pythonhosted.org/packages/e1/b0/7276de53321c12981717490516b7e612364f2cb372ee8901bd4a66a000d7/psutil-5.8.0.tar.gz"
    sha256 "0c9ccb99ab76025f2f0bbecf341d4656e9c1351db8cc8a03ccd62e318ab4b5c6"
  end

  def install
    virtualenv_install_with_resources
    pkgshare.install "bpytop-themes" => "themes"
  end

  test do
    config = (testpath/".config/bpytop")<commit_msg>bpytop 1.0.59<commit_after>class Bpytop < Formula
  include Language::Python::Virtualenv

  desc "Linux/OSX/FreeBSD resource monitor"
  homepage "https://github.com/aristocratos/bpytop"
  url "https://files.pythonhosted.org/packages/c0/7b/8a81267ab04c286e2f7da3b1db488f1e2af917937223589281af87a05308/bpytop-1.0.59.tar.gz"
  sha256 "bfa578e770fa8ac30e9efde23724d305c226989c29e554e8a56124ec28510124"
  license "Apache-2.0"

  bottle do
    cellar :any_skip_relocation
    sha256 "e7bda6f0e5608777227250c8e4befea76eb5ad291145130f139fd33a81f069ab" => :big_sur
    sha256 "fa45863a58eefee5501f5126e3796ef8029118dccd95b320375b5222c77839c5" => :arm64_big_sur
    sha256 "3f646818bc118548e899ce67b6164c0becabad1a5e6678f87ab49b9bc80b0c5f" => :catalina
    sha256 "e5f468f45ea40c94d968e543f754355a442cdc4f8eab9c10f7d0a51bbcc0b475" => :mojave
  end

  depends_on "python@3.9"
  on_macos do
    depends_on "osx-cpu-temp"
  end

  resource "psutil" do
    url "https://files.pythonhosted.org/packages/e1/b0/7276de53321c12981717490516b7e612364f2cb372ee8901bd4a66a000d7/psutil-5.8.0.tar.gz"
    sha256 "0c9ccb99ab76025f2f0bbecf341d4656e9c1351db8cc8a03ccd62e318ab4b5c6"
  end

  def install
    virtualenv_install_with_resources
    pkgshare.install "bpytop-themes" => "themes"
  end

  test do
    config = (testpath/".config/bpytop")
{'fraction_non_alphanumeric': 0.08339651250947688, 'fraction_numerical': 0.27179681576952236, 'mean_word_length': 5.766666666666667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 6, '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': '1255274', 'n_tokens_mistral': 1603, 'n_tokens_neox': 1243, 'n_words': 120}