<commit_before>class Fig2dev < Formula
  desc "Translates figures generated by xfig to other formats"
  homepage "https://mcj.sourceforge.io/"
  url "https://downloads.sourceforge.net/project/mcj/fig2dev-3.2.8.tar.xz"
  sha256 "931258ae43950d0931ddcea13ce6554d2cd7fc3c93585aebf74e393bb14fe27d"
  license "MIT"

  livecheck do
    url :stable
    regex(%r{url=.*?/fig2dev[._-]v?(\d+(?:\.\d+)+[a-z]?)\.t}i)
  end

  bottle do
    sha256 "6d52c679f208194d6128a64fd9b14db2dd49a2ff1600e925500feb8e248cb0b5" => :big_sur
    sha256 "19a51590db79ab018f309a3d5a2c2390b5c670fc54145a5256d6b26533377b0e" => :arm64_big_sur
    sha256 "0ffe4d06ce3f489b724facdae111d0358ac5a902733f5c2ccedab8f4f3759893" => :catalina
    sha256 "f640a65192bbae6f8801e6f07d57ff8d24ffda78ea471dacaa1b33684a7858ae" => :mojave
    sha256 "1020f0333374fbfcb88d3bf2b2ca89b40c83f7863968f4d28dad1654ff9905df" => :high_sierra
  end

  depends_on "ghostscript"
  depends_on "libpng"
  depends_on "netpbm"

  # fix `'endian.h' file not found`
  # commit ref, https://sourceforge.net/p/mcj/fig2dev/ci/3897c8034f2eecfa99c645f2b8efa400505a9e27/
  # remove in next release
  patch :DATA

  def install
    args = %W[
      --prefix=#{prefix}
      --disable-dependency-tracking
      --disable-silent-rules
      --enable-transfig
      --without-xpm
      --without-x
    ]

    system "./configure", *args
    system "make", "install"<commit_msg>fig2dev: update 3.2.8 bottle.<commit_after>class Fig2dev < Formula
  desc "Translates figures generated by xfig to other formats"
  homepage "https://mcj.sourceforge.io/"
  url "https://downloads.sourceforge.net/project/mcj/fig2dev-3.2.8.tar.xz"
  sha256 "931258ae43950d0931ddcea13ce6554d2cd7fc3c93585aebf74e393bb14fe27d"
  license "MIT"

  livecheck do
    url :stable
    regex(%r{url=.*?/fig2dev[._-]v?(\d+(?:\.\d+)+[a-z]?)\.t}i)
  end

  bottle do
    sha256 "09824b751f1163b65751face98b86efe09817f6f5ad70aa5f27122edf2c38366" => :big_sur
    sha256 "95b7c74801a014788a54d560cfbbcf02097ec130c55741d53bf6736bc6ef0f50" => :arm64_big_sur
    sha256 "5a83656ea1633db4434c171ff87c2207395ad1a21dd96b6fad66fe1017d06d0f" => :catalina
    sha256 "30502ec9c6c26a00f8e775a515a546cfadb30b5a92e44f06474bca5c1a48dc72" => :mojave
  end

  depends_on "ghostscript"
  depends_on "libpng"
  depends_on "netpbm"

  # fix `'endian.h' file not found`
  # commit ref, https://sourceforge.net/p/mcj/fig2dev/ci/3897c8034f2eecfa99c645f2b8efa400505a9e27/
  # remove in next release
  patch :DATA

  def install
    args = %W[
      --prefix=#{prefix}
      --disable-dependency-tracking
      --disable-silent-rules
      --enable-transfig
      --without-xpm
      --without-x
    ]

    system "./configure", *args
    system "make", "install"
{'fraction_non_alphanumeric': 0.11498897869213813, 'fraction_numerical': 0.19948567229977957, 'mean_word_length': 4.070763500931099, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, 'https://': 6, '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': '5151636', 'n_tokens_mistral': 1481, 'n_tokens_neox': 1199, 'n_words': 159}