<commit_before>class Mapnik < Formula
  desc "Toolkit for developing mapping applications"
  homepage "https://mapnik.org/"
  url "https://github.com/mapnik/mapnik/releases/download/v3.1.0/mapnik-v3.1.0.tar.bz2"
  sha256 "43d76182d2a975212b4ad11524c74e577576c11039fdab5286b828397d8e6261"
  license "LGPL-2.1-or-later"
  revision 3
  head "https://github.com/mapnik/mapnik.git"

  livecheck do
    url :stable
    strategy :github_latest
  end

  bottle do
    sha256 cellar: :any, arm64_big_sur: "7e6117c55cd2640f0cd73dd2214d55842bfce48e2e2bfe9386cc14c91d8b79f3"
    sha256 cellar: :any, big_sur:       "8989816313fde27a0ccf55b4fb5b58c14c2b97b9379ff9998733ec27fbf86fd3"
    sha256 cellar: :any, catalina:      "14ebd68798092c33437e798df252e161388d8f3ecd436f1136b29cb12667f4e1"
    sha256 cellar: :any, mojave:        "bb6c1c52fee0be86aea16f7eed3171899016c2b982d31ed0bf324828a1d89fa7"
  end

  depends_on "pkg-config" => :build
  depends_on "boost"
  depends_on "cairo"
  depends_on "freetype"
  depends_on "gdal"
  depends_on "harfbuzz"
  depends_on "icu4c"
  depends_on "jpeg"
  depends_on "libpng"
  depends_on "libtiff"
  depends_on "postgresql"
  depends_on "proj"
  depends_on "webp"

  def install
    ENV.cxx11

    # Work around "error: no member named 'signbit' in the global namespace"
    # encountered when trying to detect boost regex in configure
    ENV.delete("SDKROOT") if DevelopmentTools.clang_build_version >= 900

    # Use Proj 6.0.0 compatibility headers
    # https://github.com/mapnik/mapnik/issues/4036
    ENV.append_to_cflags "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"
<commit_msg>mapnik: depend on proj@7<commit_after>class Mapnik < Formula
  desc "Toolkit for developing mapping applications"
  homepage "https://mapnik.org/"
  url "https://github.com/mapnik/mapnik/releases/download/v3.1.0/mapnik-v3.1.0.tar.bz2"
  sha256 "43d76182d2a975212b4ad11524c74e577576c11039fdab5286b828397d8e6261"
  license "LGPL-2.1-or-later"
  revision 4
  head "https://github.com/mapnik/mapnik.git"

  livecheck do
    url :stable
    strategy :github_latest
  end

  bottle do
    sha256 cellar: :any, arm64_big_sur: "7e6117c55cd2640f0cd73dd2214d55842bfce48e2e2bfe9386cc14c91d8b79f3"
    sha256 cellar: :any, big_sur:       "8989816313fde27a0ccf55b4fb5b58c14c2b97b9379ff9998733ec27fbf86fd3"
    sha256 cellar: :any, catalina:      "14ebd68798092c33437e798df252e161388d8f3ecd436f1136b29cb12667f4e1"
    sha256 cellar: :any, mojave:        "bb6c1c52fee0be86aea16f7eed3171899016c2b982d31ed0bf324828a1d89fa7"
  end

  depends_on "pkg-config" => :build
  depends_on "boost"
  depends_on "cairo"
  depends_on "freetype"
  depends_on "gdal"
  depends_on "harfbuzz"
  depends_on "icu4c"
  depends_on "jpeg"
  depends_on "libpng"
  depends_on "libtiff"
  depends_on "postgresql"
  depends_on "proj@7"
  depends_on "webp"

  def install
    ENV.cxx11

    # Work around "error: no member named 'signbit' in the global namespace"
    # encountered when trying to detect boost regex in configure
    ENV.delete("SDKROOT") if DevelopmentTools.clang_build_version >= 900

    # Use Proj 6.0.0 compatibility headers
    # https://github.com/mapnik/mapnik/issues/4036
    ENV.append_to_cflags "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"

{'fraction_non_alphanumeric': 0.08589147286821705, 'fraction_numerical': 0.15503875968992248, 'mean_word_length': 4.505119453924915, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5957348', 'n_tokens_mistral': 1597, 'n_tokens_neox': 1354, 'n_words': 229}