<commit_before>class GtkGnutella < Formula
  desc "Share files in a peer-to-peer (P2P) network"
  homepage "https://gtk-gnutella.sourceforge.io"
  url "https://downloads.sourceforge.net/project/gtk-gnutella/gtk-gnutella/1.2.1/gtk-gnutella-1.2.1.tar.xz"
  sha256 "b76de8d1cd470966e322522539ccb9abb1b5c5f7c7f72af9acb95dff51bfbada"
  license "GPL-2.0"

  bottle do
    sha256 arm64_big_sur: "98aa9cfd5659dfa91fef5339e478925ebe373effba12029ec043b3e560b42f39"
    sha256 big_sur:       "2ae7a1fadb8b12cd84d511c9a638b87af3c60e3ec1a7a3018b2a5734d70f8431"
    sha256 catalina:      "22e50581e33db28747e0b19e1e96b93b8d8ca97c9c66361b14eed10caae0735b"
    sha256 mojave:        "e886bafacfe443cdf8084edeea890c26a58cf7a63733bb1541eb69745d9b5bf5"
    sha256 x86_64_linux:  "6d1a4d0092864577bb73fa58361bfbc3acdcd0449566403c4f3eb1474229f583"
  end

  depends_on "pkg-config" => :build
  depends_on "gtk+"

  def install
    ENV.deparallelize

    if MacOS.version == :el_capitan && MacOS::Xcode.version >= "8.0"
      inreplace "Configure", "ret = clock_gettime(CLOCK_REALTIME, &tp);",
                             "ret = undefinedgibberish(CLOCK_REALTIME, &tp);"
    end

    system "./build.sh", "--prefix=#{prefix}", "--disable-nls"
    system "make", "install"
    rm_rf share/"pixmaps"
    rm_rf share/"applications"
  end

  test do<commit_msg>gtk-gnutella: update 1.2.1 bottle.<commit_after>class GtkGnutella < Formula
  desc "Share files in a peer-to-peer (P2P) network"
  homepage "https://gtk-gnutella.sourceforge.io"
  url "https://downloads.sourceforge.net/project/gtk-gnutella/gtk-gnutella/1.2.1/gtk-gnutella-1.2.1.tar.xz"
  sha256 "b76de8d1cd470966e322522539ccb9abb1b5c5f7c7f72af9acb95dff51bfbada"
  license "GPL-2.0"

  bottle do
    sha256 arm64_monterey: "7ee623e147c60e1b63884efc6c896eb8d96f3aa7e6efd2b3420ccc8e62c3a970"
    sha256 arm64_big_sur:  "98aa9cfd5659dfa91fef5339e478925ebe373effba12029ec043b3e560b42f39"
    sha256 monterey:       "c0e426bf82a42fcf11ee38d37a154afc6f3317adc3a392c63127d406ba95a2ab"
    sha256 big_sur:        "2ae7a1fadb8b12cd84d511c9a638b87af3c60e3ec1a7a3018b2a5734d70f8431"
    sha256 catalina:       "22e50581e33db28747e0b19e1e96b93b8d8ca97c9c66361b14eed10caae0735b"
    sha256 mojave:         "e886bafacfe443cdf8084edeea890c26a58cf7a63733bb1541eb69745d9b5bf5"
    sha256 x86_64_linux:   "6d1a4d0092864577bb73fa58361bfbc3acdcd0449566403c4f3eb1474229f583"
  end

  depends_on "pkg-config" => :build
  depends_on "gtk+"

  def install
    ENV.deparallelize

    if MacOS.version == :el_capitan && MacOS::Xcode.version >= "8.0"
      inreplace "Configure", "ret = clock_gettime(CLOCK_REALTIME, &tp);",
                             "ret = undefinedgibberish(CLOCK_REALTIME, &tp);"
    end

    system "./build.sh", "--prefix=#{prefix}", "--disable-nls"
    system "make", "install"
    rm_rf share/"pixmaps"
    rm_rf share/"applications"
  end

  test do
{'fraction_non_alphanumeric': 0.09812760055478502, 'fraction_numerical': 0.21047156726768376, 'mean_word_length': 4.33271719038817, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3478405', 'n_tokens_mistral': 1600, 'n_tokens_neox': 1295, 'n_words': 154}