<commit_before>class Pdnsrec < Formula
  desc "Non-authoritative/recursing DNS server"
  homepage "https://www.powerdns.com/recursor.html"
  url "https://downloads.powerdns.com/releases/pdns-recursor-4.5.6.tar.bz2"
  sha256 "bb89cdd3810467ed848d13cac99f6f3456bf0ddcce5f47b9d38673629ee79200"
  license "GPL-2.0-only"

  livecheck do
    url "https://downloads.powerdns.com/releases/"
    regex(/href=.*?pdns-recursor[._-]v?(\d+(?:\.\d+)+)\.t/i)
  end

  bottle do
    sha256 arm64_monterey: "4a0b91298531b94c537daa6acc9cdffdca8d2acf79d3d225a99f327917082b06"
    sha256 arm64_big_sur:  "17d294f7b29f9206dbe09d04d2b2fd856295ed2e26caebeb226dbb926cb62225"
    sha256 monterey:       "eab056791c73d9635e5d8deab204ed236c2ba807a71e1f92f7eb650003686a84"
    sha256 big_sur:        "84db4d875f98e655ef4f2b33ee923ad77a3b5077e333e1dad1e5d601035c7256"
    sha256 catalina:       "f5816c04766329c60b7643a07dc9652ee710001806d4fbf80ba4a0915be0639f"
    sha256 mojave:         "0c93c4cc2b542487d278db7797ffe6519292125358215bed274f2cf4ccb9a82c"
    sha256 x86_64_linux:   "810d3b7b5d8b13ee6935e4a72285a686d89ff239e0e77d6af078a32020190540"
  end

  depends_on "pkg-config" => :build
  depends_on "boost"
  depends_on "lua"
  depends_on "openssl@1.1"

  on_macos do
    # This shouldn't be needed for `:test`, but there's a bug in `brew`:
    # CompilerSelectionError: pdnsrec cannot be built with any available compilers.
    depends_on "llvm" => [:build, :test] if DevelopmentTools.clang_build_version <= 1100
  end

  on_linux do<commit_msg>pdnsrec 4.5.7<commit_after>class Pdnsrec < Formula
  desc "Non-authoritative/recursing DNS server"
  homepage "https://www.powerdns.com/recursor.html"
  url "https://downloads.powerdns.com/releases/pdns-recursor-4.5.7.tar.bz2"
  sha256 "ad4db2d4af4630757f786f3719225c2e37481257d676803a54194c7679d07bab"
  license "GPL-2.0-only"

  livecheck do
    url "https://downloads.powerdns.com/releases/"
    regex(/href=.*?pdns-recursor[._-]v?(\d+(?:\.\d+)+)\.t/i)
  end

  bottle do
    sha256 arm64_monterey: "4a0b91298531b94c537daa6acc9cdffdca8d2acf79d3d225a99f327917082b06"
    sha256 arm64_big_sur:  "17d294f7b29f9206dbe09d04d2b2fd856295ed2e26caebeb226dbb926cb62225"
    sha256 monterey:       "eab056791c73d9635e5d8deab204ed236c2ba807a71e1f92f7eb650003686a84"
    sha256 big_sur:        "84db4d875f98e655ef4f2b33ee923ad77a3b5077e333e1dad1e5d601035c7256"
    sha256 catalina:       "f5816c04766329c60b7643a07dc9652ee710001806d4fbf80ba4a0915be0639f"
    sha256 mojave:         "0c93c4cc2b542487d278db7797ffe6519292125358215bed274f2cf4ccb9a82c"
    sha256 x86_64_linux:   "810d3b7b5d8b13ee6935e4a72285a686d89ff239e0e77d6af078a32020190540"
  end

  depends_on "pkg-config" => :build
  depends_on "boost"
  depends_on "lua"
  depends_on "openssl@1.1"

  on_macos do
    # This shouldn't be needed for `:test`, but there's a bug in `brew`:
    # CompilerSelectionError: pdnsrec cannot be built with any available compilers.
    depends_on "llvm" => [:build, :test] if DevelopmentTools.clang_build_version <= 1100
  end

  on_linux do
{'fraction_non_alphanumeric': 0.09055118110236221, 'fraction_numerical': 0.24803149606299213, 'mean_word_length': 5.001968503937008, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6567256', 'n_tokens_mistral': 1777, 'n_tokens_neox': 1383, 'n_words': 176}