<commit_before>class Pspg < Formula
  desc "Unix pager optimized for psql"
  homepage "https://github.com/okbob/pspg"
  url "https://github.com/okbob/pspg/archive/4.2.1.tar.gz"
  sha256 "e62c0639614fe2bc57f94286a607013e1b8c5846c00376dd9dde697bb94ce4da"
  license "BSD-2-Clause"
  head "https://github.com/okbob/pspg.git"

  bottle do
    sha256 cellar: :any, arm64_big_sur: "69a0759672e3ae3f8135b9977161e328d20279127731047a65e76363b613b2d5"
    sha256 cellar: :any, big_sur:       "8619637aa0b45281cef890591e6c4ec9ef5d7d07745b2e8ad5898bacc2d694dd"
    sha256 cellar: :any, catalina:      "956e14eee310ad0c1f8a2ce42b27421aae9f3989f9b0815ec7485efb9b43de24"
    sha256 cellar: :any, mojave:        "b7767e3f054468e332614f0dad832d7e76f7c102843dee97e68ec6b5c8543fd3"
  end

  depends_on "libpq"
  depends_on "ncurses"
  depends_on "readline"

  def install
    system "./configure", "--disable-debug",
                          "--prefix=#{prefix}"
    system "make", "install"
  end

  def caveats
    <<~EOS
      Add the following line to your psql profile (e.g. ~/.psqlrc)
        \\setenv PAGER pspg
        \\pset border 2
        \\pset linestyle unicode
    EOS
  end

  test do
    assert_match "pspg-#{version}", shell_output("#{bin}/pspg --version")
  end
end
<commit_msg>pspg 4.3.0<commit_after>class Pspg < Formula
  desc "Unix pager optimized for psql"
  homepage "https://github.com/okbob/pspg"
  url "https://github.com/okbob/pspg/archive/4.3.0.tar.gz"
  sha256 "6cbf1188e7c5f778f8e5611490fe9da8a77f6b195c8fbbd1cd2cc7c4c35bc598"
  license "BSD-2-Clause"
  head "https://github.com/okbob/pspg.git"

  bottle do
    sha256 cellar: :any, arm64_big_sur: "69a0759672e3ae3f8135b9977161e328d20279127731047a65e76363b613b2d5"
    sha256 cellar: :any, big_sur:       "8619637aa0b45281cef890591e6c4ec9ef5d7d07745b2e8ad5898bacc2d694dd"
    sha256 cellar: :any, catalina:      "956e14eee310ad0c1f8a2ce42b27421aae9f3989f9b0815ec7485efb9b43de24"
    sha256 cellar: :any, mojave:        "b7767e3f054468e332614f0dad832d7e76f7c102843dee97e68ec6b5c8543fd3"
  end

  depends_on "libpq"
  depends_on "ncurses"
  depends_on "readline"

  def install
    system "./configure", "--disable-debug",
                          "--prefix=#{prefix}"
    system "make", "install"
  end

  def caveats
    <<~EOS
      Add the following line to your psql profile (e.g. ~/.psqlrc)
        \\setenv PAGER pspg
        \\pset border 2
        \\pset linestyle unicode
    EOS
  end

  test do
    assert_match "pspg-#{version}", shell_output("#{bin}/pspg --version")
  end
end

{'fraction_non_alphanumeric': 0.10262436349392871, 'fraction_numerical': 0.18174696435566, 'mean_word_length': 3.4494773519163764, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, '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': '7507860', 'n_tokens_mistral': 1334, 'n_tokens_neox': 1093, 'n_words': 181}