<commit_before>class Vte3 < Formula
  desc "Terminal emulator widget used by GNOME terminal"
  homepage "https://developer.gnome.org/vte/"
  url "https://download.gnome.org/sources/vte/0.46/vte-0.46.1.tar.xz"
  sha256 "8800cf8bc259704a12ad1853fb0eb43bfe3857af15242e6fb9f2c3fd95b3f5c6"

  bottle do
    sha256 "85a119c7084f70fc9900eb4d8f029567287a987eb6112ef9decdd8d37cb6bc9b" => :sierra
    sha256 "c526c39532cbb54f8b908bc993b44ee4a40ebae954343f3f5ebc1fb506285b2b" => :el_capitan
    sha256 "82aeb5c9667afdda4b52471f9933d887c4f0726f82729f09fd51f20d069773a0" => :yosemite
  end

  depends_on "pkg-config" => :build
  depends_on "intltool" => :build
  depends_on "gettext"
  depends_on "gtk+3"
  depends_on "gnutls"
  depends_on "vala"
  depends_on "gobject-introspection"
  depends_on "pcre2"

  def install
    args = [
      "--disable-dependency-tracking",
      "--prefix=#{prefix}",
      "--disable-Bsymbolic",
      "--enable-introspection=yes",
      "--enable-gnome-pty-helper",
    ]

    system "./configure", *args
    system "make", "install"
  end

  test do
    (testpath/"test.c").write <<-EOS.undent
      #include <vte/vte.h>
<commit_msg>vte3: update 0.46.1 bottle.<commit_after>class Vte3 < Formula
  desc "Terminal emulator widget used by GNOME terminal"
  homepage "https://developer.gnome.org/vte/"
  url "https://download.gnome.org/sources/vte/0.46/vte-0.46.1.tar.xz"
  sha256 "8800cf8bc259704a12ad1853fb0eb43bfe3857af15242e6fb9f2c3fd95b3f5c6"

  bottle do
    sha256 "efd593cd289add64c32256000ea483e524781d4b83b1e62cfec558142eafd6aa" => :sierra
    sha256 "a7fe72a168ede3fd42dd2022fff43bcd0554f71c213659cd1a84c328b1b40562" => :el_capitan
    sha256 "03b95d3ae33d1e7a8d982877b9a8f73878d15aac4e7261bd4dd283b0bc67c40b" => :yosemite
  end

  depends_on "pkg-config" => :build
  depends_on "intltool" => :build
  depends_on "gettext"
  depends_on "gtk+3"
  depends_on "gnutls"
  depends_on "vala"
  depends_on "gobject-introspection"
  depends_on "pcre2"

  def install
    args = [
      "--disable-dependency-tracking",
      "--prefix=#{prefix}",
      "--disable-Bsymbolic",
      "--enable-introspection=yes",
      "--enable-gnome-pty-helper",
    ]

    system "./configure", *args
    system "make", "install"
  end

  test do
    (testpath/"test.c").write <<-EOS.undent
      #include <vte/vte.h>

{'fraction_non_alphanumeric': 0.12306368330464716, 'fraction_numerical': 0.1553356282271945, 'mean_word_length': 3.9363057324840764, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, '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': '6461221', 'n_tokens_mistral': 1170, 'n_tokens_neox': 993, 'n_words': 139}