<commit_before>class Glib < Formula
  include Language::Python::Shebang

  desc "Core application library for C"
  homepage "https://developer.gnome.org/glib/"
  url "https://download.gnome.org/sources/glib/2.66/glib-2.66.4.tar.xz"
  sha256 "97df8670e32f9fd4f7392b0980e661dd625012015d58350da1e58e343f4af984"
  license "LGPL-2.1-or-later"
  revision 1

  livecheck do
    url :stable
  end

  bottle do
    sha256 "4f48567977f08be9d02920f54fc3a31d0ceb106e733d7e5e7fde44fcf7a59990" => :big_sur
    sha256 "c81fcd1d7973f90f2923a0a569d8e748107da9fcc0e283c62c281bdda8bca059" => :arm64_big_sur
    sha256 "56681d90bb716b6a7c28825a3e014571bae6e06b94325e434d4845d7b4502a34" => :catalina
    sha256 "3a742af0366177f75672fd24839fa9c98e021cf677f2b94318a0207730886939" => :mojave
  end

  depends_on "meson" => :build
  depends_on "ninja" => :build
  depends_on "pkg-config" => :build
  depends_on "gettext"
  depends_on "libffi"
  depends_on "pcre"
  depends_on "python@3.9"

  on_linux do
    depends_on "util-linux"
  end

  # https://bugzilla.gnome.org/show_bug.cgi?id=673135 Resolved as wontfix,
  # but needed to fix an assumption about the location of the d-bus machine
  # id file.
  patch do
    url "https://raw.githubusercontent.com/Homebrew/formula-patches/6164294a75541c278f3863b111791376caa3ad26/glib/hardcoded-paths.diff"
    sha256 "a57fec9e85758896ff5ec1ad483050651b59b7b77e0217459ea650704b7d422b"
  end

  # required for gtk+4
  # see discussion at https://gitlab.gnome.org/GNOME/gtk/-/issues/3477
  patch do
    url "https://gitlab.gnome.org/GNOME/glib/-/commit/8c76bec77985be7f4c81a052ec649232341369f6.patch"
    sha256 "333aa937d87431d6fd01bd3ca1cc684a9562dd1c2c327a7c0f0c463b6a384e25"
  end
<commit_msg>glib: fix name of gtk4 in comment<commit_after>class Glib < Formula
  include Language::Python::Shebang

  desc "Core application library for C"
  homepage "https://developer.gnome.org/glib/"
  url "https://download.gnome.org/sources/glib/2.66/glib-2.66.4.tar.xz"
  sha256 "97df8670e32f9fd4f7392b0980e661dd625012015d58350da1e58e343f4af984"
  license "LGPL-2.1-or-later"
  revision 1

  livecheck do
    url :stable
  end

  bottle do
    sha256 "4f48567977f08be9d02920f54fc3a31d0ceb106e733d7e5e7fde44fcf7a59990" => :big_sur
    sha256 "c81fcd1d7973f90f2923a0a569d8e748107da9fcc0e283c62c281bdda8bca059" => :arm64_big_sur
    sha256 "56681d90bb716b6a7c28825a3e014571bae6e06b94325e434d4845d7b4502a34" => :catalina
    sha256 "3a742af0366177f75672fd24839fa9c98e021cf677f2b94318a0207730886939" => :mojave
  end

  depends_on "meson" => :build
  depends_on "ninja" => :build
  depends_on "pkg-config" => :build
  depends_on "gettext"
  depends_on "libffi"
  depends_on "pcre"
  depends_on "python@3.9"

  on_linux do
    depends_on "util-linux"
  end

  # https://bugzilla.gnome.org/show_bug.cgi?id=673135 Resolved as wontfix,
  # but needed to fix an assumption about the location of the d-bus machine
  # id file.
  patch do
    url "https://raw.githubusercontent.com/Homebrew/formula-patches/6164294a75541c278f3863b111791376caa3ad26/glib/hardcoded-paths.diff"
    sha256 "a57fec9e85758896ff5ec1ad483050651b59b7b77e0217459ea650704b7d422b"
  end

  # required for gtk4
  # see discussion at https://gitlab.gnome.org/GNOME/gtk/-/issues/3477
  patch do
    url "https://gitlab.gnome.org/GNOME/glib/-/commit/8c76bec77985be7f4c81a052ec649232341369f6.patch"
    sha256 "333aa937d87431d6fd01bd3ca1cc684a9562dd1c2c327a7c0f0c463b6a384e25"
  end

{'fraction_non_alphanumeric': 0.09056603773584905, 'fraction_numerical': 0.2365747460087083, 'mean_word_length': 4.890598290598291, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 12, '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': '3897064', 'n_tokens_mistral': 1976, 'n_tokens_neox': 1535, 'n_words': 212}