<commit_before>class Cpl < Formula
  desc "ISO-C libraries for developing astronomical data-reduction tasks"
  homepage "https://www.eso.org/sci/software/cpl/"
  url "ftp://ftp.eso.org/pub/dfs/pipelines/libraries/cpl/cpl-7.2.1.tar.gz"
  sha256 "8bd6c4e14614408ee46f6c08192f2d53aa2d2e24129dda4fb7d826be65832199"
  license "GPL-2.0-or-later"

  livecheck do
    url "https://ftp.eso.org/pub/dfs/pipelines/libraries/cpl/"
    regex(/href=.*?cpl[._-]v?(\d+(?:\.\d+)+)\.t/i)
  end

  bottle do
    sha256 cellar: :any,                 arm64_monterey: "da8457c751e9338f82ef767e03d273f81c8bdddec9dcecdcd2fa8ab60c480fbf"
    sha256 cellar: :any,                 arm64_big_sur:  "3c330ff1943f8cfb8a2811d2a0177e54787f1f5d21ccf4ab3b7e859a793d18dd"
    sha256 cellar: :any,                 monterey:       "4ce97389c62446da66ca046ea767e4d1d31b883a66d460037a625a1ae9b39c21"
    sha256 cellar: :any,                 big_sur:        "09277d7405b91d4665405f1f1859a87e6c8cff226db6b4bdf5861bf40d0066d5"
    sha256 cellar: :any,                 catalina:       "c7918433254e4e602f3396e128681bf03ce3b4dc0b9c4adf028668de81467e6d"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "9535768b10473dd7463dab196c109799dd35775b576766858260f53a8e52a4f2"
  end

  depends_on "cfitsio"
  depends_on "fftw"
  depends_on "wcslib"

  conflicts_with "gdal", because: "both install cpl_error.h"

  # Fix -flat_namespace being used on Big Sur and later.
  patch do
    url "https://raw.githubusercontent.com/Homebrew/formula-patches/03cf8088210822aa2c1ab544ed58ea04c897d9c4/libtool/configure-big_sur.diff"
    sha256 "35acd6aebc19843f1a2b3a63e880baceb0f5278ab1ace661e57a502d9d78c93c"
  end

  # Fix -flat_namespace being used on Big Sur and later.<commit_msg>cpl: update 7.2.1 bottle.<commit_after>class Cpl < Formula
  desc "ISO-C libraries for developing astronomical data-reduction tasks"
  homepage "https://www.eso.org/sci/software/cpl/"
  url "ftp://ftp.eso.org/pub/dfs/pipelines/libraries/cpl/cpl-7.2.1.tar.gz"
  sha256 "8bd6c4e14614408ee46f6c08192f2d53aa2d2e24129dda4fb7d826be65832199"
  license "GPL-2.0-or-later"

  livecheck do
    url "https://ftp.eso.org/pub/dfs/pipelines/libraries/cpl/"
    regex(/href=.*?cpl[._-]v?(\d+(?:\.\d+)+)\.t/i)
  end

  bottle do
    sha256 cellar: :any,                 arm64_monterey: "770ce25aba6f82238706ab78b6617bb507d7cf44c5fffaa10c9d281d3506d2c8"
    sha256 cellar: :any,                 arm64_big_sur:  "c6a5baeaeff3827d016354015a9efa9b2f2bc07e5ad9430972c100cdc0813f28"
    sha256 cellar: :any,                 monterey:       "6f0df169b9bf66c8fb4f759c27c5958596ea8ba7a089792bab8a944bb3015255"
    sha256 cellar: :any,                 big_sur:        "f1851a3f70f96604153373c751985797df4adf8e42c84ae131b7a8d663459f86"
    sha256 cellar: :any,                 catalina:       "765071ab6932cd4952d2237330a31f829c5ed71884d7468a530e2a0d13a67378"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "93dde958ec8052039fb4ef6ea0f600d2b3ddb9fc69cfbf3b83918296d8f644ad"
  end

  depends_on "cfitsio"
  depends_on "fftw"
  depends_on "wcslib"

  conflicts_with "gdal", because: "both install cpl_error.h"

  # Fix -flat_namespace being used on Big Sur and later.
  patch do
    url "https://raw.githubusercontent.com/Homebrew/formula-patches/03cf8088210822aa2c1ab544ed58ea04c897d9c4/libtool/configure-big_sur.diff"
    sha256 "35acd6aebc19843f1a2b3a63e880baceb0f5278ab1ace661e57a502d9d78c93c"
  end

  # Fix -flat_namespace being used on Big Sur and later.
{'fraction_non_alphanumeric': 0.09216589861751152, 'fraction_numerical': 0.22465437788018433, 'mean_word_length': 3.9685264663805437, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, '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': '5645724', 'n_tokens_mistral': 1936, 'n_tokens_neox': 1527, 'n_words': 192}