<commit_before>class X3270 < Formula
  desc "IBM 3270 terminal emulator for the X Window System and Windows"
  homepage "http://x3270.bgp.nu/"
  url "http://x3270.bgp.nu/download/04.01/suite3270-4.1ga10-src.tgz"
  sha256 "8216572d0a14d4d18e65db97f6e2dd1aeb66eed02b4d544c79ed8d34ea54be71"
  license "BSD-3-Clause"

  livecheck do
    url "https://x3270.miraheze.org/wiki/Downloads"
    regex(/href=.*?suite3270[._-]v?(\d+(?:\.\d+)+(?:ga\d+)?)(?:-src)?\.t/i)
  end

  bottle do
    sha256 arm64_big_sur: "bf8dcba7b17bb1ebc1fdf8987badc037236e2f83c20a5621c914295355e0f545"
    sha256 big_sur:       "0fb9e40a2f6d56e3f166d7cee9ef8eae4166e3e038c19b114ff840e33a3aad3e"
    sha256 catalina:      "1e8f59bedd3fbda46cab9db08944ab21b3549f9ca9002423590015da3cf75ce6"
    sha256 mojave:        "50108883c53cb6ef78dd63372952451db9d182d4409e340a31146397fbacaf93"
    sha256 x86_64_linux:  "124969949fae4335c0239e9d77fa2daac3035b4313bcb1f17b0ff93d90fe9a89"
  end

  depends_on "readline"

  uses_from_macos "tcl-tk"

  def install
    # use BSD date options on macOS
    # https://sourceforge.net/p/x3270/bugs/24/
    inreplace "Common/mkversion.sh", "date -d@", "date -r" if OS.mac?<commit_msg>x3270: update 4.1ga10 bottle.<commit_after>class X3270 < Formula
  desc "IBM 3270 terminal emulator for the X Window System and Windows"
  homepage "http://x3270.bgp.nu/"
  url "http://x3270.bgp.nu/download/04.01/suite3270-4.1ga10-src.tgz"
  sha256 "8216572d0a14d4d18e65db97f6e2dd1aeb66eed02b4d544c79ed8d34ea54be71"
  license "BSD-3-Clause"

  livecheck do
    url "https://x3270.miraheze.org/wiki/Downloads"
    regex(/href=.*?suite3270[._-]v?(\d+(?:\.\d+)+(?:ga\d+)?)(?:-src)?\.t/i)
  end

  bottle do
    sha256 arm64_monterey: "18f101d5a808cd1991be3966a1e535c9d205a566f73e7a6255b4f0886eaa2c8b"
    sha256 arm64_big_sur:  "9fae3a8f2ddbeceefda9f0db432c690d3a4e3bc60449b2652318a4eac46452a8"
    sha256 monterey:       "6664d1024a700607cf84b5775c71e58ee9ebe6cd890cdf40f27b125ece8c8293"
    sha256 big_sur:        "a7fcecb572d154289a3482fd1bf482018b0056446ea9c854c86c185bd8754eb0"
    sha256 catalina:       "99f3c5d17ddcfeffd43a88c4e55116dd5a0ba59c1fc69ed214e36d70dd95aa78"
    sha256 x86_64_linux:   "aac22fe73d7d53a70811bbfeea8ca25a5c45f86212024bc345b308bc4003a5c1"
  end

  depends_on "readline"

  uses_from_macos "tcl-tk"

  def install
    # use BSD date options on macOS
    # https://sourceforge.net/p/x3270/bugs/24/
    inreplace "Common/mkversion.sh", "date -d@", "date -r" if OS.mac?
{'fraction_non_alphanumeric': 0.10837040032349374, 'fraction_numerical': 0.26162555600485243, 'mean_word_length': 4.674311926605505, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5278942', 'n_tokens_mistral': 1505, 'n_tokens_neox': 1175, 'n_words': 141}