<commit_before>class Gmime < Formula
  desc "MIME mail utilities"
  homepage "https://spruce.sourceforge.io/gmime/"
  url "https://download.gnome.org/sources/gmime/3.2/gmime-3.2.7.tar.xz"
  sha256 "2aea96647a468ba2160a64e17c6dc6afe674ed9ac86070624a3f584c10737d44"
  license "LGPL-2.1"

  bottle do
    sha256                               arm64_big_sur: "0c12167da5badd3447325e0770666c1e7f5e5e8945613e4c54c4e3e5ef1915fa"
    sha256                               big_sur:       "3714b2907a93c2495efb79c0cf870bdab5683c64c17696836b19e5b34108b852"
    sha256                               catalina:      "877f2024cc0d97bc94f559ad992f87bdf6fdc23f9a1acc7b5bb13f0711b734c3"
    sha256                               mojave:        "7a0bda5bca906bc62e3ab24fc39752e2858fce861ba759040fc864928ab18d96"
    sha256                               high_sierra:   "0bb48841eae316695037bcd793673d518d0f2be20968a115a81c92824fb77ac0"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "07bffed5c3be937ee007bd878ff92561ed7f17f841d5062eccc7a8900e416b42"
  end

  depends_on "gobject-introspection" => :build
  depends_on "pkg-config" => :build
  depends_on "glib"
  depends_on "gpgme"

  def install
    args = %W[
      --disable-dependency-tracking
      --prefix=#{prefix}
      --enable-largefile
      --disable-vala
      --disable-glibtest
      --enable-crypto
      --enable-introspection
    ]<commit_msg>gmime: patch incorrect -flat_namespace usage (#88229)<commit_after>class Gmime < Formula
  desc "MIME mail utilities"
  homepage "https://spruce.sourceforge.io/gmime/"
  url "https://download.gnome.org/sources/gmime/3.2/gmime-3.2.7.tar.xz"
  sha256 "2aea96647a468ba2160a64e17c6dc6afe674ed9ac86070624a3f584c10737d44"
  license "LGPL-2.1"

  bottle do
    sha256                               arm64_big_sur: "0c12167da5badd3447325e0770666c1e7f5e5e8945613e4c54c4e3e5ef1915fa"
    sha256                               big_sur:       "3714b2907a93c2495efb79c0cf870bdab5683c64c17696836b19e5b34108b852"
    sha256                               catalina:      "877f2024cc0d97bc94f559ad992f87bdf6fdc23f9a1acc7b5bb13f0711b734c3"
    sha256                               mojave:        "7a0bda5bca906bc62e3ab24fc39752e2858fce861ba759040fc864928ab18d96"
    sha256                               high_sierra:   "0bb48841eae316695037bcd793673d518d0f2be20968a115a81c92824fb77ac0"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "07bffed5c3be937ee007bd878ff92561ed7f17f841d5062eccc7a8900e416b42"
  end

  depends_on "gobject-introspection" => :build
  depends_on "pkg-config" => :build
  depends_on "glib"
  depends_on "gpgme"

  # Fix -flat_namespace being used on Big Sur and later.
  patch do
    url "https://raw.githubusercontent.com/Homebrew/formula-patches/03cf8088210822aa2c1ab544ed58ea04c897d9c4/libtool/configure-big_sur.diff"
    sha256 "35acd6aebc19843f1a2b3a63e880baceb0f5278ab1ace661e57a502d9d78c93c"
  end

  def install
    args = %W[
      --disable-dependency-tracking
      --prefix=#{prefix}
      --enable-largefile
      --disable-vala
      --disable-glibtest
      --enable-crypto
      --enable-introspection
    ]
{'fraction_non_alphanumeric': 0.07448849104859336, 'fraction_numerical': 0.22730179028132994, 'mean_word_length': 2.848708487084871, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 5, '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': '6225407', 'n_tokens_mistral': 1652, 'n_tokens_neox': 1273, 'n_words': 139}