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

  bottle do
    sha256 cellar: :any, arm64_big_sur: "75b87907880198c7b69a6e26dfc1c1f7653b669623f9a61b9f73ee42f08f647c"
    sha256 cellar: :any, big_sur:       "46c0df184bb173ac1c8cad14e830aad256f6bf7d6414ba70ed20e9db651cf20b"
    sha256 cellar: :any, catalina:      "a7cfebf8e348c4e9c4ddfa1aec1f1b3f78c44787a90c903fdb504762a21f7e5e"
    sha256 cellar: :any, mojave:        "102831b234a686e284d51174feb88b8af8b3ec2916854f8793fbf1690a3bb38b"
  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<commit_msg>pspg 5.0.1<commit_after>class Pspg < Formula
  desc "Unix pager optimized for psql"
  homepage "https://github.com/okbob/pspg"
  url "https://github.com/okbob/pspg/archive/5.0.1.tar.gz"
  sha256 "852314ed8c0efbfdc58989274b865c042c5a717849a6d4243eadbce619b88fd7"
  license "BSD-2-Clause"
  head "https://github.com/okbob/pspg.git"

  bottle do
    sha256 cellar: :any, arm64_big_sur: "75b87907880198c7b69a6e26dfc1c1f7653b669623f9a61b9f73ee42f08f647c"
    sha256 cellar: :any, big_sur:       "46c0df184bb173ac1c8cad14e830aad256f6bf7d6414ba70ed20e9db651cf20b"
    sha256 cellar: :any, catalina:      "a7cfebf8e348c4e9c4ddfa1aec1f1b3f78c44787a90c903fdb504762a21f7e5e"
    sha256 cellar: :any, mojave:        "102831b234a686e284d51174feb88b8af8b3ec2916854f8793fbf1690a3bb38b"
  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
{'fraction_non_alphanumeric': 0.09914375844975214, 'fraction_numerical': 0.19513294276701218, 'mean_word_length': 3.8051948051948052, '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': '2829253', 'n_tokens_mistral': 1206, 'n_tokens_neox': 986, 'n_words': 148}