<commit_before>class Openimageio < Formula
  desc "Library for reading, processing and writing images"
  homepage "https://openimageio.org/"
  url "https://github.com/OpenImageIO/oiio/archive/Release-2.1.18.1.tar.gz"
  version "2.1.18"
  sha256 "e2cf54f5b28e18fc88e76e1703f2e39bf144c88378334527e4a1246974659a85"
  license "BSD-3-Clause"
  revision 4
  head "https://github.com/OpenImageIO/oiio.git"

  livecheck do
    url "https://github.com/OpenImageIO/oiio/releases/latest"
    regex(%r{href=.*?/tag/Release[._-]v?(\d+(?:\.\d+)+)["' >]}i)
  end

  bottle do
    sha256 "58a7e8a3c3203de3b43061fb402a93715657be05532ed37520561399d5b4c2ad" => :catalina
    sha256 "1151e45b06a05602ede35309323be229b6d0819a26de3d0e2052b8a4cb52750e" => :mojave
    sha256 "7602e1fa13c77da432a6a83e64f43e0d5d52a4ba34ead1e5290be6fc3f817f92" => :high_sierra
  end

  depends_on "cmake" => :build
  depends_on "pkg-config" => :build
  depends_on "boost"
  depends_on "boost-python3"
  depends_on "ffmpeg"
  depends_on "freetype"
  depends_on "giflib"
  depends_on "ilmbase"
  depends_on "jpeg"
  depends_on "libheif"
  depends_on "libpng"
  depends_on "libraw"
  depends_on "libtiff"
  depends_on "opencolorio"
  depends_on "openexr"
  depends_on "python@3.9"
  depends_on "webp"

  def install
    args = std_cmake_args + %w[
      -DCCACHE_FOUND=
      -DEMBEDPLUGINS=ON
      -DUSE_FIELD3D=OFF<commit_msg>openimageio 2.2.7<commit_after>class Openimageio < Formula
  desc "Library for reading, processing and writing images"
  homepage "https://openimageio.org/"
  url "https://github.com/OpenImageIO/oiio/archive/Release-2.2.7.0.tar.gz"
  version "2.2.7"
  sha256 "857ac83798d6d2bda5d4d11a90618ff19486da2e5a4c4ff022c5976b5746fe8c"
  license "BSD-3-Clause"
  head "https://github.com/OpenImageIO/oiio.git"

  livecheck do
    url "https://github.com/OpenImageIO/oiio/releases/latest"
    regex(%r{href=.*?/tag/Release[._-]v?(\d+(?:\.\d+)+)["' >]}i)
  end

  bottle do
    sha256 "58a7e8a3c3203de3b43061fb402a93715657be05532ed37520561399d5b4c2ad" => :catalina
    sha256 "1151e45b06a05602ede35309323be229b6d0819a26de3d0e2052b8a4cb52750e" => :mojave
    sha256 "7602e1fa13c77da432a6a83e64f43e0d5d52a4ba34ead1e5290be6fc3f817f92" => :high_sierra
  end

  depends_on "cmake" => :build
  depends_on "pkg-config" => :build
  depends_on "boost"
  depends_on "boost-python3"
  depends_on "ffmpeg"
  depends_on "freetype"
  depends_on "giflib"
  depends_on "ilmbase"
  depends_on "jpeg"
  depends_on "libheif"
  depends_on "libpng"
  depends_on "libraw"
  depends_on "libtiff"
  depends_on "opencolorio"
  depends_on "openexr"
  depends_on "pybind11"
  depends_on "python@3.9"
  depends_on "webp"

  def install
    args = std_cmake_args + %w[
      -DCCACHE_FOUND=
      -DEMBEDPLUGINS=ON
      -DUSE_FIELD3D=OFF
{'fraction_non_alphanumeric': 0.11794318590435095, 'fraction_numerical': 0.1423948220064725, 'mean_word_length': 4.51984126984127, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4082254', 'n_tokens_mistral': 1418, 'n_tokens_neox': 1256, 'n_words': 176}