<commit_before>class ImagemagickAT6 < Formula
  desc "Tools and libraries to manipulate images in many formats"
  homepage "https://legacy.imagemagick.org/"
  url "https://imagemagick.org/archive/releases/ImageMagick-6.9.12-59.tar.xz"
  sha256 "19f2a04f20d1ca3fe35cbf31c31ccac4ba7b99053c96901a9bb997efc8b4c6a0"
  license "ImageMagick"
  head "https://github.com/imagemagick/imagemagick6.git", branch: "main"

  livecheck do
    url "https://imagemagick.org/archive/"
    regex(/href=.*?ImageMagick[._-]v?(6(?:[.-]\d+)+)\.t/i)
  end

  bottle do
    sha256 arm64_monterey: "40d00a8d25269cbd591f9937f5e8b6d6c2c84b2ee853c386f65b244fb85bf839"
    sha256 arm64_big_sur:  "475f50c04bc3e2cde65ea2b05fc36f0742bb8896df9e345072109ccd9246d13d"
    sha256 monterey:       "a6ba5fceadc3d1365dc76195d4c906212eccbe7b1db9370c0016df878aadffe4"
    sha256 big_sur:        "a80870c13693959230d1b2f575c6036531db737c844d6b09977c9bf376562498"
    sha256 catalina:       "368a501c991d3f10be05dd05e045313a1da541bd04749d9c540f48e51a7911e8"
    sha256 x86_64_linux:   "4ff94b62e9bffbb7dcca00744f94353ae392ff55e92137207ede625d69fdc5dd"
  end

  keg_only :versioned_formula

  depends_on "pkg-config" => :build

  depends_on "freetype"
  depends_on "ghostscript"
  depends_on "jpeg"
  depends_on "libpng"
  depends_on "libtiff"
  depends_on "libtool"
  depends_on "little-cms2"
  depends_on "openjpeg"
  depends_on "webp"
  depends_on "xz"

  skip_clean :la

  def install
    # Avoid references to shim
    inreplace Dir["**/*-config.in"], "@PKG_CONFIG@", Formula["pkg-config"].opt_bin/"pkg-config"

    args = %W[
      --enable-osx-universal-binary=no
      --prefix=#{prefix}
      --disable-dependency-tracking
      --disable-silent-rules
      --disable-opencl
      --disable-openmp
      --enable-shared
      --enable-static
      --with-freetype=yes
      --with-modules
      --with-webp=yes
      --with-openjp2
      --with-gslib<commit_msg>imagemagick@6: migrate `jpeg` to `jpeg-turbo`<commit_after>class ImagemagickAT6 < Formula
  desc "Tools and libraries to manipulate images in many formats"
  homepage "https://legacy.imagemagick.org/"
  url "https://imagemagick.org/archive/releases/ImageMagick-6.9.12-59.tar.xz"
  sha256 "19f2a04f20d1ca3fe35cbf31c31ccac4ba7b99053c96901a9bb997efc8b4c6a0"
  license "ImageMagick"
  revision 1
  head "https://github.com/imagemagick/imagemagick6.git", branch: "main"

  livecheck do
    url "https://imagemagick.org/archive/"
    regex(/href=.*?ImageMagick[._-]v?(6(?:[.-]\d+)+)\.t/i)
  end

  bottle do
    sha256 arm64_monterey: "40d00a8d25269cbd591f9937f5e8b6d6c2c84b2ee853c386f65b244fb85bf839"
    sha256 arm64_big_sur:  "475f50c04bc3e2cde65ea2b05fc36f0742bb8896df9e345072109ccd9246d13d"
    sha256 monterey:       "a6ba5fceadc3d1365dc76195d4c906212eccbe7b1db9370c0016df878aadffe4"
    sha256 big_sur:        "a80870c13693959230d1b2f575c6036531db737c844d6b09977c9bf376562498"
    sha256 catalina:       "368a501c991d3f10be05dd05e045313a1da541bd04749d9c540f48e51a7911e8"
    sha256 x86_64_linux:   "4ff94b62e9bffbb7dcca00744f94353ae392ff55e92137207ede625d69fdc5dd"
  end

  keg_only :versioned_formula

  depends_on "pkg-config" => :build

  depends_on "freetype"
  depends_on "ghostscript"
  depends_on "jpeg-turbo"
  depends_on "libpng"
  depends_on "libtiff"
  depends_on "libtool"
  depends_on "little-cms2"
  depends_on "openjpeg"
  depends_on "webp"
  depends_on "xz"

  skip_clean :la

  def install
    # Avoid references to shim
    inreplace Dir["**/*-config.in"], "@PKG_CONFIG@", Formula["pkg-config"].opt_bin/"pkg-config"

    args = %W[
      --enable-osx-universal-binary=no
      --prefix=#{prefix}
      --disable-dependency-tracking
      --disable-silent-rules
      --disable-opencl
      --disable-openmp
      --enable-shared
      --enable-static
      --with-freetype=yes
      --with-modules
      --with-webp=yes
      --with-openjp2
      --with-gslib
{'fraction_non_alphanumeric': 0.10857874519846351, 'fraction_numerical': 0.16389244558258642, 'mean_word_length': 3.86425902864259, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 8, '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': '6166234', 'n_tokens_mistral': 1997, 'n_tokens_neox': 1663, 'n_words': 213}