<commit_before>class XcbUtilImage < Formula
  desc "Additional extensions to the XCB library."
  homepage "http://xcb.freedesktop.org"
  url "http://xcb.freedesktop.org/dist/xcb-util-image-0.4.0.tar.bz2"
  sha256 "2db96a37d78831d643538dd1b595d7d712e04bdccf8896a5e18ce0f398ea2ffc"

  option "without-test",    "Skip compile-time tests"
  option "with-static", "Build static libraries (not recommended)"

  depends_on "pkg-config" => :build
  depends_on "libxcb"
  depends_on "xcb-util"

  def install
    args = %W[
      --prefix=#{prefix}
      --sysconfdir=#{etc}
      --localstatedir=#{var}
      --disable-dependency-tracking
      --disable-silent-rules
    ]

    # Be explicit about the configure flags
    args << "--enable-static=#{build.with?("static") ? "yes" : "no"}"

    system "./configure", *args
    system "make"
    system "make", "install"
  end
end
<commit_msg>xcb-util-image: new options (without-test, with-docs), util-macros and doxygen deps, flags, compile-time test<commit_after>class XcbUtilImage < Formula
  desc "Additional extensions to the XCB library."
  homepage "http://xcb.freedesktop.org"
  url "http://xcb.freedesktop.org/dist/xcb-util-image-0.4.0.tar.bz2"
  sha256 "2db96a37d78831d643538dd1b595d7d712e04bdccf8896a5e18ce0f398ea2ffc"

  option "without-test", "Skip compile-time tests"
  option "with-static",  "Build static libraries (not recommended)"
  option "with-docs",    "Regenerate documentation (requires doxygen)"

  depends_on "pkg-config" => :build
  depends_on "util-macros" => :build
  depends_on "doxygen" => :build if build.with?("docs")
  depends_on "libxcb"
  depends_on "xcb-util"

  def install
    args = %W[
      --prefix=#{prefix}
      --sysconfdir=#{etc}
      --localstatedir=#{var}
      --disable-dependency-tracking
      --disable-silent-rules
    ]

    # Be explicit about the configure flags
    args << "--enable-static=#{build.with?("static") ? "yes" : "no"}"
    args << "--enable-devel-docs=#{build.with?("docs") ? "yes" : "no"}"
    args << "--with-doxygen=#{build.with?("docs") ? "yes" : "no"}"


    system "./configure", *args
    system "make"
    if build.with?("test")
      ENV["LD_LIBRARY_PATH"] = "#{lib}"
      system "make", "check"
    end
    system "make", "install"
  end
end

{'fraction_non_alphanumeric': 0.15696649029982362, 'fraction_numerical': 0.03968253968253968, 'mean_word_length': 3.431640625, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5777117', 'n_tokens_mistral': 875, 'n_tokens_neox': 813, 'n_words': 169}