<commit_before>class Libglademm < Formula
  desc "C++ wrapper around libglade"
  homepage "https://gnome.org"
  url "https://download.gnome.org/sources/libglademm/2.6/libglademm-2.6.7.tar.bz2"
  sha256 "38543c15acf727434341cc08c2b003d24f36abc22380937707fc2c5c687a2bc3"
  license "LGPL-2.1-or-later"
  revision 10

  livecheck do
    url :stable
  end

  bottle do
    cellar :any
    sha256 "213a8e4e74a1c31d52580e1f0438e80bd3a089c9a2fe28f7a5174fb0ecb6e4b9" => :big_sur
    sha256 "53b2b0bb8b46564bce44e054fabbe53968ecc32bca6bb21c1610ec30082c31b8" => :arm64_big_sur
    sha256 "4e32714d9b8b1e87ba17774e43356ebdd29c6ae2593f2eed6ec07460927e6c62" => :catalina
    sha256 "7cd380f335e9461dd9a9726f442b1056ea89cda5cb3ef37b2260462cfdcc4936" => :mojave
  end

  depends_on "pkg-config" => [:build, :test]
  depends_on "gtkmm"
  depends_on "libglade"

  def install
    ENV.cxx11
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}"
    system "make", "install"
  end

  test do
    (testpath/"test.cpp").write <<~EOS<commit_msg>libglademm: revision bump for glibmm@2.66 and pangomm@2.46<commit_after>class Libglademm < Formula
  desc "C++ wrapper around libglade"
  homepage "https://gnome.org"
  url "https://download.gnome.org/sources/libglademm/2.6/libglademm-2.6.7.tar.bz2"
  sha256 "38543c15acf727434341cc08c2b003d24f36abc22380937707fc2c5c687a2bc3"
  license "LGPL-2.1-or-later"
  revision 11

  livecheck do
    url :stable
  end

  bottle do
    cellar :any
    sha256 "213a8e4e74a1c31d52580e1f0438e80bd3a089c9a2fe28f7a5174fb0ecb6e4b9" => :big_sur
    sha256 "53b2b0bb8b46564bce44e054fabbe53968ecc32bca6bb21c1610ec30082c31b8" => :arm64_big_sur
    sha256 "4e32714d9b8b1e87ba17774e43356ebdd29c6ae2593f2eed6ec07460927e6c62" => :catalina
    sha256 "7cd380f335e9461dd9a9726f442b1056ea89cda5cb3ef37b2260462cfdcc4936" => :mojave
  end

  depends_on "pkg-config" => [:build, :test]
  depends_on "gtkmm"
  depends_on "libglade"

  def install
    ENV.cxx11
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}"
    system "make", "install"
  end

  test do
    (testpath/"test.cpp").write <<~EOS
{'fraction_non_alphanumeric': 0.1073149364870784, 'fraction_numerical': 0.2041173893999124, 'mean_word_length': 3.788259958071279, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, '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': '4400308', 'n_tokens_mistral': 1223, 'n_tokens_neox': 985, 'n_words': 133}